|
||||||||||
| 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[] args)
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 (standard output). |
| Methods inherited from class it.jnrpe.plugins.PluginBase |
|---|
addListener, addListeners, getListeners, sendEvent, sendEvent, sendEvent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, 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 proxied| Method Detail |
|---|
public Collection<PluginOption> getOptions()
public ReturnValue execute(String[] args)
throws BadThresholdException
args - The parameters to be passed to the plugin
BadThresholdExceptionpublic void printHelp()
public ReturnValue execute(ICommandLine cl)
cl - Not used
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||