Class JobListenerAdapter

java.lang.Object
org.jppf.client.event.JobListenerAdapter
All Implemented Interfaces:
EventListener, JobListener
Direct Known Subclasses:
AbstractJPPFJobStream, JPPFExecutorService

public class JobListenerAdapter extends Object implements JobListener
A convenience class which allows subclassing and implementing only the needed methods of JobListener.
Author:
Laurent Cohen
  • Constructor Details

    • JobListenerAdapter

      public JobListenerAdapter()
  • Method Details

    • jobStarted

      public void jobStarted(JobEvent event)
      Description copied from interface: JobListener
      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.
      Specified by:
      jobStarted in interface JobListener
      Parameters:
      event - encapsulates the event that caused this method to be called.
    • jobEnded

      public void jobEnded(JobEvent event)
      Description copied from interface: JobListener
      Called when the execution of a job is complete. Contrary to JobListener.jobStarted(JobEvent), this method should only ever be called once.
      Specified by:
      jobEnded in interface JobListener
      Parameters:
      event - encapsulates the event that caused this method to be called.
    • jobDispatched

      public void jobDispatched(JobEvent event)
      Description copied from interface: JobListener
      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.

      Specified by:
      jobDispatched in interface JobListener
      Parameters:
      event - encapsulates the event that caused this method to be called.
    • jobReturned

      public void jobReturned(JobEvent event)
      Description copied from interface: JobListener
      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.

      Specified by:
      jobReturned in interface JobListener
      Parameters:
      event - encapsulates the event that caused this method to be called.