it.jnrpe.commands
Class CommandDefinition

java.lang.Object
  extended by it.jnrpe.commands.CommandDefinition

public class CommandDefinition
extends Object

Container class for command definition configuration

Author:
Massimiliano Ziccardi

Constructor Summary
CommandDefinition(String sName, String sPluginName)
           
 
Method Summary
 CommandDefinition addArgument(CommandOption arg)
           
 String getArgs()
           
 String[] getCommandLine()
          Merges the command line definition read from the server config file with the values received from check_nrpe and produces a clean command line.
 String getName()
           
 String getPluginName()
           
 void setArgs(String sArgs)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandDefinition

public CommandDefinition(String sName,
                         String sPluginName)
Method Detail

setArgs

public void setArgs(String sArgs)

getName

public String getName()

getPluginName

public String getPluginName()

getArgs

public String getArgs()

getCommandLine

public String[] getCommandLine()
Merges the command line definition read from the server config file with the values received from check_nrpe and produces a clean command line.

Returns:

addArgument

public CommandDefinition addArgument(CommandOption arg)


Copyright © 2011. All Rights Reserved.