Package org.jppf.client.event
Interface JobListener
- All Superinterfaces:
EventListener
- All Known Implementing Classes:
AbstractJPPFJobStream,JobListenerAdapter,JPPFExecutorService
Listener interface for receiving job started and job ended event notifications.
- Author:
- Laurent Cohen
-
Method Summary
Modifier and TypeMethodDescriptionvoidjobDispatched(JobEvent event) Called when a job, or a subset of its tasks, is sent to the server, or to the local executor.voidCalled when the execution of a job is complete.voidjobReturned(JobEvent event) Called when the execution of a subset of the tasks of a job is complete.voidjobStarted(JobEvent event) Called when the execution of a job is starting.
-
Method Details
-
jobStarted
Called when the execution of a job is starting. This method may be called multiple times, in the case where the job is resubmitted, due to a broken connection to the server for instance.- Parameters:
event- encapsulates the event that caused this method to be called.
-
jobEnded
Called when the execution of a job is complete. Contrary tojobStarted(JobEvent), this method should only ever be called once.- Parameters:
event- encapsulates the event that caused this method to be called.
-
jobDispatched
Called when a job, or a subset of its tasks, is sent to the server, or to the local executor.This method may be called multiple times, depending on the client load-balancer configuration, and on how it will split the jobs into subsets of their tasks.
- Parameters:
event- encapsulates the event that caused this method to be called.
-
jobReturned
Called when the execution of a subset of the tasks of a job is complete.This method may be called multiple times, depending on the client load-balancer configuration, and on how it will split the jobs into subsets of their tasks.
- Parameters:
event- encapsulates the event that caused this method to be called.
-