public class org.apache.activemq.console.command.BstatCommand extends org.apache.activemq.console.command.QueryCommand
{
protected java.lang.String[] helpFile;
public void <init>()
{
java.lang.String[] v;
org.apache.activemq.console.command.BstatCommand v;
v := @this: org.apache.activemq.console.command.BstatCommand;
specialinvoke v.<org.apache.activemq.console.command.QueryCommand: void <init>()>();
v = newarray (java.lang.String)[16];
v[0] = "Task Usage: activemq-admin bstat [bstat-options] [broker-name]";
v[1] = "Description: Performs a predefined query that displays useful statistics regarding the specified broker.";
v[2] = "             If no broker name is specified, it will try and select from all registered brokers.";
v[3] = "";
v[4] = "Bstat Options:";
v[5] = "    --jmxurl <url>                Set the JMX URL to connect to.";
v[6] = "    --pid <pid>                   Set the pid to connect to (only on Sun JVM).";
v[7] = "    --jmxuser <user>              Set the JMX user used for authenticating.";
v[8] = "    --jmxpassword <password>      Set the JMX password used for authenticating.";
v[9] = "    --jmxlocal                    Use the local JMX server instead of a remote one.";
v[10] = "    --version                     Display the version information.";
v[11] = "    -h,-?,--help                  Display the query broker help information.";
v[12] = "";
v[13] = "Examples:";
v[14] = "    activemq-admin bstat localhost";
v[15] = "        - Display a summary of statistics for the broker \'localhost\'";
v.<org.apache.activemq.console.command.BstatCommand: java.lang.String[] helpFile> = v;
return;
}
public java.lang.String getName()
{
org.apache.activemq.console.command.BstatCommand v;
v := @this: org.apache.activemq.console.command.BstatCommand;
return "bstat";
}
public java.lang.String getOneLineDescription()
{
org.apache.activemq.console.command.BstatCommand v;
v := @this: org.apache.activemq.console.command.BstatCommand;
return "Performs a predefined query that displays useful statistics regarding the specified broker";
}
protected void runTask(java.util.List) throws java.lang.Exception
{
java.util.Iterator v;
java.util.ArrayList v;
java.util.List v;
java.lang.Object v;
java.lang.String v, v;
org.apache.activemq.console.command.BstatCommand v;
boolean v, v;
v := @this: org.apache.activemq.console.command.BstatCommand;
v := @parameter: java.util.List;
v = new java.util.ArrayList;
specialinvoke v.<java.util.ArrayList: void <init>()>();
v = "*";
v = interfaceinvoke v.<java.util.List: java.util.Iterator iterator()>();
label:
v = interfaceinvoke v.<java.util.Iterator: boolean hasNext()>();
if v == 0 goto label;
v = interfaceinvoke v.<java.util.Iterator: java.lang.Object next()>();
v = virtualinvoke v.<java.lang.String: boolean startsWith(java.lang.String)>("-");
if v != 0 goto label;
v = v;
goto label;
label:
interfaceinvoke v.<java.util.List: boolean add(java.lang.Object)>(v);
goto label;
label:
interfaceinvoke v.<java.util.List: boolean add(java.lang.Object)>("--objname");
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("type=*,brokerName=\u,*");
interfaceinvoke v.<java.util.List: boolean add(java.lang.Object)>(v);
interfaceinvoke v.<java.util.List: boolean add(java.lang.Object)>("-xQTopic=ActiveMQ.Advisory.*");
interfaceinvoke v.<java.util.List: boolean add(java.lang.Object)>("--view");
interfaceinvoke v.<java.util.List: boolean add(java.lang.Object)>("BrokerName,Name,connectorName,networkConnectorName,destinationName,destinationType,EnqueueCount,DequeueCount,TotalEnqueueCount,TotalDequeueCount,Messages,TotalMessageCount,ConsumerCount,TotalConsumerCount,DispatchCount,Duplex,NetworkTTL,Uptime");
specialinvoke v.<org.apache.activemq.console.command.QueryCommand: void parseOptions(java.util.List)>(v);
specialinvoke v.<org.apache.activemq.console.command.QueryCommand: void runTask(java.util.List)>(v);
return;
}
protected void printHelp()
{
java.lang.String[] v;
org.apache.activemq.console.command.BstatCommand v;
org.apache.activemq.console.CommandContext v;
v := @this: org.apache.activemq.console.command.BstatCommand;
v = v.<org.apache.activemq.console.command.BstatCommand: org.apache.activemq.console.CommandContext context>;
v = v.<org.apache.activemq.console.command.BstatCommand: java.lang.String[] helpFile>;
virtualinvoke v.<org.apache.activemq.console.CommandContext: void printHelp(java.lang.String[])>(v);
return;
}
}