Class Node
java.lang.Object
org.jcsp.net2.Node
- Author:
- Kevin Chalmers
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic Nodeinit(String name, NodeAddress addr) init(NodeAddress addr) init(NodeFactory factory) voidsetErr(OutputStream stream) voidsetLog(OutputStream stream)
-
Field Details
-
log
-
err
-
-
Method Details
-
getInstance
- Returns:
- The singleton instance of the Node
-
getNodeID
- Returns:
- The NodeID of this Node
-
init
- Parameters:
addr-- Returns:
- NodeKey for this Node
- Throws:
JCSPNetworkException
-
init
- Parameters:
name-addr-- Returns:
- NodeKey for this Node
- Throws:
JCSPNetworkException
-
init
- Parameters:
factory-- Returns:
- NodeKey for this Node
- Throws:
JCSPNetworkException
-
getLinkLostEventChannel
- Returns:
- A channel to receive disconnect events on
-
setLog
- Parameters:
stream-
-
setErr
- Parameters:
stream-
-