Class DstatCommand
- java.lang.Object
-
- org.apache.activemq.console.command.AbstractCommand
-
- org.apache.activemq.console.command.AbstractJmxCommand
-
- org.apache.activemq.console.command.DstatCommand
-
- All Implemented Interfaces:
Command
public class DstatCommand extends AbstractJmxCommand
-
-
Field Summary
Fields Modifier and Type Field Description protected String[]helpFile-
Fields inherited from class org.apache.activemq.console.command.AbstractJmxCommand
DEFAULT_JMX_URL
-
Fields inherited from class org.apache.activemq.console.command.AbstractCommand
COMMAND_OPTION_DELIMETER, context
-
-
Constructor Summary
Constructors Constructor Description DstatCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanfilterMBeans(ObjectInstance obj)StringgetName()StringgetOneLineDescription()protected voidprintHelp()Print the help messages for this commandprotected voidrunTask(List<String> tokens)Execute the dstat command, which allows you to display information for topics or queue in a tabular format.-
Methods inherited from class org.apache.activemq.console.command.AbstractJmxCommand
closeJmxConnection, createJmxConnection, execute, findJMXUrlByProcessId, getJmxPassword, getJmxServiceUrl, getJmxUser, getJVM, handleOption, isJmxUseLocal, isSunJVM, setJmxPassword, setJmxServiceUrl, setJmxServiceUrl, setJmxUseLocal, setJmxUser, useJmxServiceUrl
-
Methods inherited from class org.apache.activemq.console.command.AbstractCommand
handleException, parseOptions, printHelpFromFile, setCommandContext
-
-
-
-
Field Detail
-
helpFile
protected String[] helpFile
-
-
Method Detail
-
runTask
protected void runTask(List<String> tokens) throws Exception
Execute the dstat command, which allows you to display information for topics or queue in a tabular format.- Specified by:
runTaskin classAbstractCommand- Parameters:
tokens- - command arguments- Throws:
Exception
-
getName
public String getName()
-
getOneLineDescription
public String getOneLineDescription()
-
printHelp
protected void printHelp()
Print the help messages for this command- Specified by:
printHelpin classAbstractCommand
-
filterMBeans
protected boolean filterMBeans(ObjectInstance obj)
-
-