Package org.jcsp.net.cns
This package contains the files specifically for the JCSP.NET Channel Name Service (CNS). A CNS provides a broker service, enabling distributed JCSP processes to set up communications with each other. Networked channels have names. Currently, networked channels are automatically Any-One. The reading process is responsible for creating the channel and (optionally) registering it with a CNS with some unique (to the CNS) name. Writing processes need to know (or be told) the name of a networked channel to connect to it by the CNS. Communications between networked writers and reader then proceed directly (independent from the CNS).
See
and CNS
for information on the service.
CNSService
-
Interface Summary Interface Description CNSUser Interface that a class can implement to indicate that instances allow channel names within a naming service to be managed.LocationNotCNSRegisterable This class should be implemented by NetChannelLocation objects which do not want to allow themselves to be registered with the Channel Name Server.NamedChannelEndFactory Classes implementing this interface act as factories for constructingNetChannelInput
andNetChannelOutput
objects.NamedChannelEndManager Classes implementing this interface act as factories for constructingNetChannelInput
andNetChannelOutput
objects (seeNamedChannelEndFactory
). -
Class Summary Class Description ChannelNameKey Instances of this hold a key for a particular channel.CNS This class is the Channel Name Server's main server process class.CNS.NameAndLevel A data structure for holding a channel name and access level.CNS.PendingResolve CNSChannelEndManager This class implements theNamedChannelEndManager
interface; providing methods for both constructing and destroying channels.CNSChannelEndManager.ChannelRegistration CNSMessage This class is only visible to this package and does not need to be used by JCSP users.CNSMessage.CNSReplyMessage CNSMessage.CNSRequestMessage CNSMessage.DeregisterReply CNSMessage.DeregisterRequest CNSMessage.LeaseReply CNSMessage.LeaseRequest CNSMessage.LogonMessage CNSMessage.LogonReplyMessage CNSMessage.RegisterReply CNSMessage.RegisterRequest CNSMessage.ResolveReply CNSMessage.ResolveRequest CNSNetChannelLocation Instances of this class are returned by the resolve methods of
.CNSService
CNSService This class is the Channel Name Server's main client process class.CNSService.PendingResolve Data structure for pending resolve requests.NameAccessLevel This class allows name spaces to be identified aroundAbstractID
objects (currently includingApplicationID
,NodeID
,DomainID
andGlobalID
). -
Exception Summary Exception Description ChannelNameException An exception caused by an invalid channel name.NameAccessLevelException An exception caused by an invalid or misused NameAccessLevel.WrongFactoryException Thrown if an attempt is made to get aNamedChannelEndManager
to destroy a channel that it did not create.