Class NodeInfo

java.lang.Object
  |
  +--NodeInfo

public class NodeInfo
extends java.lang.Object

NodeInfo class contains information about a specific node. Currenlty it includes three fields, but later versions might include even more.


Field Summary
 long nodeID
          nodeID is a globally unique identifier
 java.lang.String rmiRegistry
          this is the RMI url for the "bind" operation.
 int type
          There are three available types:
CXConst.consumerNode, the corresponds to consumer nodes
CXConst.producerNode, that correponds to producer nodes
CXConst.taskServerNode, that corresponds to task server nodes These constants are defined in the CXConst.
 
Constructor Summary
NodeInfo(long nodeId, java.lang.String rmiRegistry, int nodeType)
          use this constructor when you create a NodeInfo object for the first time
NodeInfo(NodeInfo copyNodeInfo)
          use this constructor when you want to create a replica of another node
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nodeID

public long nodeID
nodeID is a globally unique identifier

rmiRegistry

public java.lang.String rmiRegistry
this is the RMI url for the "bind" operation. Apparently, it must be unique, for a specific rmi registry, otherwisr the bind operation will fail.

type

public int type
There are three available types:
CXConst.consumerNode, the corresponds to consumer nodes
CXConst.producerNode, that correponds to producer nodes
CXConst.taskServerNode, that corresponds to task server nodes These constants are defined in the CXConst.
Constructor Detail

NodeInfo

public NodeInfo(long nodeId,
                java.lang.String rmiRegistry,
                int nodeType)
use this constructor when you create a NodeInfo object for the first time

NodeInfo

public NodeInfo(NodeInfo copyNodeInfo)
use this constructor when you want to create a replica of another node