Return-Path: Delivered-To: apmail-geronimo-activemq-commits-archive@www.apache.org Received: (qmail 12803 invoked from network); 13 Jun 2006 03:32:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 13 Jun 2006 03:32:38 -0000 Received: (qmail 9525 invoked by uid 500); 13 Jun 2006 03:32:37 -0000 Delivered-To: apmail-geronimo-activemq-commits-archive@geronimo.apache.org Received: (qmail 9486 invoked by uid 500); 13 Jun 2006 03:32:37 -0000 Mailing-List: contact activemq-commits-help@geronimo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: activemq-dev@geronimo.apache.org Delivered-To: mailing list activemq-commits@geronimo.apache.org Received: (qmail 9477 invoked by uid 99); 13 Jun 2006 03:32:37 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Jun 2006 20:32:37 -0700 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [140.211.166.113] (HELO eris.apache.org) (140.211.166.113) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Jun 2006 20:32:36 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id DA3231A983E; Mon, 12 Jun 2006 20:32:16 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r413796 - in /incubator/activemq/trunk/assembly/src/release/bin: bstat bstat.bat Date: Tue, 13 Jun 2006 03:32:16 -0000 To: activemq-commits@geronimo.apache.org From: aco@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20060613033216.DA3231A983E@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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=