Package org.jcsp.net2
Class NodeFactory
java.lang.Object
org.jcsp.net2.NodeFactory
- Direct Known Subclasses:
TCPIPNodeFactory
Used to initialise a Node by connecting to the CNS. This approach is now deprecated. To initialise a Node now:
NodeAddress localAddress = ...;
NodeAddress nodeServerAddr = ...;
Node.getInstance().init(localAddress);
CNS.init(nodeServerAddr);
BNS.init(nodeServerAddr);
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected NodeAddress
The NodeAddress where the CNS / BNS is located -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
cnsAddress
The NodeAddress where the CNS / BNS is located
-
-
Constructor Details
-
NodeFactory
public NodeFactory()
-
-
Method Details
-
initNode
Initialises a Node- Parameters:
node
- The Node to initialise- Returns:
- A new NodeAddress for the Node
- Throws:
JCSPNetworkException
- Thrown if something goes wrong during the initialisation
-