public final class QpidQueueStats extends Object implements QmfEventListener
Usage: QpidQueueStats [options]
Options:
-h, --help show this help message and exit
-a <address>, --broker-address=<address>
broker-addr is in the form: [username/password@]
hostname | ip-address [:<port>] ex: localhost,
10.1.1.7:10000, broker-host:10000,
guest/guest@localhost
-f <filter>, --filter=<filter>
a list of comma separated queue names (regex are
accepted) to show
--sasl-mechanism=<mech>
SASL mechanism for authentication (e.g. EXTERNAL,
ANONYMOUS, PLAIN, CRAM-MD5, DIGEST-MD5, GSSAPI). SASL
automatically picks the most secure available
mechanism - use this option to override.
| Constructor and Description |
|---|
QpidQueueStats(String url,
String connectionOptions,
List<Pattern> filter)
Basic constructor.
|
public QpidQueueStats(String url, String connectionOptions, List<Pattern> filter)
url - the connection URL.connectionOptions - the options String to pass to ConnectionHelper.filter - a list of regex Patterns used to choose the queues we wish to display.public void onEvent(WorkItem wi)
The AgentHeartbeatWorkItem is used to periodically compare the elapsed time against the Subscription duration so that we can refresh the Subscription (or create a new one if necessary) in order to continue receiving queue Management Object data from the broker.
When the AgentRestartedWorkItem is received we clear the state to remove any stale queue Management Objects.
onEvent in interface QmfEventListenerwi - a QMF2 WorkItem objectpublic static void main(String[] args)
args - the command line arguments.Copyright © 2006–2014 The Apache Software Foundation. All rights reserved.