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
ConstructorsModifierConstructorDescriptionprivateNetSharedConnectionServerImpl(Any2OneChannel synchChan, NetAltingChannelInput in) Constructor for NetSharedConnectionServerImpl. -
Method Summary
Modifier and TypeMethodDescription(package private) static NetSharedConnectionServerImplcreate()voidDestroys the server and frees any resources used within the JCSP.NET infrastructure.Produces a duplicateSharedConnectionServerobject which may be used by another process.Returns the server's location.Methods inherited from class org.jcsp.lang.SharedConnectionServerImpl
reply, reply, replyAndClose, requestMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
getChannelLocationin interfaceNetworked- Returns:
- the server's
NetChannelLocationobject. - See Also:
-
duplicate
Produces a duplicate
SharedConnectionServerobject which may be used by another process.- Specified by:
duplicatein interfaceSharedConnectionServer- Overrides:
duplicatein classSharedConnectionServerImpl- Returns:
- a new duplicate
SharedConnectionServerobject.
-
destroyServer
public void destroyServer()Destroys the server and frees any resources used within the JCSP.NET infrastructure.- Specified by:
destroyServerin interfaceNetConnectionServer
-