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 voidexecute()Each subclass should implement an execute methode to implement its behaviour.protected voidexecute(MBeanServerConnection mbeanServerConnection)protected StringgetDescription()Returns the description (used for the usage) of the command.protected voidvalidate(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:
validatein classJmxCommand- Throws:
org.kohsuke.args4j.CmdLineException
-
execute
protected void execute() throws org.kohsuke.args4j.CmdLineException, CmdRunExceptionDescription copied from class:CommandEach subclass should implement an execute methode to implement its behaviour.- Overrides:
executein classJmxCommand- Throws:
org.kohsuke.args4j.CmdLineExceptionCmdRunException
-
execute
protected void execute(MBeanServerConnection mbeanServerConnection) throws IOException, MBeanServerQueryException, JMException
- Specified by:
executein classJmxCommand- Throws:
IOExceptionMBeanServerQueryExceptionJMException
-
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).
-
-