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 Params | Return 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 18-09-2017 by Jon Kerridge, Edinburgh Napier University