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.
 CommandDefinition getCommand(String sName)
          Returns the named command definition.
 
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

getCommand

public CommandDefinition getCommand(String sName)
Returns the named command definition.

Parameters:
sName - The command name
Returns:


Copyright © 2012. All Rights Reserved.