Package org.jppf.server.protocol
Interface ServerJobChangeListener
- All Known Implementing Classes:
JPPFJobManager
public interface ServerJobChangeListener
Listener interface for job events.
- Author:
- Martin JANDA
-
Method Summary
Modifier and TypeMethodDescriptionvoidjobDispatched(AbstractServerJob source, org.jppf.execute.ExecutorChannel<?> channel, ServerTaskBundleNode bundleNode) Called when all or part of a job is dispatched to a node.voidjobReturned(AbstractServerJob source, org.jppf.execute.ExecutorChannel<?> channel, ServerTaskBundleNode bundleNode) Called when all or part of a job has returned from a node.voidjobStatusChanged(AbstractServerJob source, SubmissionStatus oldValue, SubmissionStatus newValue) Called when job submission status is changed.voidjobUpdated(AbstractServerJob source, boolean headerUpdated) Called when a job is added to the server queue.
-
Method Details
-
jobUpdated
Called when a job is added to the server queue.- Parameters:
source- the updated job.headerUpdated- whether the job header(aTaskBundleinstance) has been updated.
-
jobStatusChanged
void jobStatusChanged(AbstractServerJob source, SubmissionStatus oldValue, SubmissionStatus newValue) Called when job submission status is changed.- Parameters:
source- the updated job.oldValue- value before change.newValue- value after change.
-
jobDispatched
void jobDispatched(AbstractServerJob source, org.jppf.execute.ExecutorChannel<?> channel, ServerTaskBundleNode bundleNode) Called when all or part of a job is dispatched to a node.- Parameters:
source- the dispatched job.channel- the node to which the job is dispatched.bundleNode- the bundle for job event.
-
jobReturned
void jobReturned(AbstractServerJob source, org.jppf.execute.ExecutorChannel<?> channel, ServerTaskBundleNode bundleNode) Called when all or part of a job has returned from a node.- Parameters:
source- the returned job.channel- the node to which the job is dispatched.bundleNode- the bundle for job event.
-