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