it.jnrpe.commands
Class CommandOption

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

public class CommandOption
extends Object

This class represent a command Option

Author:
Massimiliano Ziccardi

Constructor Summary
CommandOption(String sOptionName)
          Initializes an option that has no value
CommandOption(String sOptionName, String sOptionValue)
          Initializes an option and its value.
 
Method Summary
 String getName()
          Returns the option name
 String getValue()
          Returns the option value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandOption

public CommandOption(String sOptionName)
Initializes an option that has no value

Parameters:
sOptionName - The option name

CommandOption

public CommandOption(String sOptionName,
                     String sOptionValue)
Initializes an option and its value. The value can be an $ARG?$ macro. If that's the case (and if the server is configured to accept macros), it's value is received by check_nrpe

Parameters:
sOptionName - The option name
sOptionValue - The option value
Method Detail

getName

public String getName()
Returns the option name

Returns:

getValue

public String getValue()
Returns the option value

Returns:


Copyright © 2011. All Rights Reserved.