|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.jnrpe.plugins.PluginBase
it.jnrpe.plugins.PluginProxy
public final class PluginProxy
This class was intended to abstract the kind of plugin to execute. Hides command line parsing from command invoker.
Constructor Summary | |
---|---|
PluginProxy(IPluginInterface plugin,
PluginDefinition pluginDef)
Instantiate a new plugin proxy. |
Method Summary | |
---|---|
ReturnValue |
execute(ICommandLine cl)
Not used. |
ReturnValue |
execute(String[] argsAry)
Executes the proxied plugin passing the received arguments as parameters. |
Collection<PluginOption> |
getOptions()
Returns a collection of all the options accepted by this plugin. |
void |
printHelp()
Prints the help related to the plugin to standard output. |
void |
printHelp(PrintWriter out)
Prints the help related to the plugin to a specified output. |
Methods inherited from class it.jnrpe.plugins.PluginBase |
---|
addListener, addListeners, configureThresholdEvaluatorBuilder, gatherMetrics, sendEvent, sendEvent, sendEvent |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PluginProxy(IPluginInterface plugin, PluginDefinition pluginDef)
plugin
- The plugin to be proxiedpluginDef
- The plugin definition of the plugin to be proxiedMethod Detail |
---|
public Collection<PluginOption> getOptions()
public ReturnValue execute(String[] argsAry) throws BadThresholdException
argsAry
- The parameters to be passed to the plugin
BadThresholdException
- -public void printHelp(PrintWriter out)
out
- the writer where the help should be writtenpublic void printHelp()
public ReturnValue execute(ICommandLine cl)
execute
in interface IPluginInterface
execute
in class PluginBase
cl
- Not used
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |