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 NetAltingChannelInput
in
private Any2OneChannel
synchChan
-
Fields inherited from interface org.jcsp.lang.ConnectionServer
FACTORY
-
-
Constructor Summary
Constructors Modifier Constructor Description private
NetSharedConnectionServerImpl(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 NetSharedConnectionServerImpl
create()
void
destroyServer()
Destroys the server and frees any resources used within the JCSP.NET infrastructure.SharedConnectionServer
duplicate()
Produces a duplicateSharedConnectionServer
object which may be used by another process.NetChannelLocation
getChannelLocation()
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:
getChannelLocation
in interfaceNetworked
- Returns:
- the server's
NetChannelLocation
object. - See Also:
Networked.getChannelLocation()
-
duplicate
public SharedConnectionServer 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
-
-