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 void
execute(javax.management.MBeanServerConnection mbeanServerConnection)
protected java.lang.String
getDescription()
Returns the description (used for the usage) of the command.void
printUsage()
Prints the usage of the command.-
Methods inherited from class org.opennms.features.jmxconfiggenerator.commands.JmxCommand
execute, validate
-
-
-
-
Method Detail
-
execute
protected void execute(javax.management.MBeanServerConnection mbeanServerConnection) throws MBeanServerQueryException, java.io.IOException
- Specified by:
execute
in classJmxCommand
- Throws:
MBeanServerQueryException
java.io.IOException
-
printUsage
public void printUsage()
Description copied from class:Command
Prints the usage of the command.- Overrides:
printUsage
in classCommand
-
getDescription
protected java.lang.String getDescription()
Description copied from class:Command
Returns the description (used for the usage) of the command.- Specified by:
getDescription
in classCommand
- Returns:
- the command's description (used for the usage).
-
-