@Service public class CommandRunnerImpl extends Object implements org.glassfish.api.admin.CommandRunner
| Constructor and Description |
|---|
CommandRunnerImpl() |
| Modifier and Type | Method and Description |
|---|---|
org.glassfish.api.ActionReport |
getActionReport(String name)
Returns an initialized ActionReport instance for the passed type or
null if it cannot be found.
|
org.glassfish.api.admin.AdminCommand |
getCommand(String commandName,
org.glassfish.api.ActionReport report,
Logger logger)
Obtain and return the command implementation defined by
the passed commandName for the null scope.
|
org.glassfish.api.admin.AdminCommand |
getCommand(String scope,
String commandName,
org.glassfish.api.ActionReport report,
Logger logger)
Obtain and return the command implementation defined by
the passed commandName.
|
org.glassfish.api.admin.CommandRunner.CommandInvocation |
getCommandInvocation(String name,
org.glassfish.api.ActionReport report,
Subject subject)
Obtain a new command invocation object for the null scope.
|
org.glassfish.api.admin.CommandRunner.CommandInvocation |
getCommandInvocation(String scope,
String name,
org.glassfish.api.ActionReport report,
Subject subject)
Obtain a new command invocation object.
|
void |
getHelp(org.glassfish.api.admin.AdminCommand command,
org.glassfish.api.ActionReport report) |
BufferedReader |
getHelp(org.glassfish.api.admin.CommandModel model) |
static BufferedReader |
getManPage(String commandName,
org.glassfish.api.admin.CommandModel model)
Return an InputStream for the man page for the named command.
|
org.glassfish.api.admin.CommandModel |
getModel(String commandName,
Logger logger)
Returns the command model for a command name.
|
org.glassfish.api.admin.CommandModel |
getModel(String scope,
String commandName,
Logger logger)
Returns the command model for a command name.
|
boolean |
validateCommandModelETag(org.glassfish.api.admin.AdminCommand command,
String eTag) |
boolean |
validateCommandModelETag(org.glassfish.api.admin.CommandModel model,
String eTag) |
public org.glassfish.api.ActionReport getActionReport(String name)
getActionReport in interface org.glassfish.api.admin.CommandRunnername - action report type namepublic org.glassfish.api.admin.CommandModel getModel(String commandName, Logger logger)
getModel in interface org.glassfish.api.admin.CommandRunnercommandName - command namelogger - logger to log any error messagespublic org.glassfish.api.admin.CommandModel getModel(String scope, String commandName, Logger logger)
getModel in interface org.glassfish.api.admin.CommandRunnercommandName - command namelogger - logger to log any error messagespublic boolean validateCommandModelETag(org.glassfish.api.admin.AdminCommand command,
String eTag)
validateCommandModelETag in interface org.glassfish.api.admin.CommandRunnerpublic boolean validateCommandModelETag(org.glassfish.api.admin.CommandModel model,
String eTag)
validateCommandModelETag in interface org.glassfish.api.admin.CommandRunnerpublic org.glassfish.api.admin.AdminCommand getCommand(String commandName, org.glassfish.api.ActionReport report, Logger logger)
getCommand in interface org.glassfish.api.admin.CommandRunnercommandName - command name as typed by usersreport - report used to communicate command status back to the userlogger - logger to logpublic org.glassfish.api.admin.AdminCommand getCommand(String scope, String commandName, org.glassfish.api.ActionReport report, Logger logger)
getCommand in interface org.glassfish.api.admin.CommandRunnercommandName - command name as typed by usersreport - report used to communicate command status back to the userlogger - logger to logpublic org.glassfish.api.admin.CommandRunner.CommandInvocation getCommandInvocation(String name, org.glassfish.api.ActionReport report, Subject subject)
getCommandInvocation in interface org.glassfish.api.admin.CommandRunnername - name of the requested command to invokereport - where to place the status of the command executionsubject - the Subject under which to execute the commandpublic org.glassfish.api.admin.CommandRunner.CommandInvocation getCommandInvocation(String scope, String name, org.glassfish.api.ActionReport report, Subject subject)
getCommandInvocation in interface org.glassfish.api.admin.CommandRunnerscope - the scope (or name space) for the commandname - name of the requested command to invokereport - where to place the status of the command executionsubject - the Subject under which to execute the commandpublic BufferedReader getHelp(org.glassfish.api.admin.CommandModel model) throws com.sun.enterprise.v3.admin.CommandNotFoundException
getHelp in interface org.glassfish.api.admin.CommandRunnercom.sun.enterprise.v3.admin.CommandNotFoundExceptionpublic void getHelp(org.glassfish.api.admin.AdminCommand command,
org.glassfish.api.ActionReport report)
public static BufferedReader getManPage(String commandName, org.glassfish.api.admin.CommandModel model)
Copyright © 2013. All Rights Reserved.