Interface JobManager

All Known Implementing Classes:
JPPFPriorityQueue

public interface JobManager
Interface for job manager that handles states and monitor the jobs throughout their processing within the JPPF.
Author:
Martin JANDA
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addJobListener(org.jppf.job.JobManagerListener listener)
    Add a listener to the list of listeners.
    boolean
    Cancel the job with the specified UUID
    Get the set of all job ids.
    Get the job for the job unique identifier.
    void
    removeJobListener(org.jppf.job.JobManagerListener listener)
    Remove a listener from the list of listeners.
    void
    updatePriority(String jobUuid, int newPriority)
    Update the priority of the job with the specified uuid.
  • Method Details

    • cancelJob

      boolean cancelJob(String jobId) throws Exception
      Cancel the job with the specified UUID
      Parameters:
      jobId - the uuid of the job to cancel.
      Returns:
      whether cancellation was successful.
      Throws:
      Exception - when unexpected error occurs.
    • addJobListener

      void addJobListener(org.jppf.job.JobManagerListener listener)
      Add a listener to the list of listeners.
      Parameters:
      listener - the listener to add to the list.
    • removeJobListener

      void removeJobListener(org.jppf.job.JobManagerListener listener)
      Remove a listener from the list of listeners.
      Parameters:
      listener - the listener to remove from the list.
    • getBundleForJob

      ServerJob getBundleForJob(String jobUuid)
      Get the job for the job unique identifier.
      Parameters:
      jobUuid - the uuid of the job.
      Returns:
      a ServerJob instance.
    • updatePriority

      void updatePriority(String jobUuid, int newPriority)
      Update the priority of the job with the specified uuid.
      Parameters:
      jobUuid - the uuid of the job to re-prioritize.
      newPriority - the new priority of the job.
    • getAllJobIds

      Set<String> getAllJobIds()
      Get the set of all job ids.
      Returns:
      the unmodifiable Set of all job ids.