|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@Contract public interface CommandRunner
CommandRunner is a service that allows you to run administrative commands.
| Nested Class Summary | |
|---|---|
static interface |
CommandRunner.CommandInvocation
CommandInvocation defines a command excecution context like the requested name of the command to execute, the parameters of the command, etc... |
| Method Summary | |
|---|---|
ActionReport |
getActionReport(java.lang.String name)
Returns an initialized ActionReport instance for the passed type or null if it cannot be found. |
AdminCommand |
getCommand(java.lang.String commandName,
ActionReport report,
java.util.logging.Logger logger)
Obtain and return the command implementation defined by the passed commandName |
CommandRunner.CommandInvocation |
getCommandInvocation(java.lang.String name,
ActionReport report)
Obtain a new command invocation object. |
CommandModel |
getModel(java.lang.String name,
java.util.logging.Logger logger)
Retuns the command model for a command name |
| Method Detail |
|---|
ActionReport getActionReport(java.lang.String name)
name - actiopn report type name
CommandModel getModel(java.lang.String name,
java.util.logging.Logger logger)
name - command namelogger - logger to log any error messages
AdminCommand getCommand(java.lang.String commandName,
ActionReport report,
java.util.logging.Logger logger)
commandName - command name as typed by usersreport - report used to communicate command status back to the userlogger - logger to log
CommandRunner.CommandInvocation getCommandInvocation(java.lang.String name,
ActionReport report)
name - name of the requested command to invokereport - where to place the status of the command execution
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||