git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1464760 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Timothy A. Bish 2013-04-04 21:02:37 +00:00
parent 0054941a53
commit 2b5d9b152a
1 changed files with 6 additions and 4 deletions

View File

@ -56,12 +56,13 @@ public class BstatCommand extends QueryCommand {
* @param tokens - command arguments
* @throws Exception
*/
@Override
protected void runTask(List<String> tokens) throws Exception {
List<String> queryTokens = new ArrayList<String>();
// Find the first non-option token
String brokerName = "*";
for (Iterator i = tokens.iterator(); i.hasNext();) {
String token = (String)i.next();
for (Iterator<String> i = tokens.iterator(); i.hasNext();) {
String token = i.next();
if (!token.startsWith("-")) {
brokerName = token;
break;
@ -78,7 +79,7 @@ public class BstatCommand extends QueryCommand {
queryTokens.add("--view");
queryTokens.add("BrokerName,Name,connectorName,networkConnectorName,destinationName,destinationType,EnqueueCount,"
+ "DequeueCount,TotalEnqueueCount,TotalDequeueCount,Messages,"
+ "TotalMessageCount,ConsumerCount,TotalConsumerCount,DispatchCount,Duplex,NetworkTTL");
+ "TotalMessageCount,ConsumerCount,TotalConsumerCount,DispatchCount,Duplex,NetworkTTL,Uptime");
// Call the query command
super.parseOptions(queryTokens);
@ -88,6 +89,7 @@ public class BstatCommand extends QueryCommand {
/**
* Print the help messages for the browse command
*/
@Override
protected void printHelp() {
context.printHelp(helpFile);
}