|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uk.org.ogsadai.engine.RequestEngineObserver
Oberver
class for monitoring instances of RequestEngine
for events relating to request processing (e.g. request submission, queueing and completion).
Replaces earlier use of a StatusObserver
attached to the Status
object in EngineConfiguration
.
Field Summary | |
private static java.lang.String |
COPYRIGHT_NOTICE Copyright statement |
private RequestEngine |
mEngine Engine being monitored |
private boolean |
mWaiting Is the engine currently being monitored? |
Constructor Summary | |
RequestEngineObserver(RequestEngine engine) Create an observer for an engine. |
Method Summary | |
void |
reset() Reset the observer. |
void |
update(java.util.Observable engine, java.lang.Object load) |
void |
waitForEngine() Deprecated. should use waitUntilProcessing instead |
void |
waitUntilFlushed(Request request) Wait until the engine dequeues a request or stops processing a request. |
void |
waitUntilIdle() Wait until both the active and latent loads on the engine are zero. |
void |
waitUntilProcessing(Request request) Wait until the engine starts processing a request. |
void |
waitUntilQueued(Request request) Wait until the engine queues request. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final java.lang.String COPYRIGHT_NOTICE
private boolean mWaiting
private RequestEngine mEngine
Constructor Detail |
public RequestEngineObserver(RequestEngine engine)
engine
- Engine to observe.Method Detail |
public void update(java.util.Observable engine, java.lang.Object load)
update
in interface java.util.Observer
public void reset()
public void waitForEngine()
waitUntilProcessing
instead
public void waitUntilProcessing(Request request)
request
- Request that is being waited upon.public void waitUntilQueued(Request request)
request
- Request that is being waited upon.public void waitUntilFlushed(Request request)
request
- Request that is being waited upon.public void waitUntilIdle()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |