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
Fields Modifier and Type Field Description private NetAltingChannelInputinprivate Any2OneChannelsynchChan-
Fields inherited from interface org.jcsp.lang.ConnectionServer
FACTORY
-
-
Constructor Summary
Constructors Modifier Constructor Description privateNetSharedConnectionServerImpl(Any2OneChannel synchChan, NetAltingChannelInput in)Constructor for NetSharedConnectionServerImpl.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) static NetSharedConnectionServerImplcreate()voiddestroyServer()Destroys the server and frees any resources used within the JCSP.NET infrastructure.SharedConnectionServerduplicate()Produces a duplicateSharedConnectionServerobject which may be used by another process.NetChannelLocationgetChannelLocation()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 Detail
-
synchChan
private Any2OneChannel synchChan
-
in
private NetAltingChannelInput in
-
-
Constructor Detail
-
NetSharedConnectionServerImpl
private NetSharedConnectionServerImpl(Any2OneChannel synchChan, NetAltingChannelInput in)
Constructor for NetSharedConnectionServerImpl.
-
-
Method Detail
-
create
static NetSharedConnectionServerImpl create()
-
getChannelLocation
public NetChannelLocation getChannelLocation()
Returns the server's location.- Specified by:
getChannelLocationin interfaceNetworked- Returns:
- the server's
NetChannelLocationobject. - See Also:
Networked.getChannelLocation()
-
duplicate
public SharedConnectionServer 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
-
-