|
CSP for Java (JCSP) 1.1-rc4 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jcsp.net.LinkServer
public abstract class LinkServer
An abstract class that must be implemented by communication
protocol implementations. LinkServer
objects are
processes which listen on a certain address for connection
requests. When a request is received, a Link
should be spawned in
server mode.
Constructor Summary | |
---|---|
protected |
LinkServer(ProtocolID protocolID,
NodeAddressID linkServerAddressID)
Constructor. |
Method Summary | |
---|---|
protected static LinkServer |
create(NodeAddressID addressID)
Create a server on a specifiedNodeAddressID, and start it. |
protected NodeAddressID |
getLinkServerAddressID()
Protected accessor for obtaining the NodeAddressID on which
this server is listening. |
protected ProtocolID |
getProtocolID()
Gets the protocol that this LinkServer supports. |
protected boolean |
stop()
Stops the LinkServer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected LinkServer(ProtocolID protocolID, NodeAddressID linkServerAddressID)
protocolID
- The ProtocolID
for the protocol that the concrete implementation of LinkServer
supports.linkServerAddressID
- the NodeAddressID
for this LinkServer
to listen on.Method Detail |
---|
protected static LinkServer create(NodeAddressID addressID)
addressID
- The NodeAddressID to accept from
LinkServer
.protected boolean stop()
true
iff the LinkServer
has stopped.protected final ProtocolID getProtocolID()
protected final NodeAddressID getLinkServerAddressID()
NodeAddressID
on which
this server is listening.
NodeAddressID
on which this server is listening.
|
CSP for Java (JCSP) 1.1-rc4 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |