Class TopologyDriver
java.lang.Object
org.jppf.client.monitoring.AbstractComponent<AbstractTopologyComponent>
org.jppf.client.monitoring.topology.AbstractTopologyComponent
org.jppf.client.monitoring.topology.TopologyDriver
- All Implemented Interfaces:
Serializable
Implementation of
TopologyDriver for JPPF drivers.- Since:
- 5.0
- Author:
- Laurent Cohen
- See Also:
-
Field Summary
Fields inherited from class org.jppf.client.monitoring.topology.AbstractTopologyComponent
healthSnapshot, managementInfoFields inherited from class org.jppf.client.monitoring.AbstractComponent
children, parent, uuid -
Method Summary
Modifier and TypeMethodDescriptionGet the driver connection.org.jppf.management.diagnostics.DiagnosticsMBeanGert the diagnostics mbean for this driver.Get a user-friendly representation of this topology component.org.jppf.management.forwarding.NodeForwardingMBeanGet the proxy to the driver MBean that forwards node management requests.org.jppf.management.JMXDriverConnectionWrappergetJmx()Get the wrapper holding the connection to the JMX server on a driver or node.org.jppf.server.job.management.DriverJobManagementMBeanGet the proxy to the driver MBean that manages and monitors jobs.getNodes()Convenience method to get the nodes attached to this driver asTopologyNodeobjects.Convenience method to get the nodes and peers connected to this driver asTopologyNodeobjects.getPeers()Convenience method to get the peers connected to this driver asTopologyPeerobjects.booleanisDriver()This method always returnstrue.toString()Methods inherited from class org.jppf.client.monitoring.topology.AbstractTopologyComponent
getHealthSnapshot, getManagementInfo, isNode, isPeerMethods inherited from class org.jppf.client.monitoring.AbstractComponent
add, equals, getChild, getChildCount, getChildren, getParent, getUuid, hashCode, remove
-
Method Details
-
isDriver
public boolean isDriver()This method always returnstrue.- Overrides:
isDriverin classAbstractTopologyComponent- Returns:
true.
-
getJmx
public org.jppf.management.JMXDriverConnectionWrapper getJmx()Get the wrapper holding the connection to the JMX server on a driver or node.- Returns:
- a
JMXDriverConnectionWrapperinstance.
-
getConnection
Get the driver connection.- Returns:
- a
JPPFClientConnectioninstance.
-
getForwarder
public org.jppf.management.forwarding.NodeForwardingMBean getForwarder()Get the proxy to the driver MBean that forwards node management requests.- Returns:
- an instance of
JPPFNodeForwardingMBean.
-
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.
-
getDiagnostics
public org.jppf.management.diagnostics.DiagnosticsMBean getDiagnostics()Gert the diagnostics mbean for this driver.- Returns:
- a
DiagnosticsMBeaninstance.
-
toString
- Overrides:
toStringin classAbstractTopologyComponent
-
getDisplayName
Description copied from class:AbstractComponentGet a user-friendly representation of this topology component.- Overrides:
getDisplayNamein classAbstractComponent<AbstractTopologyComponent>- Returns:
- a displayable string representing this object.
-
getNodes
Convenience method to get the nodes attached to this driver asTopologyNodeobjects.- Returns:
- a list of
TopologyNodeobjects, possibly empty if this driver has no attache node. - Since:
- 5.1
-
getPeers
Convenience method to get the peers connected to this driver asTopologyPeerobjects.- Returns:
- a list of
TopologyPeerobjects, possibly empty if this driver is not connected to any peer. - Since:
- 5.1
-
getNodesAndPeers
Convenience method to get the nodes and peers connected to this driver asTopologyNodeobjects.- Returns:
- a list of
TopologyNodeobjects, possibly empty if this driver has no attached node and isn't connected to any peer. - Since:
- 5.1
-