public abstract class NodeFactory
extends java.lang.Object
NodeAddress localAddress = ...;
NodeAddress nodeServerAddr = ...;
Node.getInstance().init(localAddress);
CNS.init(nodeServerAddr);
BNS.init(nodeServerAddr);
Node| Modifier and Type | Field and Description |
|---|---|
protected NodeAddress |
cnsAddress
The NodeAddress where the CNS / BNS is located
|
| Constructor and Description |
|---|
NodeFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract NodeAddress |
initNode(Node node)
Initialises a Node
|
protected NodeAddress cnsAddress
protected abstract NodeAddress initNode(Node node) throws JCSPNetworkException
node - The Node to initialiseJCSPNetworkException - Thrown if something goes wrong during the initialisationCopyright © 1996–2019. All rights reserved.