|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
org.ow2.clif.scenario.isac.engine.AsyncAlarmForwarder
public class AsyncAlarmForwarder
Wrapper for asynchronous management of alarms sent to BladeInsertResponse interface.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary |
---|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Fields inherited from interface org.ow2.clif.server.api.BladeInsertResponse |
---|
BLADE_INSERT_RESPONSE |
Constructor Summary | |
---|---|
AsyncAlarmForwarder(java.lang.ThreadGroup group,
BladeInsertResponse target)
Creates a front-end for a target BladeInsertResponse object. |
Method Summary | |
---|---|
void |
aborted()
Direct/synchronous "aborted()" call on the target |
void |
alarm(AlarmEvent alarm)
Put the provided alarm in a queue for asynchronous forwarding to the target. |
void |
clear()
Discards all alarms pending in the queue. |
void |
completed()
Direct/synchronous "completed()" call on the target |
void |
interrupt()
Interruption override: traps interrupt for thread termination without generating InterruptedException in possibly active blocking operations (network I/O). |
void |
run()
Thread activity: get alarms from the queue and forward them until the thread is interrupted. |
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AsyncAlarmForwarder(java.lang.ThreadGroup group, BladeInsertResponse target)
group
- the thread group this thread will belong totarget
- the target BladeInsertResponse objectMethod Detail |
---|
public void clear()
public void alarm(AlarmEvent alarm)
alarm
in interface BladeInsertResponse
alarm
- the alarm to forward to the targetpublic void aborted()
aborted
in interface BladeInsertResponse
public void completed()
completed
in interface BladeInsertResponse
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public void interrupt()
interrupt
in class java.lang.Thread
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |