Package org.jcsp.net
Class NetSharedConnectionServerImpl
java.lang.Object
org.jcsp.lang.SharedConnectionServerImpl
org.jcsp.net.NetSharedConnectionServerImpl
- All Implemented Interfaces:
ConnectionServer
,SharedConnectionServer
,NetConnectionServer
,NetSharedConnectionServer
,Networked
class NetSharedConnectionServerImpl
extends SharedConnectionServerImpl
implements NetSharedConnectionServer
-
Field Summary
FieldsFields inherited from interface org.jcsp.lang.ConnectionServer
FACTORY
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
NetSharedConnectionServerImpl
(Any2OneChannel synchChan, NetAltingChannelInput in) Constructor for NetSharedConnectionServerImpl. -
Method Summary
Modifier and TypeMethodDescription(package private) static NetSharedConnectionServerImpl
create()
void
Destroys the server and frees any resources used within the JCSP.NET infrastructure.Produces a duplicateSharedConnectionServer
object which may be used by another process.Returns the server's location.Methods inherited from class org.jcsp.lang.SharedConnectionServerImpl
reply, reply, replyAndClose, request
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.jcsp.lang.ConnectionServer
reply, reply, replyAndClose, request
-
Field Details
-
synchChan
-
in
-
-
Constructor Details
-
NetSharedConnectionServerImpl
Constructor for NetSharedConnectionServerImpl.
-
-
Method Details
-
create
-
getChannelLocation
Returns the server's location.- Specified by:
getChannelLocation
in interfaceNetworked
- Returns:
- the server's
NetChannelLocation
object. - See Also:
-
duplicate
Produces a duplicate
SharedConnectionServer
object which may be used by another process.- Specified by:
duplicate
in interfaceSharedConnectionServer
- Overrides:
duplicate
in classSharedConnectionServerImpl
- Returns:
- a new duplicate
SharedConnectionServer
object.
-
destroyServer
public void destroyServer()Destroys the server and frees any resources used within the JCSP.NET infrastructure.- Specified by:
destroyServer
in interfaceNetConnectionServer
-