public class CommandProcessorImpl extends Object implements CommandProcessor
Modifier and Type | Field and Description |
---|---|
protected boolean |
commandExecutionEnabled
Flag that enables/disabled the command execution.
|
protected List<Command> |
failedCommands
List of commands failed.
|
protected List<Command> |
successfulCommands
List of commands executed successfully.
|
Constructor and Description |
---|
CommandProcessorImpl() |
Modifier and Type | Method and Description |
---|---|
Command |
buildCommand(String[] expression) |
protected Command |
createCommand(String commandName) |
List<Command> |
getFailedCommands() |
List<Command> |
getSuccessfulCommands() |
boolean |
isCommandExecutionEnabled() |
String |
processCommand(Command command) |
String |
processCommand(String[] expression) |
void |
setCommandExecutionEnabled(boolean commandExecutionEnabled) |
protected List<Command> successfulCommands
protected boolean commandExecutionEnabled
public void setCommandExecutionEnabled(boolean commandExecutionEnabled)
setCommandExecutionEnabled
in interface CommandProcessor
public boolean isCommandExecutionEnabled()
isCommandExecutionEnabled
in interface CommandProcessor
public List<Command> getSuccessfulCommands()
getSuccessfulCommands
in interface CommandProcessor
public List<Command> getFailedCommands()
getFailedCommands
in interface CommandProcessor
public String processCommand(String[] expression) throws Exception
processCommand
in interface CommandProcessor
Exception
Copyright © 2012–2017 JBoss by Red Hat. All rights reserved.