This is the service object used to register and resolve channel names with a Channel Name Server. This provides a client front end.
Constructor and description |
---|
CNSService
(NodeID cnsNode) Creates a new CNSService |
Type | Name and description |
---|---|
boolean |
register(String name, NetChannelInput in) Registers an input end with the CNS |
NetChannelLocation |
resolve(String name) Resolves a name on the CNS, retrieving the NetChannelLocation for the channel |
Creates a new CNSService
cnsNode
- The NodeID of the Node with the CNS on itRegisters an input end with the CNS
name
- The name to register the channel within
- The NetChannelInput to register with the CNSResolves a name on the CNS, retrieving the NetChannelLocation for the channel
name
- The name to resolveJCSP for Java 1.8 generated 14-10-2016 by Jon Kerridge, Edinburgh Napier University - j dot kerridge at napier dot ac dot uk