Interface JobListener

All Superinterfaces:
EventListener
All Known Implementing Classes:
AbstractJPPFJobStream, JobListenerAdapter, JPPFExecutorService

public interface JobListener extends EventListener
Listener interface for receiving job started and job ended event notifications.
Author:
Laurent Cohen
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Called when a job, or a subset of its tasks, is sent to the server, or to the local executor.
    void
    Called when the execution of a job is complete.
    void
    Called when the execution of a subset of the tasks of a job is complete.
    void
    Called when the execution of a job is starting.
  • Method Details

    • jobStarted

      void jobStarted(JobEvent event)
      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

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

      void jobDispatched(JobEvent event)
      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

      void jobReturned(JobEvent event)
      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.