public interface IJobChangeListener
A single job listener instance can be added either to the job manager, for notification of all scheduled jobs, or to any set of individual jobs. A single listener instance should not be added to both the job manager, and to individual jobs (such a listener may receive duplicate notifications).
Clients should not rely on the result of the Job#getState()
method on jobs for which notification is occurring. Listeners are notified of
all job state changes, but whether the state change occurs before, during, or
after listeners are notified is unspecified.
Clients may implement this interface.
Modifier and Type | Method and Description |
---|---|
void |
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.
|
void aboutToRun(IJobChangeEvent event)
event
- the event detailsvoid awake(IJobChangeEvent event)
event
- the event detailsvoid done(IJobChangeEvent event)
event
- the event detailsvoid running(IJobChangeEvent event)
event
- the event detailsvoid scheduled(IJobChangeEvent event)
event
- the event details, including the job instance and the scheduling
delayvoid sleeping(IJobChangeEvent event)
event
- the event details
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.