|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.jnrpe.commands.CommandInvoker
public final class CommandInvoker
This class is used to invoke a command.
| Constructor Summary | |
|---|---|
CommandInvoker(PluginRepository pluginRepository,
CommandRepository commandRepository,
Set<IJNRPEEventListener> vListeners)
Builds and initializes the CommandInvoker object. |
|
| Method Summary | |
|---|---|
ReturnValue |
invoke(CommandDefinition cd,
String[] args)
This method executes external commands (plugins) The methods also expands the $ARG? |
ReturnValue |
invoke(String sCommandName,
String[] args)
This method executes built in commands or builds a CommandDefinition to. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CommandInvoker(PluginRepository pluginRepository,
CommandRepository commandRepository,
Set<IJNRPEEventListener> vListeners)
CommandInvoker object.
pluginRepository - The plugin repository containing all the plugins that must be
used by this invoker.commandRepository - The command repository containing all the commands that must
be used by this invoker.vListeners - All the listeners| Method Detail |
|---|
public ReturnValue invoke(String sCommandName,
String[] args)
sCommandName - The name of the command, as configured in the server
configuration XMLargs - The arguments to pass to the command as configured in the
server configuration XML (with the $ARG?$ macros)
public ReturnValue invoke(CommandDefinition cd,
String[] args)
cd - The command definitionargs - The arguments to pass to the command as configured in the
server configuration XML (with the $ARG?$ macros)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||