it.jnrpe.commands
Class CommandOption

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

public final class CommandOption
extends Object

This class represent a command Option.

Author:
Massimiliano Ziccardi

Constructor Summary
CommandOption(String optName)
          Initializes an option that has no value.
CommandOption(String optName, String optValue)
          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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandOption

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

Parameters:
optName - The option name

CommandOption

public CommandOption(String optName,
                     String optValue)
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:
optName - The option name
optValue - The option value
Method Detail

getName

public String getName()
Returns the option name.

Returns:
The option name

getValue

public String getValue()
Returns the option value.

Returns:
The argument value


Copyright © 2014. All Rights Reserved.