uws.job
Interface JobObserver

All Superinterfaces:
java.io.Serializable

public interface JobObserver
extends java.io.Serializable

Any object which wants to follow the progression of any instance of AbstractJob. It will be notified at each execution phase transition of the observer job.

Version:
12/2010
Author:
Grégory Mantelet (CDS)
See Also:
AbstractJob, AbstractJob.addObserver(JobObserver)

Method Summary
 void update(AbstractJob job, ExecutionPhase oldPhase, ExecutionPhase newPhase)
          Used when one of the observed jobs notifies its observers of a modification of its execution phase.
 

Method Detail

update

void update(AbstractJob job,
            ExecutionPhase oldPhase,
            ExecutionPhase newPhase)
            throws UWSException
Used when one of the observed jobs notifies its observers of a modification of its execution phase.

Parameters:
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 AbstractJob.getPhase()).
Throws:
UWSException - If there is an error during the call of this method.