Package org.jppf.client.event
Class JobListenerAdapter
java.lang.Object
org.jppf.client.event.JobListenerAdapter
- All Implemented Interfaces:
EventListener,JobListener
- Direct Known Subclasses:
AbstractJPPFJobStream,JPPFExecutorService
A convenience class which allows subclassing and implementing only the needed methods of
JobListener.- Author:
- Laurent Cohen
-
Constructor Summary
Constructors -
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.
-
Constructor Details
-
JobListenerAdapter
public JobListenerAdapter()
-
-
Method Details
-
jobStarted
Description copied from interface:JobListenerCalled 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.- Specified by:
jobStartedin interfaceJobListener- Parameters:
event- encapsulates the event that caused this method to be called.
-
jobEnded
Description copied from interface:JobListenerCalled when the execution of a job is complete. Contrary toJobListener.jobStarted(JobEvent), this method should only ever be called once.- Specified by:
jobEndedin interfaceJobListener- Parameters:
event- encapsulates the event that caused this method to be called.
-
jobDispatched
Description copied from interface:JobListenerCalled 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.
- Specified by:
jobDispatchedin interfaceJobListener- Parameters:
event- encapsulates the event that caused this method to be called.
-
jobReturned
Description copied from interface:JobListenerCalled 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.
- Specified by:
jobReturnedin interfaceJobListener- Parameters:
event- encapsulates the event that caused this method to be called.
-