mirror of https://github.com/apache/activemq.git
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1464760 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
0054941a53
commit
2b5d9b152a
|
@ -29,7 +29,7 @@ public class BstatCommand extends QueryCommand {
|
||||||
"",
|
"",
|
||||||
"Bstat Options:",
|
"Bstat Options:",
|
||||||
" --jmxurl <url> Set the JMX URL to connect to.",
|
" --jmxurl <url> Set the JMX URL to connect to.",
|
||||||
" --pid <pid> Set the pid to connect to (only on Sun JVM).",
|
" --pid <pid> Set the pid to connect to (only on Sun JVM).",
|
||||||
" --jmxuser <user> Set the JMX user used for authenticating.",
|
" --jmxuser <user> Set the JMX user used for authenticating.",
|
||||||
" --jmxpassword <password> Set the JMX password used for authenticating.",
|
" --jmxpassword <password> Set the JMX password used for authenticating.",
|
||||||
" --jmxlocal Use the local JMX server instead of a remote one.",
|
" --jmxlocal Use the local JMX server instead of a remote one.",
|
||||||
|
@ -56,12 +56,13 @@ public class BstatCommand extends QueryCommand {
|
||||||
* @param tokens - command arguments
|
* @param tokens - command arguments
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
protected void runTask(List<String> tokens) throws Exception {
|
protected void runTask(List<String> tokens) throws Exception {
|
||||||
List<String> queryTokens = new ArrayList<String>();
|
List<String> queryTokens = new ArrayList<String>();
|
||||||
// Find the first non-option token
|
// Find the first non-option token
|
||||||
String brokerName = "*";
|
String brokerName = "*";
|
||||||
for (Iterator i = tokens.iterator(); i.hasNext();) {
|
for (Iterator<String> i = tokens.iterator(); i.hasNext();) {
|
||||||
String token = (String)i.next();
|
String token = i.next();
|
||||||
if (!token.startsWith("-")) {
|
if (!token.startsWith("-")) {
|
||||||
brokerName = token;
|
brokerName = token;
|
||||||
break;
|
break;
|
||||||
|
@ -78,7 +79,7 @@ public class BstatCommand extends QueryCommand {
|
||||||
queryTokens.add("--view");
|
queryTokens.add("--view");
|
||||||
queryTokens.add("BrokerName,Name,connectorName,networkConnectorName,destinationName,destinationType,EnqueueCount,"
|
queryTokens.add("BrokerName,Name,connectorName,networkConnectorName,destinationName,destinationType,EnqueueCount,"
|
||||||
+ "DequeueCount,TotalEnqueueCount,TotalDequeueCount,Messages,"
|
+ "DequeueCount,TotalEnqueueCount,TotalDequeueCount,Messages,"
|
||||||
+ "TotalMessageCount,ConsumerCount,TotalConsumerCount,DispatchCount,Duplex,NetworkTTL");
|
+ "TotalMessageCount,ConsumerCount,TotalConsumerCount,DispatchCount,Duplex,NetworkTTL,Uptime");
|
||||||
|
|
||||||
// Call the query command
|
// Call the query command
|
||||||
super.parseOptions(queryTokens);
|
super.parseOptions(queryTokens);
|
||||||
|
@ -88,6 +89,7 @@ public class BstatCommand extends QueryCommand {
|
||||||
/**
|
/**
|
||||||
* Print the help messages for the browse command
|
* Print the help messages for the browse command
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
protected void printHelp() {
|
protected void printHelp() {
|
||||||
context.printHelp(helpFile);
|
context.printHelp(helpFile);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue