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 Details

    • healthSnapshot

      protected transient org.jppf.management.diagnostics.HealthSnapshot healthSnapshot
      Object describing the current health snapshot of a node or driver.
    • managementInfo

      protected transient org.jppf.management.JPPFManagementInfo managementInfo
      The management informtation on this topology component.
  • Method Details

    • isDriver

      public boolean isDriver()
      Determine whether this object represents a driver.
      Returns:
      true if this object represents a driver, false otherwise.
    • isNode

      public boolean isNode()
      Determine whether this object represents a node.
      Returns:
      true if this object represents a node, false otherwise.
    • isPeer

      public boolean isPeer()
      Determine whether this object represents a peer driver.
      Returns:
      true if this object represnets a peer driver, false otherwise.
    • getHealthSnapshot

      public org.jppf.management.diagnostics.HealthSnapshot getHealthSnapshot()
      Get the object describing the health of a node or driver.
      Returns:
      a HealthSnapshot instance.
    • getManagementInfo

      public org.jppf.management.JPPFManagementInfo getManagementInfo()
      Get the management informtation on this topology component.
      Returns:
      a JPPFManagementInfo instance.
    • toString

      public String toString()
      Overrides:
      toString in class Object