|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.jnrpe.commands.CommandDefinition
public final class CommandDefinition
Container class for command definition configuration.
Constructor Summary | |
---|---|
CommandDefinition(String commandName,
String cmdPluginName)
Builds and initializes the command definition. |
Method Summary | |
---|---|
CommandDefinition |
addArgument(CommandOption arg)
Adds an option to the command definition. |
String |
getArgs()
The raw command line of this command. |
String[] |
getCommandLine()
Merges the command line definition read from the server config file with. |
String |
getName()
Returns the command name. |
Collection<CommandOption> |
getOptions()
|
String |
getPluginName()
Returns the name of the plugin associated with this command. |
void |
setArgs(String args)
Sets the raw arguments of this command. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CommandDefinition(String commandName, String cmdPluginName)
commandName
- The command namecmdPluginName
- The plugin associated with this commandMethod Detail |
---|
public void setArgs(String args)
args
- The command linepublic String getName()
public String getPluginName()
public String getArgs()
public String[] getCommandLine()
public CommandDefinition addArgument(CommandOption arg)
arg
- The option to be added
public Collection<CommandOption> getOptions()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |