Class QueryCommand
- java.lang.Object
-
- org.opennms.features.jmxconfiggenerator.commands.Command
-
- org.opennms.features.jmxconfiggenerator.commands.JmxCommand
-
- org.opennms.features.jmxconfiggenerator.commands.QueryCommand
-
public class QueryCommand extends JmxCommand
Implements the "query" command functionality.
-
-
Constructor Summary
Constructors Constructor Description QueryCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidexecute(MBeanServerConnection mbeanServerConnection)protected StringgetDescription()Returns the description (used for the usage) of the command.voidprintUsage()Prints the usage of the command.-
Methods inherited from class org.opennms.features.jmxconfiggenerator.commands.JmxCommand
execute, validate
-
-
-
-
Method Detail
-
execute
protected void execute(MBeanServerConnection mbeanServerConnection) throws MBeanServerQueryException, IOException
- Specified by:
executein classJmxCommand- Throws:
MBeanServerQueryExceptionIOException
-
printUsage
public void printUsage()
Description copied from class:CommandPrints the usage of the command.- Overrides:
printUsagein classCommand
-
getDescription
protected String getDescription()
Description copied from class:CommandReturns the description (used for the usage) of the command.- Specified by:
getDescriptionin classCommand- Returns:
- the command's description (used for the usage).
-
-