Package org.jppf.server.job.management
Interface JobDependencyManagerMBean
public interface JobDependencyManagerMBean
A simple management interface for the server-side job dependency graph.
- Author:
- Laurent Cohen
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionGet all the nodes in the job dependency graph.getGraph()Get the graph of job dependencies.intGet the size - the number of nodes or vertices that represent jobs - of the job dependency grpah.Get the node with the specified dependency id.Get the ids of all the nodes currently in the graph.Get the nodes in the job dependency graph, whose corresponding job has arrived in the job queue.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.
-
Field Details
-
MBEAN_NAME
Name of this server-side MBean.- See Also:
-
-
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
Get the ids of all the nodes currently in the graph.- Returns:
- a set of node ids.
-
getAllNodes
Collection<JobDependencyNode> getAllNodes()Get all the nodes in the job dependency graph.- Returns:
- a collection of
JobDependencyNodeobjects.
-
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
JobDependencyNodeobjects.
-
getQueuedNodes
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- aJobSelectorto filter the returned jobs. Ifnullthen all queued jobs are returned.- Returns:
- a collection of
JobDependencyNodeobjects, possibly empty.
-
getNode
Get the node with the specified dependency id.- Parameters:
id- the id of the job node to find.- Returns:
- a
JobDependencyNode, ornullif 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.
-