public class org.apache.activemq.console.command.ListCommand extends org.apache.activemq.console.command.AbstractJmxCommand
{
protected java.lang.String[] helpFile;
public void <init>()
{
org.apache.activemq.console.command.ListCommand v;
java.lang.String[] v;
v := @this: org.apache.activemq.console.command.ListCommand;
specialinvoke v.<org.apache.activemq.console.command.AbstractJmxCommand: void <init>()>();
v = newarray (java.lang.String)[12];
v[0] = "Task Usage: Main list [list-options]";
v[1] = "Description:  Lists all available broker in the specified JMX context.";
v[2] = "";
v[3] = "List Options:";
v[4] = "    --jmxurl <url>             Set the JMX URL to connect to.";
v[5] = "    --pid <pid>                Set the pid to connect to (only on Sun JVM).";
v[6] = "    --jmxuser <user>           Set the JMX user used for authenticating.";
v[7] = "    --jmxpassword <password>   Set the JMX password used for authenticating.";
v[8] = "    --jmxlocal                 Use the local JMX server instead of a remote one.";
v[9] = "    --version                  Display the version information.";
v[10] = "    -h,-?,--help               Display the stop broker help information.";
v[11] = "";
v.<org.apache.activemq.console.command.ListCommand: java.lang.String[] helpFile> = v;
return;
}
public java.lang.String getName()
{
org.apache.activemq.console.command.ListCommand v;
v := @this: org.apache.activemq.console.command.ListCommand;
return "list";
}
public java.lang.String getOneLineDescription()
{
org.apache.activemq.console.command.ListCommand v;
v := @this: org.apache.activemq.console.command.ListCommand;
return "Lists all available brokers in the specified JMX context";
}
protected void runTask(java.util.List) throws java.lang.Exception
{
java.util.HashSet v;
org.apache.activemq.console.command.ListCommand v;
java.util.List v, v, v;
javax.management.MBeanServerConnection v;
org.apache.activemq.console.CommandContext v;
v := @this: org.apache.activemq.console.command.ListCommand;
v := @parameter: java.util.List;
v = new java.util.HashSet;
specialinvoke v.<java.util.HashSet: void <init>()>();
interfaceinvoke v.<java.util.Set: boolean add(java.lang.Object)>("brokerName");
v = v.<org.apache.activemq.console.command.ListCommand: org.apache.activemq.console.CommandContext context>;
v = virtualinvoke v.<org.apache.activemq.console.command.ListCommand: javax.management.MBeanServerConnection createJmxConnection()>();
v = staticinvoke <org.apache.activemq.console.util.JmxMBeansUtil: java.util.List getAllBrokers(javax.management.MBeanServerConnection)>(v);
v = staticinvoke <org.apache.activemq.console.util.JmxMBeansUtil: java.util.List filterMBeansView(java.util.List,java.util.Set)>(v, v);
virtualinvoke v.<org.apache.activemq.console.CommandContext: void printMBean(java.util.Collection)>(v);
return;
}
protected void printHelp()
{
org.apache.activemq.console.command.ListCommand v;
java.lang.String[] v;
org.apache.activemq.console.CommandContext v;
v := @this: org.apache.activemq.console.command.ListCommand;
v = v.<org.apache.activemq.console.command.ListCommand: org.apache.activemq.console.CommandContext context>;
v = v.<org.apache.activemq.console.command.ListCommand: java.lang.String[] helpFile>;
virtualinvoke v.<org.apache.activemq.console.CommandContext: void printHelp(java.lang.String[])>(v);
return;
}
}