org.jppf.ui.monitoring.node
Class TopologyData

java.lang.Object
  extended by org.jppf.ui.monitoring.node.TopologyData

public class TopologyData
extends Object

Instances of this class represent the state of a node in the Yopology panel tree.

Author:
Laurent Cohen

Constructor Summary
  TopologyData(JPPFClientConnection clientConnection)
          Initialize this topology data as a driver related object.
  TopologyData(JPPFManagementInfo nodeInformation)
          Initialize this topology data as holding information about a node.
protected TopologyData(TopologyDataType type)
          Initialize topology job data with the specified type.
 
Method Summary
 JPPFClientConnection getClientConnection()
          Get the driver connection.
 JMXConnectionWrapper getJmxWrapper()
          Get the wrapper holding the connection to the JMX server on a driver or node.
 JPPFManagementInfo getNodeInformation()
          Get the information on a JPPF node.
 JPPFNodeState getNodeState()
          Get the object describing the current state of a node.
 TopologyDataStatus getStatus()
          Get the status of the node.
 TopologyDataType getType()
          Get the type of this job data object.
 void refreshNodeState()
          Refresh the state of the node represented by this topology data.
 void setNodeState(JPPFNodeState nodeState)
          Set the object describing the current state of a node.
 void setStatus(TopologyDataStatus status)
          Set the status of the node.
 String toString()
          Get a string reprensation of this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TopologyData

protected TopologyData(TopologyDataType type)
Initialize topology job data with the specified type.

Parameters:
type - the type of this job data object as a JobDataType enum value.

TopologyData

public TopologyData(JPPFClientConnection clientConnection)
Initialize this topology data as a driver related object.

Parameters:
clientConnection - a reference to the driver connection.

TopologyData

public TopologyData(JPPFManagementInfo nodeInformation)
Initialize this topology data as holding information about a node.

Parameters:
nodeInformation - information on the JPPF node.
Method Detail

getType

public TopologyDataType getType()
Get the type of this job data object.

Returns:
a TopologyDataType enum value.

getJmxWrapper

public JMXConnectionWrapper getJmxWrapper()
Get the wrapper holding the connection to the JMX server on a driver or node.

Returns:
a JMXDriverConnectionWrapper instance.

getNodeInformation

public JPPFManagementInfo getNodeInformation()
Get the information on a JPPF node.

Returns:
a NodeManagementInfo instance.

toString

public String toString()
Get a string reprensation of this object.

Overrides:
toString in class Object
Returns:
a string displaying the host and port of the underlying jmx connection.
See Also:
Object.toString()

getNodeState

public JPPFNodeState getNodeState()
Get the object describing the current state of a node.

Returns:
a JPPFNodeState instance.

setNodeState

public void setNodeState(JPPFNodeState nodeState)
Set the object describing the current state of a node.

Parameters:
nodeState - a JPPFNodeState instance.

getClientConnection

public JPPFClientConnection getClientConnection()
Get the driver connection.

Returns:
a JPPFClientConnection instance.

refreshNodeState

public void refreshNodeState()
Refresh the state of the node represented by this topology data.


getStatus

public TopologyDataStatus getStatus()
Get the status of the node.

Returns:
the node status.

setStatus

public void setStatus(TopologyDataStatus status)
Set the status of the node.

Parameters:
status - the node status.


Copyright © 2005-2010 JPPF Team.