org.jppf.server
Class NodeInformationHandler

java.lang.Object
  extended by org.jppf.server.NodeInformationHandler

public class NodeInformationHandler
extends Object

Instances of this class manage information on the nodes obtained via JMX.

Author:
Laurent Cohen

Constructor Summary
NodeInformationHandler()
           
 
Method Summary
 void addNodeInformation(ChannelWrapper<?> channel, JPPFManagementInfo info)
          Add a node information object to the map of node information.
 JPPFManagementInfo getNodeInformation(ChannelWrapper<?> channel)
          Get the system information for the specified node.
 JPPFManagementInfo getNodeInformation(String uuid)
          Get the system information for the specified node uuid.
 Map<ChannelWrapper<?>,JPPFManagementInfo> getNodeInformationMap()
          Get the mapping of channels to corresponding node information.
 Set<String> getNodeUuids()
          The uuids of all the currently connected nodes.
 Map<String,JPPFManagementInfo> getUuidMap()
          Get the mapping of node uuid to corresponding node information.
 void removeNodeInformation(ChannelWrapper<?> channel)
          Remove a node information object from the map of node information.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeInformationHandler

public NodeInformationHandler()
Method Detail

addNodeInformation

public void addNodeInformation(ChannelWrapper<?> channel,
                               JPPFManagementInfo info)
Add a node information object to the map of node information.

Parameters:
channel - a SocketChannel instance.
info - a JPPFNodeManagementInformation instance.

removeNodeInformation

public void removeNodeInformation(ChannelWrapper<?> channel)
Remove a node information object from the map of node information.

Parameters:
channel - a SocketChannel instance.

getNodeInformationMap

public Map<ChannelWrapper<?>,JPPFManagementInfo> getNodeInformationMap()
Get the mapping of channels to corresponding node information.

Returns:
channel a map of ChannelWrapper keys to JPPFManagementInfo values.

getUuidMap

public Map<String,JPPFManagementInfo> getUuidMap()
Get the mapping of node uuid to corresponding node information.

Returns:
channel a map of String keys to JPPFManagementInfo values.

getNodeInformation

public JPPFManagementInfo getNodeInformation(ChannelWrapper<?> channel)
Get the system information for the specified node.

Parameters:
channel - the node for which to get the information.
Returns:
a JPPFManagementInfo instance, or null if no information is recorded for the node.

getNodeInformation

public JPPFManagementInfo getNodeInformation(String uuid)
Get the system information for the specified node uuid.

Parameters:
uuid - the uuid of the node for which to get the information.
Returns:
a JPPFManagementInfo instance, or null if no information is recorded for the node.

getNodeUuids

public Set<String> getNodeUuids()
The uuids of all the currently connected nodes.

Returns:
a set of uuids for all the nodes connected to the driver.


Copyright © 2005-2010 JPPF Team.