Class AbstractTopologyComponent
java.lang.Object
org.jppf.client.monitoring.AbstractComponent<AbstractTopologyComponent>
org.jppf.client.monitoring.topology.AbstractTopologyComponent
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
TopologyDriver,TopologyNode
public abstract class AbstractTopologyComponent
extends AbstractComponent<AbstractTopologyComponent>
Base superclass for components of a JPPF grid topology.
This class proivdes an API to navigate the topology tree and attributes common to all ellements in te tree.
- Since:
- 5.0
- Author:
- Laurent Cohen
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.jppf.management.diagnostics.HealthSnapshotObject describing the current health snapshot of a node or driver.protected org.jppf.management.JPPFManagementInfoThe management informtation on this topology component.Fields inherited from class org.jppf.client.monitoring.AbstractComponent
children, parent, uuid -
Method Summary
Modifier and TypeMethodDescriptionorg.jppf.management.diagnostics.HealthSnapshotGet the object describing the health of a node or driver.org.jppf.management.JPPFManagementInfoGet the management informtation on this topology component.booleanisDriver()Determine whether this object represents a driver.booleanisNode()Determine whether this object represents a node.booleanisPeer()Determine whether this object represents a peer driver.toString()Methods inherited from class org.jppf.client.monitoring.AbstractComponent
add, equals, getChild, getChildCount, getChildren, getDisplayName, getParent, getUuid, hashCode, remove
-
Field Details
-
healthSnapshot
protected transient org.jppf.management.diagnostics.HealthSnapshot healthSnapshotObject describing the current health snapshot of a node or driver. -
managementInfo
protected transient org.jppf.management.JPPFManagementInfo managementInfoThe management informtation on this topology component.
-
-
Method Details
-
isDriver
public boolean isDriver()Determine whether this object represents a driver.- Returns:
trueif this object represents a driver,falseotherwise.
-
isNode
public boolean isNode()Determine whether this object represents a node.- Returns:
trueif this object represents a node,falseotherwise.
-
isPeer
public boolean isPeer()Determine whether this object represents a peer driver.- Returns:
trueif this object represnets a peer driver,falseotherwise.
-
getHealthSnapshot
public org.jppf.management.diagnostics.HealthSnapshot getHealthSnapshot()Get the object describing the health of a node or driver.- Returns:
- a
HealthSnapshotinstance.
-
getManagementInfo
public org.jppf.management.JPPFManagementInfo getManagementInfo()Get the management informtation on this topology component.- Returns:
- a
JPPFManagementInfoinstance.
-
toString
-