public class BNS
This is the main process for the Barrier Name Server. For a more in depth discussion of name servers, see CNS.
Type | Name and description |
---|---|
static BNS |
getInstance() Gets the singleton instance of the BNS |
static void |
initialise(NodeID bnsNode) Initialises the connection to the BNS |
static void |
initialise(NodeAddress bnsNode) Initialises the connection to the BNS |
static NetBarrier |
netBarrier(String name, int localEnrolled, int netEnrolled) Creates a new server end of a NetBarrier with the given name |
static NetBarrier |
netBarrier(String name, int enrolled) Creates a new client end of a NetBarrier |
static NetBarrier |
numberedNetBarrier(String name, int index, int localEnrolled, int netEnrolled) Creates a new server end of a NetBarrier with a given index and name |
void |
run() The run method for the BNS process |
Gets the singleton instance of the BNS
Initialises the connection to the BNS
bnsNode
- The NodeID of the BNS NodeInitialises the connection to the BNS
bnsNode
- The NodeAddress of the BNS NodeCreates a new server end of a NetBarrier with the given name
name
- The name to register with the BNSlocalEnrolled
- The number of locally enrolled processesnetEnrolled
- The number of net enrolled processes to expectCreates a new client end of a NetBarrier
name
- The name to resolve with the BNSenrolled
- The number of locally enrolled processesCreates a new server end of a NetBarrier with a given index and name
name
- Name to register with the BNSindex
- The index to create the NetBarrier withlocalEnrolled
- The number of locally enrolled processesnetEnrolled
- The number of remote enrollments to wait forThe run method for the BNS process