|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jcsp.net2.bns.BNSService
public final class BNSService
This is the service object used to register and resolve barrier names with a Barrier Name Server. This provides a client front end.
| Constructor Summary | |
|---|---|
BNSService(NodeID bnsNode)
Creates a new BNSService |
|
| Method Summary | |
|---|---|
boolean |
register(String name,
NetBarrier bar)
Registers a Server end of a NetBarrier with the BNS |
NetBarrierLocation |
resolve(String name)
Resolves a name on the BNS, retrieving the NetBarrierLocation for the NetBarrier |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BNSService(NodeID bnsNode)
throws JCSPNetworkException
bnsNode - The Node that the BNS is on
JCSPNetworkException - Thrown if something goes wrong in the underlying architecture| Method Detail |
|---|
public boolean register(String name,
NetBarrier bar)
name - Name to register with BNSbar - Barrier to register
public NetBarrierLocation resolve(String name)
throws JCSPNetworkException
name - The name to resolve from the BNS
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 | |||||||||