Interface JobDependencyManagerMBean


public interface JobDependencyManagerMBean
A simple management interface for the server-side job dependency graph.
Author:
Laurent Cohen
  • Field Details

  • Method Details

    • getGraphSize

      int getGraphSize()
      Get the size - the number of nodes or vertices that represent jobs - of the job dependency grpah.
      Returns:
      the graph size, always >= 0.
    • getNodeIds

      Set<String> getNodeIds()
      Get the ids of all the nodes currently in the graph.
      Returns:
      a set of node ids.
    • getAllNodes

      Get all the nodes in the job dependency graph.
      Returns:
      a collection of JobDependencyNode objects.
    • getQueuedNodes

      Collection<JobDependencyNode> getQueuedNodes()
      Get the nodes in the job dependency graph, whose corresponding job has arrived in the job queue.
      Returns:
      a collection of JobDependencyNode objects.
    • getQueuedNodes

      Collection<JobDependencyNode> getQueuedNodes(JobSelector selector)
      Get the nodes in the job dependency graph, whose corresponding job has arrived in the job queue, filtered by the specified job selector.
      Parameters:
      selector - a JobSelector to filter the returned jobs. If null then all queued jobs are returned.
      Returns:
      a collection of JobDependencyNode objects, possibly empty.
    • getNode

      Get the node with the specified dependency id.
      Parameters:
      id - the id of the job node to find.
      Returns:
      a JobDependencyNode, or null if there is no node with this id in the job dependency graph.
    • getGraph

      JobDependencyGraph getGraph()
      Get the graph of job dependencies.
      Returns:
      an instance of JobDependencyGraph.