it.jnrpe.plugins
Class PluginProxy

java.lang.Object
  extended by 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

Constructor Summary
PluginProxy(IPluginInterface plugin, PluginDefinition pluginDef)
           
 
Method Summary
 ReturnValue execute(ICommandLine cl)
          Executes the plugin
 ReturnValue execute(String[] args)
           
 Collection<PluginOption> getOptions()
          Returns a collection of all the options accepted by this plugin
 void printHelp()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PluginProxy

public PluginProxy(IPluginInterface plugin,
                   PluginDefinition pluginDef)
Method Detail

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.