Class JmxCommand
- java.lang.Object
-
- org.opennms.features.jmxconfiggenerator.commands.Command
-
- org.opennms.features.jmxconfiggenerator.commands.JmxCommand
-
- Direct Known Subclasses:
JmxConfigCreateCommand,QueryCommand
public abstract class JmxCommand extends Command
Class for all commands which need a JMX server connection.
-
-
Constructor Summary
Constructors Constructor Description JmxCommand()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidexecute()Each subclass should implement an execute methode to implement its behaviour.protected abstract voidexecute(MBeanServerConnection mBeanServerConnection)protected voidvalidate(org.kohsuke.args4j.CmdLineParser parser)-
Methods inherited from class org.opennms.features.jmxconfiggenerator.commands.Command
getDescription, getParser, isHelp, printUsage, run
-
-
-
-
Method Detail
-
validate
protected void validate(org.kohsuke.args4j.CmdLineParser parser) 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.- Specified by:
executein classCommand- Throws:
org.kohsuke.args4j.CmdLineExceptionCmdRunException
-
execute
protected abstract void execute(MBeanServerConnection mBeanServerConnection) throws MBeanServerQueryException, IOException, JMException
-
-