|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcgl.narada.node.BrokerNode
public class BrokerNode
The Narada Broker instance. The properties for this broker are specified in the configuration file.
| Nested Class Summary | |
|---|---|
static class |
BrokerNode.BrokerProcess
|
| Field Summary | |
|---|---|
static String |
aboutThisBroker
|
static String |
belongsToGroup
|
| Fields inherited from interface cgl.narada.node.NodeDebugFlags |
|---|
BrokerNode_Debug, BrokerPropertiesReader_Debug, ClientNode_Debug, ServerNode_Debug |
| Constructor Summary | |
|---|---|
BrokerNode(Properties props)
|
|
| Method Summary | |
|---|---|
void |
closeLink(String linkID)
Delete the link specified by the linkID parameter. |
String |
connectTo(Properties props,
String transport)
Older version of connectTo Function |
String |
connectTo(String host,
String portNum,
String medium,
int level)
Creates a link to the specified broker. |
void |
disableMonitoringService()
|
void |
enableMonitoringService()
|
BrokerInformationDocument |
getBrokerInformation()
|
Properties |
getBrokerProperties()
|
String[] |
getLinks()
Get all the links on this broker Node |
void |
handleEvent(Object arg0)
|
static void |
main(String[] args)
|
boolean |
requestGatewayAddress(String client,
int gatewayLevel)
Tell the broker to request a gateway address from the specified broker |
boolean |
requestNodeAddress(String client,
String s_level)
Tell the broker to request a node address from the specified client |
void |
sendTo(String client,
byte[] data)
|
void |
setBrokerSystemEventGenerator(BrokerSystemEventGenerator evGen)
|
boolean |
shutdown()
Shuts down the broker and cleans up all resources |
void |
startMonitoringService()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static String aboutThisBroker
public static String belongsToGroup
| Constructor Detail |
|---|
public BrokerNode(Properties props)
| Method Detail |
|---|
public final BrokerInformationDocument getBrokerInformation()
public void handleEvent(Object arg0)
handleEvent in interface BrokerSystemEventListenerpublic final void setBrokerSystemEventGenerator(BrokerSystemEventGenerator evGen)
public String connectTo(String host,
String portNum,
String medium,
int level)
host - The host on which the target boker residesportNum - The port number to which a connection is requestedmedium - The transport protocol to be used. Valid values are
opt_confFileName - May be blank unless the medium is http or ssl
public String connectTo(Properties props,
String transport)
throws TransportException
props - transport -
TransportException
public boolean requestNodeAddress(String client,
String s_level)
client - -
The link id of the connection on which the request is to be
sents_level - -
address level
public boolean requestGatewayAddress(String client,
int gatewayLevel)
client - -
The link id of the connection on which the request is to be
sents_level - -
address level
public String[] getLinks()
public void closeLink(String linkID)
linkID - -
Specifies the link to deletepublic boolean shutdown()
public void sendTo(String client,
byte[] data)
public void startMonitoringService()
throws TransportException
TransportException
public void enableMonitoringService()
throws TransportException
TransportExceptionpublic void disableMonitoringService()
public final Properties getBrokerProperties()
public static void main(String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||