Interface ServerJobChangeListener

All Known Implementing Classes:
JPPFJobManager

public interface ServerJobChangeListener
Listener interface for job events.
Author:
Martin JANDA
  • Method Details

    • jobUpdated

      void jobUpdated(AbstractServerJob source, boolean headerUpdated)
      Called when a job is added to the server queue.
      Parameters:
      source - the updated job.
      headerUpdated - whether the job header(a TaskBundle instance) 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.