Class JobsUtils

java.lang.Object
org.jppf.ui.utils.JobsUtils

public class JobsUtils extends Object
Utility methods for manipulating the jobs tree model.
Author:
Laurent Cohen
  • Constructor Details

    • JobsUtils

      public JobsUtils()
  • Method Details

    • addDriver

      public static DefaultMutableTreeNode addDriver(AbstractJPPFTreeTableModel model, org.jppf.client.monitoring.jobs.JobDriver driver)
      Called to notify that a driver was added.
      Parameters:
      model - the tree table model.
      driver - a reference to the driver.
      Returns:
      the newly created DefaultMutableTreeNode, if any.
    • removeDriver

      public static void removeDriver(AbstractJPPFTreeTableModel model, org.jppf.client.monitoring.jobs.JobDriver driver)
      Called to notify that a driver was removed.
      Parameters:
      model - the tree table model.
      driver - the name of the driver to remove.
    • addJob

      public static DefaultMutableTreeNode addJob(AbstractJPPFTreeTableModel model, org.jppf.client.monitoring.jobs.JobDriver driver, org.jppf.client.monitoring.jobs.Job job)
      Called to notify that a job was submitted to a driver.
      Parameters:
      model - the tree table model.
      driver - the driver the job was submitted to.
      job - information about the submitted job.
      Returns:
      the parent of the newly created job DefaultMutableTreeNode, if any.
    • removeJob

      public static void removeJob(AbstractJPPFTreeTableModel model, org.jppf.client.monitoring.jobs.JobDriver driver, org.jppf.client.monitoring.jobs.Job job)
      Called to notify that a job was removed from a driver.
      Parameters:
      model - the tree table model.
      driver - the the driver the job was submitted to.
      job - the job.
    • updateJob

      public static void updateJob(AbstractJPPFTreeTableModel model, org.jppf.client.monitoring.jobs.Job job)
      Called to notify that a job was removed from a driver.
      Parameters:
      model - the tree table model.
      job - information about the job.
    • addJobDispatch

      public static DefaultMutableTreeNode addJobDispatch(AbstractJPPFTreeTableModel model, org.jppf.client.monitoring.jobs.Job job, org.jppf.client.monitoring.jobs.JobDispatch dispatch)
      Called to notify that a sub-job was dispatched to a node.
      Parameters:
      model - the tree table model.
      job - information about the job.
      dispatch - information about the job dispatch.
      Returns:
      the parent of the newly created job dispatch DefaultMutableTreeNode, if any.
    • removeJobDispatch

      public static void removeJobDispatch(AbstractJPPFTreeTableModel model, org.jppf.client.monitoring.jobs.Job job, org.jppf.client.monitoring.jobs.JobDispatch dispatch)
      Called to notify that a sub-job was removed from a node.
      Parameters:
      model - the tree table model.
      job - information about the job.
      dispatch - information about the node where the sub-job was dispatched.