org.jcsp.net2
Class Node
java.lang.Object
org.jcsp.net2.Node
public final class Node
- extends Object
- Author:
- Kevin Chalmers
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
public static Node.Logger log
err
public static Node.Logger err
getInstance
public static Node getInstance()
- Returns:
- The singleton instance of the Node
getNodeID
public NodeID getNodeID()
- Returns:
- The NodeID of this Node
init
public NodeKey init(NodeAddress addr)
throws JCSPNetworkException
- Parameters:
addr
-
- Returns:
- NodeKey for this Node
- Throws:
JCSPNetworkException
init
public NodeKey init(String name,
NodeAddress addr)
throws JCSPNetworkException
- Parameters:
name
- addr
-
- Returns:
- NodeKey for this Node
- Throws:
JCSPNetworkException
init
public NodeKey init(NodeFactory factory)
throws JCSPNetworkException
- Parameters:
factory
-
- Returns:
- NodeKey for this Node
- Throws:
JCSPNetworkException
getLinkLostEventChannel
public AltingChannelInput getLinkLostEventChannel()
- Returns:
- A channel to receive disconnect events on
setLog
public void setLog(OutputStream stream)
- Parameters:
stream
-
setErr
public void setErr(OutputStream stream)
- Parameters:
stream
-
Copyright © 1996-2012. All Rights Reserved.