|
HPSearch | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcgl.hpsearch.services.BrokerInstantiator.Broker
Frontend to creating broker nodes and creating links between brokers
Created on Sep 26, 2004
| Constructor Summary | |
Broker(String opt_BrokerConfigFile)
Creates a broker at a specifed node... |
|
Broker(String opt_BrokerConfigFile,
String opt_ServiceConfig)
Creates a broker at a specifed node... |
|
| Method Summary | |
void |
closeLink(String linkID)
Delete the link specified by the linkID parameter |
String |
connectTo(String host,
String portNum,
String medium,
String opt_confFileName)
Creates a link to the specified broker. |
void |
disableMonitoring()
Disables the Performance Monitoring Service |
void |
enableMonitoring()
Starts the Performance Monitoring Service |
String[] |
getLinks()
Get all the links on this broker Node |
boolean |
requestGatewayAddress(String client,
String s_level)
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 |
setBrokerLocator(String blHost,
int blPort)
Sets the broker Locator |
boolean |
shutdown()
Dispose the broker |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Broker(String opt_BrokerConfigFile,
String opt_ServiceConfig)
throws NullPointerException
opt_BrokerConfigFile -
public Broker(String opt_BrokerConfigFile)
throws NullPointerException
opt_BrokerConfigFile - | Method Detail |
public String connectTo(String host,
String portNum,
String medium,
String opt_confFileName)
throws BrokerServiceException
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
BrokerServiceException - -
If the broker does not exist OR an error occurred when creating
the link
public boolean requestNodeAddress(String client,
String s_level)
throws BrokerServiceException
client - -
The link id of the connection on which the request is to be sents_level - -
address level
BrokerServiceException
public boolean requestGatewayAddress(String client,
String s_level)
throws BrokerServiceException
client - -
The link id of the connection on which the request is to be sents_level - -
address level
BrokerServiceExceptionpublic String[] getLinks()
public void closeLink(String linkID)
linkID - -
Specifies the link to deletepublic boolean shutdown()
public void setBrokerLocator(String blHost,
int blPort)
throws BrokerServiceException
blHost - -
HostblPort - -
Port
BrokerServiceException - If BrokerNode is null
public void enableMonitoring()
throws BrokerServiceException
BrokerServiceException - If error occurspublic void disableMonitoring()
|
HPSearch | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||