Package org.jcsp.net2
Class LinkServer
- java.lang.Object
-
- org.jcsp.net2.LinkServer
-
- All Implemented Interfaces:
CSProcess
- Direct Known Subclasses:
TCPIPLinkServer
public abstract class LinkServer extends java.lang.Object implements CSProcess
Abstract class defining the LinkServer.
-
-
Constructor Summary
Constructors Constructor Description LinkServer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
registerLink(Link link)
protected Link
requestLink(NodeID nodeID)
static void
start(NodeAddress address)
-
-
-
Method Detail
-
start
public static final void start(NodeAddress address) throws java.lang.IllegalArgumentException, JCSPNetworkException
- Parameters:
address
-- Throws:
java.lang.IllegalArgumentException
JCSPNetworkException
-
requestLink
protected final Link requestLink(NodeID nodeID)
- Parameters:
nodeID
-- Returns:
- The Link connected to the Node with the corresponding NodeID, or null if no such Node exists
-
registerLink
protected final boolean registerLink(Link link)
- Parameters:
link
-- Returns:
- True if the Link to the Node was successfully registered, false otherwise
-
-