Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
#include <berryIJobChangeListener.h>
Classes | |
struct | Events |
Public Member Functions | |
virtual Events::Types | GetEventTypes ()=0 |
virtual void | AboutToRun (const IJobChangeEvent::ConstPointer &) |
virtual void | Awake (const IJobChangeEvent::ConstPointer &) |
virtual void | Done (const IJobChangeEvent::ConstPointer &) |
virtual void | Running (const IJobChangeEvent::ConstPointer &) |
virtual void | Scheduled (const IJobChangeEvent::ConstPointer &) |
virtual void | Sleeping (const IJobChangeEvent::ConstPointer &) |
Callback interface for clients interested in being notified when jobs change state.
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.
Definition at line 47 of file berryIJobChangeListener.h.
|
inlinevirtual |
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).
event | the event details |
Definition at line 95 of file berryIJobChangeListener.h.
Referenced by berry::IJobChangeListener::Events::AddListener(), and berry::IJobChangeListener::Events::RemoveListener().
|
inlinevirtual |
Notification that a job was previously sleeping and has now been rescheduled to run.
event | the event details |
Definition at line 105 of file berryIJobChangeListener.h.
Referenced by berry::IJobChangeListener::Events::AddListener(), and berry::IJobChangeListener::Events::RemoveListener().
|
inlinevirtual |
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.
event | the event details |
Definition at line 116 of file berryIJobChangeListener.h.
Referenced by berry::IJobChangeListener::Events::AddListener(), and berry::IJobChangeListener::Events::RemoveListener().
|
pure virtual |
Referenced by berry::IJobChangeListener::Events::AddListener().
|
inlinevirtual |
Notification that a job has started running.
event | the event details |
Definition at line 125 of file berryIJobChangeListener.h.
Referenced by berry::IJobChangeListener::Events::AddListener(), and berry::IJobChangeListener::Events::RemoveListener().
|
inlinevirtual |
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.
event | the event details, including the job instance and the scheduling delay |
Definition at line 137 of file berryIJobChangeListener.h.
Referenced by berry::IJobChangeListener::Events::AddListener(), and berry::IJobChangeListener::Events::RemoveListener().
|
inlinevirtual |
Notification that a job was waiting to run and has now been put in the sleeping state.
event | the event details |
Definition at line 147 of file berryIJobChangeListener.h.
Referenced by berry::IJobChangeListener::Events::AddListener(), and berry::IJobChangeListener::Events::RemoveListener().