public abstract class LinkServer
extends java.lang.Object
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.Modifier | Constructor and Description |
---|---|
protected |
LinkServer(ProtocolID protocolID,
NodeAddressID linkServerAddressID)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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.protected static LinkServer create(NodeAddressID addressID)
addressID
- The NodeAddressID to accept fromLinkServer
.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.Copyright © 1996–2023. All rights reserved.