public final class BNSService extends Object
Constructor and Description |
---|
BNSService(NodeID bnsNode)
Creates a new BNSService
|
Modifier and Type | Method and Description |
---|---|
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
|
public BNSService(NodeID bnsNode) throws JCSPNetworkException
bnsNode
- The Node that the BNS is onJCSPNetworkException
- Thrown if something goes wrong in the underlying architecturepublic boolean register(String name, NetBarrier bar)
name
- Name to register with BNSbar
- Barrier to registerpublic NetBarrierLocation resolve(String name) throws JCSPNetworkException
name
- The name to resolve from the BNSJCSPNetworkException
- Thrown if something goes wrong in the underlying architectureCopyright © 1996–2014. All rights reserved.