it.jnrpe.commands
Class CommandRepository
java.lang.Object
it.jnrpe.commands.CommandRepository
public final class CommandRepository
- extends Object
This object manages all the configured commands.
- Author:
- Massimiliano Ziccardi
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CommandRepository
public CommandRepository()
addCommandDefinition
public void addCommandDefinition(CommandDefinition commandDef)
- Adds a new command definition to the repository.
- Parameters:
commandDef - The command definition to be added
removeCommandDefinition
public void removeCommandDefinition(CommandDefinition commandDef)
getAllCommandDefinition
public Set<CommandDefinition> getAllCommandDefinition(String pluginName)
getCommand
public CommandDefinition getCommand(String commandName)
- Returns the named command definition.
- Parameters:
commandName - The command name
- Returns:
- The command definition associated with
sName.
null if not found.
getAllCommands
public Collection<CommandDefinition> getAllCommands()
- Returns:
- all the installed commands.
Copyright © 2014. All Rights Reserved.