|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.jnrpe.commands.CommandRepository
public final class CommandRepository
This object manages all the configured commands.
| Constructor Summary | |
|---|---|
CommandRepository()
|
|
| Method Summary | |
|---|---|
void |
addCommandDefinition(CommandDefinition commandDef)
Adds a new command definition to the repository. |
Set<CommandDefinition> |
getAllCommandDefinition(String pluginName)
Returns all the command definition that involves the given plugin. |
Collection<CommandDefinition> |
getAllCommands()
|
CommandDefinition |
getCommand(String commandName)
Returns the named command definition. |
void |
removeCommandDefinition(CommandDefinition commandDef)
Remove the given command definition from the command repository object. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CommandRepository()
| Method Detail |
|---|
public void addCommandDefinition(CommandDefinition commandDef)
commandDef - The command definition to be addedpublic void removeCommandDefinition(CommandDefinition commandDef)
commandDef - the command definition to be removedpublic Set<CommandDefinition> getAllCommandDefinition(String pluginName)
pluginName - the name of the plugin we are interested in
public CommandDefinition getCommand(String commandName)
commandName - The command name
sName.
null if not found.public Collection<CommandDefinition> getAllCommands()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||