|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.enterprise.v3.admin.CommandRunnerImpl
@Service public class CommandRunnerImpl
Encapsulates the logic needed to execute a server-side command (for example, a descendant of AdminCommand) including injection of argument values into the command.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.glassfish.api.admin.CommandRunner |
|---|
CommandRunner.CommandInvocation |
| Constructor Summary | |
|---|---|
CommandRunnerImpl()
|
|
| Method Summary | |
|---|---|
ActionReport |
getActionReport(String name)
Returns an initialized ActionReport instance for the passed type or null if it cannot be found. |
AdminCommand |
getCommand(String commandName,
ActionReport report,
Logger logger)
Obtain and return the command implementation defined by the passed commandName. |
CommandRunner.CommandInvocation |
getCommandInvocation(String name,
ActionReport report)
Obtain a new command invocation object. |
void |
getHelp(AdminCommand command,
ActionReport report)
|
static BufferedReader |
getManPage(String commandName,
CommandModel model)
Return an InputStream for the man page for the named command. |
CommandModel |
getModel(String commandName,
Logger logger)
Retuns the command model for a command name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CommandRunnerImpl()
| Method Detail |
|---|
public ActionReport getActionReport(String name)
getActionReport in interface CommandRunnername - actiopn report type name
public CommandModel getModel(String commandName,
Logger logger)
getModel in interface CommandRunnercommandName - command namelogger - logger to log any error messages
public AdminCommand getCommand(String commandName,
ActionReport report,
Logger logger)
getCommand in interface CommandRunnercommandName - command name as typed by usersreport - report used to communicate command status back to the userlogger - logger to log
public CommandRunner.CommandInvocation getCommandInvocation(String name,
ActionReport report)
getCommandInvocation in interface CommandRunnername - name of the requested command to invokereport - where to place the status of the command execution
public void getHelp(AdminCommand command,
ActionReport report)
public static BufferedReader getManPage(String commandName,
CommandModel model)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||