Package org.jppf.client.monitoring.jobs
Class JobDriver
java.lang.Object
org.jppf.client.monitoring.AbstractComponent<AbstractJobComponent>
org.jppf.client.monitoring.jobs.AbstractJobComponent
org.jppf.client.monitoring.jobs.JobDriver
- All Implemented Interfaces:
Serializable
AN instance of this class represents a JPPF driver in the jobs hierarchy.
It is essentially a container for a
TopologyDriver with the additional ability to navigate the jobs hierarchy, which is orthogonal to the topology hierarchy.- Since:
- 5.1
- Author:
- Laurent Cohen
- See Also:
-
Field Summary
Fields inherited from class org.jppf.client.monitoring.AbstractComponent
children, parent, uuid -
Method Summary
Modifier and TypeMethodDescriptionGet a user-friendly representation of this topology component.Get a job handled by this driver from its uuid.org.jppf.server.job.management.DriverJobManagementMBeanGet the proxy to the driver MBean that manages and monitors jobs.getJobs()Get the list of jobs handled by this driver.Get the associated driver from the topology monitor.toString()Methods inherited from class org.jppf.client.monitoring.AbstractComponent
add, equals, getChild, getChildCount, getChildren, getParent, getUuid, hashCode, remove
-
Method Details
-
getJobManager
public org.jppf.server.job.management.DriverJobManagementMBean getJobManager()Get the proxy to the driver MBean that manages and monitors jobs.- Returns:
- an instance of
DriverJobManagementMBean.
-
getTopologyDriver
Get the associated driver from the topology monitor.- Returns:
- an instance of
TopologyDriver.
-
getJob
Get a job handled by this driver from its uuid.- Parameters:
jobUuid- the uuid of the job to retrieve.- Returns:
- a
Jobinstance, ornullif the driver has no such job.
-
getJobs
Get the list of jobs handled by this driver.- Returns:
- a list of
Jobinstances, possibly empty.
-
toString
-
getDisplayName
Description copied from class:AbstractComponentGet a user-friendly representation of this topology component.- Overrides:
getDisplayNamein classAbstractComponent<AbstractJobComponent>- Returns:
- a displayable string representing this object.
-