public final class CNSService extends Object
Constructor and Description |
---|
CNSService(NodeID cnsNode)
Creates a new CNSService
|
Modifier and Type | Method 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
|
public CNSService(NodeID cnsNode) throws JCSPNetworkException
cnsNode
- The NodeID of the Node with the CNS on itJCSPNetworkException
- Thrown if something goes wrong in the underlying architecturepublic boolean register(String name, NetChannelInput in)
name
- The name to register the channel within
- The NetChannelInput to register with the CNSpublic NetChannelLocation resolve(String name) throws JCSPNetworkException
name
- The name to resolveJCSPNetworkException
- Thrown if something goes wrong in the underlying architectureCopyright © 1996–2017. All rights reserved.