it.jnrpe.plugins
Class PluginProxy
java.lang.Object
it.jnrpe.plugins.PluginProxy
- All Implemented Interfaces:
- IPluginInterface
public class PluginProxy
- extends Object
- implements IPluginInterface
This class was intended to abstract the kind of plugin to execute.
Hides command line parsing from command invoker.
- Author:
- Massimiliano Ziccardi
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PluginProxy
public PluginProxy(IPluginInterface plugin,
PluginDefinition pluginDef)
getOptions
public Collection<PluginOption> getOptions()
- Returns a collection of all the options accepted by this plugin
- Returns:
execute
public ReturnValue execute(String[] args)
printHelp
public void printHelp()
execute
public ReturnValue execute(ICommandLine cl)
- Description copied from interface:
IPluginInterface
- Executes the plugin
- Specified by:
execute in interface IPluginInterface
- Parameters:
cl - The parsified command line arguments
- Returns:
- The result of the plugin
Copyright © 2011. All Rights Reserved.