Class JmxConfigCreateCommand
- java.lang.Object
-
- org.opennms.features.jmxconfiggenerator.commands.Command
-
- org.opennms.features.jmxconfiggenerator.commands.JmxCommand
-
- org.opennms.features.jmxconfiggenerator.commands.JmxConfigCreateCommand
-
public class JmxConfigCreateCommand extends JmxCommand
Command to create the jmx-configgenerator.xml file.
-
-
Constructor Summary
Constructors Constructor Description JmxConfigCreateCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
execute()
Each subclass should implement an execute methode to implement its behaviour.protected void
execute(javax.management.MBeanServerConnection mbeanServerConnection)
protected java.lang.String
getDescription()
Returns the description (used for the usage) of the command.protected void
validate(org.kohsuke.args4j.CmdLineParser parser)
-
Methods inherited from class org.opennms.features.jmxconfiggenerator.commands.Command
getParser, isHelp, printUsage, run
-
-
-
-
Method Detail
-
validate
protected void validate(org.kohsuke.args4j.CmdLineParser parser) throws org.kohsuke.args4j.CmdLineException
- Overrides:
validate
in classJmxCommand
- Throws:
org.kohsuke.args4j.CmdLineException
-
execute
protected void execute() throws org.kohsuke.args4j.CmdLineException, CmdRunException
Description copied from class:Command
Each subclass should implement an execute methode to implement its behaviour.- Overrides:
execute
in classJmxCommand
- Throws:
org.kohsuke.args4j.CmdLineException
CmdRunException
-
execute
protected void execute(javax.management.MBeanServerConnection mbeanServerConnection) throws java.io.IOException, MBeanServerQueryException, javax.management.JMException
- Specified by:
execute
in classJmxCommand
- Throws:
java.io.IOException
MBeanServerQueryException
javax.management.JMException
-
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).
-
-