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