Class JobChangeAdapter
- All Implemented Interfaces:
IJobChangeListener
- Direct Known Subclasses:
TeamOperation
IJobChangeListener
interface.
Classes that wish to listen to the progress of scheduled jobs can extend this class and override only the methods which they are interested in.
- Since:
- 3.0
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
aboutToRun
(IJobChangeEvent event) Notification that a job is about to be run.void
awake
(IJobChangeEvent event) Notification that a job was previously sleeping and has now been rescheduled to run.void
done
(IJobChangeEvent event) Notification that a job has completed execution, either due to cancelation, successful completion, or failure.void
running
(IJobChangeEvent event) Notification that a job has started running.void
scheduled
(IJobChangeEvent event) Notification that a job is being added to the queue of scheduled jobs.void
sleeping
(IJobChangeEvent event) Notification that a job was waiting to run and has now been put in the sleeping state.
-
Constructor Details
-
JobChangeAdapter
public JobChangeAdapter()
-
-
Method Details
-
aboutToRun
Description copied from interface:IJobChangeListener
Notification that a job is about to be run. Listeners are allowed to sleep, cancel, or change the priority of the job before it is started (and as a result may prevent the run from actually occurring).
Implementations should not block and return promptly.
- Specified by:
aboutToRun
in interfaceIJobChangeListener
- Parameters:
event
- the event details
-
awake
Description copied from interface:IJobChangeListener
Notification that a job was previously sleeping and has now been rescheduled to run.
Implementations should not block and return promptly.
- Specified by:
awake
in interfaceIJobChangeListener
- Parameters:
event
- the event details
-
done
Description copied from interface:IJobChangeListener
Notification that a job has completed execution, either due to cancelation, successful completion, or failure. The event status object indicates how the job finished, and the reason for failure, if applicable.
Implementations should not block and return promptly.
- Specified by:
done
in interfaceIJobChangeListener
- Parameters:
event
- the event details
-
running
Description copied from interface:IJobChangeListener
Notification that a job has started running.
Implementations should not block and return promptly.
- Specified by:
running
in interfaceIJobChangeListener
- Parameters:
event
- the event details
-
scheduled
Description copied from interface:IJobChangeListener
Notification that a job is being added to the queue of scheduled jobs. The event details includes the scheduling delay before the job should start running.
Implementations should not block and return promptly.
- Specified by:
scheduled
in interfaceIJobChangeListener
- Parameters:
event
- the event details, including the job instance and the scheduling delay
-
sleeping
Description copied from interface:IJobChangeListener
Notification that a job was waiting to run and has now been put in the sleeping state.
Implementations should not block and return promptly.
- Specified by:
sleeping
in interfaceIJobChangeListener
- Parameters:
event
- the event details
-