|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jcsp.net2.cns.CNSService
public final class CNSService
This is the service object used to register and resolve channel names with a Channel Name Server. This provides a client front end.
| Constructor Summary | |
|---|---|
CNSService(NodeID cnsNode)
Creates a new CNSService |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CNSService(NodeID cnsNode)
throws JCSPNetworkException
cnsNode - The NodeID of the Node with the CNS on it
JCSPNetworkException - Thrown if something goes wrong in the underlying architecture| Method Detail |
|---|
public boolean register(String name,
NetChannelInput in)
name - The name to register the channel within - The NetChannelInput to register with the CNS
public NetChannelLocation resolve(String name)
throws JCSPNetworkException
name - The name to resolve
JCSPNetworkException - Thrown if something goes wrong in the underlying architecture
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||