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