activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r413796 - in /incubator/activemq/trunk/assembly/src/release/bin: bstat bstat.bat
Date Tue, 13 Jun 2006 03:32:16 GMT
Author: aco
Date: Mon Jun 12 20:32:16 2006
New Revision: 413796

URL: http://svn.apache.org/viewvc?rev=413796&view=rev
Log:
Added support for bstat --help, bstat -h, and bstat -? (AMQ-702)

Modified:
    incubator/activemq/trunk/assembly/src/release/bin/bstat
    incubator/activemq/trunk/assembly/src/release/bin/bstat.bat

Modified: incubator/activemq/trunk/assembly/src/release/bin/bstat
URL: http://svn.apache.org/viewvc/incubator/activemq/trunk/assembly/src/release/bin/bstat?rev=413796&r1=413795&r2=413796&view=diff
==============================================================================
--- incubator/activemq/trunk/assembly/src/release/bin/bstat (original)
+++ incubator/activemq/trunk/assembly/src/release/bin/bstat Mon Jun 12 20:32:16 2006
@@ -136,7 +136,14 @@
 ACTIVEMQ_TASK="query"
 
 BROKER_NAME=$1
-if [ -z "$BROKER_NAME" ] ; then
+if [ "$BROKER_NAME" = "--help" -o "$BROKER_NAME" = "-h" -o "$BROKER_NAME" = "-?" ] ; then

+    echo
+    echo Performs a predefined query that displays useful statistics regarding the specified
broker.
+    echo If no broker name is specified, it will try and select from all registered brokers.
+    echo Usage: bstat [brokerName] [--jmxurl url]
+    echo
+    exit 0
+elif [ -z "$BROKER_NAME" ] ; then
     BROKER_NAME="*"
 fi
 shift

Modified: incubator/activemq/trunk/assembly/src/release/bin/bstat.bat
URL: http://svn.apache.org/viewvc/incubator/activemq/trunk/assembly/src/release/bin/bstat.bat?rev=413796&r1=413795&r2=413796&view=diff
==============================================================================
--- incubator/activemq/trunk/assembly/src/release/bin/bstat.bat (original)
+++ incubator/activemq/trunk/assembly/src/release/bin/bstat.bat Mon Jun 12 20:32:16 2006
@@ -30,7 +30,11 @@
 
 rem Assume first parameter is broker name
 set BROKER_NAME=%1
+if "%BROKER_NAME%" == "--help" goto dispHelp
+if "%BROKER_NAME%" == "-h" goto dispHelp
+if "%BROKER_NAME%" == "-?" goto dispHelp
 if "%BROKER_NAME%" == "" set BROKER_NAME=*
+
 shift
 
 rem Slurp the command line arguments. This loop allows for an unlimited number
@@ -111,9 +115,17 @@
 
 "%_JAVACMD%" %ACTIVEMQ_DEBUG_OPTS% %ACTIVEMQ_OPTS% -Djava.ext.dirs="%JAVA_EXT_DIRS%" -classpath
"%LOCALCLASSPATH%" -jar "%ACTIVEMQ_HOME%/bin/run.jar" %ACTIVEMQ_TASK% %QUERY_PARAM% %ACTIVEMQ_CMD_LINE_ARGS%
 
-
 goto end
 
+:dispHelp
+
+echo.
+echo Performs a predefined query that displays useful statistics regarding the specified
broker.
+echo If no broker name is specified, it will try and select from all registered brokers.
+echo Usage: bstat [brokerName] [--jmxurl url]
+echo.
+
+goto end
 
 :end
 set LOCALCLASSPATH=



Mime
View raw message