com.sun.enterprise.admin.cli.embeddable
Class CommandExecutorImpl

java.lang.Object
  extended by 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

Field Summary
(package private)  CommandRunner commandRunner
           
(package private)  org.jvnet.hk2.component.Habitat habitat
           
private  Logger logger
           
private  boolean terse
           
 
Constructor Summary
CommandExecutorImpl()
           
 
Method Summary
private  CommandResult convert(ActionReport actionReport)
           
private  CommandResult convert(Exception e)
           
(package private)  ActionReport createActionReport()
           
(package private)  ActionReport executeCommand(String command, String... args)
           
(package private)  CommandRunner getCommandRunner()
           
(package private)  ParameterMap getParameters(String command, String[] args)
           
 CommandResult run(String command, String... args)
           
 void setTerse(boolean terse)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

commandRunner

CommandRunner commandRunner

habitat

org.jvnet.hk2.component.Habitat habitat

terse

private boolean terse

logger

private Logger logger
Constructor Detail

CommandExecutorImpl

public CommandExecutorImpl()
Method Detail

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.