Package org.eclipse.core.runtime.jobs
Class JobChangeAdapter
- java.lang.Object
-
- org.eclipse.core.runtime.jobs.JobChangeAdapter
-
- All Implemented Interfaces:
IJobChangeListener
- Direct Known Subclasses:
TeamOperation
public class JobChangeAdapter extends Object implements IJobChangeListener
This adapter class provides default implementations for the methods described by theIJobChangeListenerinterface.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:
IJobChangeListener
-
-
Constructor Summary
Constructors Constructor Description JobChangeAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaboutToRun(IJobChangeEvent event)Notification that a job is about to be run.voidawake(IJobChangeEvent event)Notification that a job was previously sleeping and has now been rescheduled to run.voiddone(IJobChangeEvent event)Notification that a job has completed execution, either due to cancelation, successful completion, or failure.voidrunning(IJobChangeEvent event)Notification that a job has started running.voidscheduled(IJobChangeEvent event)Notification that a job is being added to the queue of scheduled jobs.voidsleeping(IJobChangeEvent event)Notification that a job was waiting to run and has now been put in the sleeping state.
-
-
-
Method Detail
-
aboutToRun
public void aboutToRun(IJobChangeEvent event)
Description copied from interface:IJobChangeListenerNotification 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).- Specified by:
aboutToRunin interfaceIJobChangeListener- Parameters:
event- the event details
-
awake
public void awake(IJobChangeEvent event)
Description copied from interface:IJobChangeListenerNotification that a job was previously sleeping and has now been rescheduled to run.- Specified by:
awakein interfaceIJobChangeListener- Parameters:
event- the event details
-
done
public void done(IJobChangeEvent event)
Description copied from interface:IJobChangeListenerNotification 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.- Specified by:
donein interfaceIJobChangeListener- Parameters:
event- the event details
-
running
public void running(IJobChangeEvent event)
Description copied from interface:IJobChangeListenerNotification that a job has started running.- Specified by:
runningin interfaceIJobChangeListener- Parameters:
event- the event details
-
scheduled
public void scheduled(IJobChangeEvent event)
Description copied from interface:IJobChangeListenerNotification 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.- Specified by:
scheduledin interfaceIJobChangeListener- Parameters:
event- the event details, including the job instance and the scheduling delay
-
sleeping
public void sleeping(IJobChangeEvent event)
Description copied from interface:IJobChangeListenerNotification that a job was waiting to run and has now been put in the sleeping state.- Specified by:
sleepingin interfaceIJobChangeListener- Parameters:
event- the event details
-
-