Scripting Interfaces: NB Host Objects
BrokerDiscovery
Synopsis
Provides an interface to the Narada Borkering Broker Discovery Service. It
provides the following functions. For details on terminology, refer to the
following
paper.
- discover(int timeout, int maxResponses, int maxSetSize,
String[] protocols, Stirng belongingToNetwork)
Here,
timeout - Timeout waiting for response (milliSeconds)
maxResponses - Maximum Responses to collect
maxSetSize - BrokerTargetSet Size
protocols - Broker MUST have these link factories up
belongingToNetwork - Broker MUST belong to this Virtual Private Network
Returns a BrokerDiscoveryResponse corresponding to the best broker.
If no such broker can be located, null is returned.
E.g.
x = BrokerDiscovery.discover(5000, 5, 2, ["niotcp", "tcp"], "*");
Status:Testing Phase (Prototype Implementation)
(back to Notes)