Thursday, June 14, 2012

how to start the broker 



Stop Broker Server

To stop a Broker Server running on port 6864:
./server_config stop -h localhost -monitor_port 6865 -broker_port 6864

-h localhost is redundant as it defaults to localhost if none provided

Output:
Using Monitor configuration from "INSTALL_DIR/bin/awbrokermon.cfg".
The Broker Server at "localhost:6864" is currently running.
Would you like to stop it (y or Y for yes, no otherwise)?
y
Successfully stopped the Broker Server at "localhost:6864".

To confirm:
./server_config list

Result:
Using Monitor configuration from "INSTALL_DIR/bin/awbrokermon.cfg".
List of configured servers running on "localhost:6865":
1. Datadir:      INSTALL_DIR/data/awbrokers71/default
     Runstatus:    <strong>Stopped</strong>
     Executable:   INSTALL_DIR/bin/awbroker
     Port:         6864
     Version:      7.1
     License-key: "XXXXXX-XXXXXX-XX-XXXXXX-XXXX-XXXXXX"
     Description: ""



Create Broker



To create a broker (mywmBroker01) on a Broker Server running on port 6864:
./broker_create mywmBroker01@localhost:6864 -default -description "DEV Broker 01"

To add another broker to the same server:
./broker_create myBroker02@localhost:6864 -description "DEV Broker 02"



Broker Status


To find out the status for the Broker Server running on 6864:
./broker_status localhost:6864

will give an output similar to the following:
Version on Server "localhost:6864" is Version 7.1.2.0.78
091208
Status of "myBroker01@localhost:6864"
Territory:
Current time 11/12/2010 22:21:21.547
Creation time 10/21/2010 17:13:11
Number of clients 80
Number of document types 83
Total documents published by broker 0
Total documents published by clients 12
Total documents delivered by clients 15
Total documents queued for clients 62
brstats.eventLogLength 0
Status of "myBroker02@localhost:6864"
Territory:
Current time 11/12/2010 22:21:21.645
Creation time 11/12/2010 22:21:16
Number of clients 1
Number of document types 31
Total documents published by broker 0
Total documents published by clients 0
Total documents delivered by clients 0
Total documents queued for clients 0
brstats.eventLogLength 0


Delete Broker


To delete a broker running on ‘localhost’:
./broker_delete myBroker02@localhost:6864

will produce the following output:
Are you sure you want to delete "myBroker02@localhost:6864" (y/n)? y
"myBroker02@localhost:6864" has been deleted.



Ping Broker

To find the health of a broker:
./broker_ping myBroker01@localhost:6879

will produce the following output:
PING myBroker01@localhost:6879
myBroker01@localhost:6879 is alive

No comments:

Post a Comment