com.sun.enterprise.admin.cli.embeddable
Class CommandExecutorImpl
java.lang.Object
com.sun.enterprise.admin.cli.embeddable.CommandExecutorImpl
- All Implemented Interfaces:
- CommandRunner
@Service
@Scoped(value=org.jvnet.hk2.component.PerLookup.class)
public class CommandExecutorImpl
- extends Object
- implements CommandRunner
- Author:
- bhavanishankar@dev.java.net, sanjeeb.sahoo@sun.com
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
commandRunner
CommandRunner commandRunner
habitat
org.jvnet.hk2.component.Habitat habitat
terse
private boolean terse
logger
private Logger logger
CommandExecutorImpl
public CommandExecutorImpl()
run
public CommandResult run(String command,
String... args)
- Specified by:
run in interface CommandRunner
getParameters
ParameterMap getParameters(String command,
String[] args)
throws CommandException
- Throws:
CommandException
setTerse
public void setTerse(boolean terse)
- Specified by:
setTerse in interface CommandRunner
executeCommand
ActionReport executeCommand(String command,
String... args)
throws CommandException
- Throws:
CommandException
convert
private CommandResult convert(ActionReport actionReport)
convert
private CommandResult convert(Exception e)
createActionReport
ActionReport createActionReport()
getCommandRunner
CommandRunner getCommandRunner()
Copyright © 2012 GlassFish Community. All Rights Reserved.