it.jnrpe.commands
Class CommandRepository

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

public final class CommandRepository
extends Object

This object manages all the configured commands.

Author:
Massimiliano Ziccardi

Constructor Summary
CommandRepository()
           
 
Method Summary
 void addCommandDefinition(CommandDefinition commandDef)
          Adds a new command definition to the repository.
 Set<CommandDefinition> getAllCommandDefinition(String pluginName)
           
 Collection<CommandDefinition> getAllCommands()
           
 CommandDefinition getCommand(String commandName)
          Returns the named command definition.
 void removeCommandDefinition(CommandDefinition commandDef)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandRepository

public CommandRepository()
Method Detail

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.