You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ta...@apache.org on 2013/04/04 23:02:37 UTC
svn commit: r1464760 -
/activemq/trunk/activemq-console/src/main/java/org/apache/activemq/console/command/BstatCommand.java
Author: tabish
Date: Thu Apr 4 21:02:37 2013
New Revision: 1464760
URL: http://svn.apache.org/r1464760
Log:
fix for: https://issues.apache.org/jira/browse/AMQ-4438
Modified:
activemq/trunk/activemq-console/src/main/java/org/apache/activemq/console/command/BstatCommand.java
Modified: activemq/trunk/activemq-console/src/main/java/org/apache/activemq/console/command/BstatCommand.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-console/src/main/java/org/apache/activemq/console/command/BstatCommand.java?rev=1464760&r1=1464759&r2=1464760&view=diff
==============================================================================
--- activemq/trunk/activemq-console/src/main/java/org/apache/activemq/console/command/BstatCommand.java (original)
+++ activemq/trunk/activemq-console/src/main/java/org/apache/activemq/console/command/BstatCommand.java Thu Apr 4 21:02:37 2013
@@ -29,7 +29,7 @@ public class BstatCommand extends QueryC
"",
"Bstat Options:",
" --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.",
" --jmxpassword <password> Set the JMX password used for authenticating.",
" --jmxlocal Use the local JMX server instead of a remote one.",
@@ -56,12 +56,13 @@ public class BstatCommand extends QueryC
* @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 QueryC
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 QueryC
/**
* Print the help messages for the browse command
*/
+ @Override
protected void printHelp() {
context.printHelp(helpFile);
}