public class WaitObserver extends java.lang.Object implements JobObserver
Constructor and Description |
---|
WaitObserver(java.lang.Thread thread)
Build a
JobObserver which will wake up the given thread when the
execution phase of watched jobs changes. |
Modifier and Type | Method and Description |
---|---|
void |
update(UWSJob job,
ExecutionPhase oldPhase,
ExecutionPhase newPhase)
Used when one of the observed jobs notifies its observers of a modification of its execution phase.
|
public WaitObserver(java.lang.Thread thread)
JobObserver
which will wake up the given thread when the
execution phase of watched jobs changes.thread
- Thread to notify.public void update(UWSJob job, ExecutionPhase oldPhase, ExecutionPhase newPhase) throws UWSException
JobObserver
update
in interface JobObserver
job
- The observed jobs which notifies the observer.oldPhase
- The job phase before its modification.newPhase
- The job phase after its modification (the same value as UWSJob.getPhase()
).UWSException
- If there is an error during the call of this method.