| Constructor and Description | 
|---|
| SystemCommandThreadedExecutor(org.apache.log4j.Logger log)Constructor | 
| Modifier and Type | Method and Description | 
|---|---|
| int | execute(java.lang.String[] args)Execute any command with the passed in arguments. | 
| java.lang.String | getLastCommandErrorMessage()Returns the error message captured during the last command executed. | 
| java.lang.String | getLastCommandOutput()Returns the output captured during the last command executed. | 
| void | setLogError(boolean toLog)Whether to log errors as an ERROR within log4j
  Even if this is set to false, the error will still be logged
  with DEBUG priority | 
public SystemCommandThreadedExecutor(org.apache.log4j.Logger log)
log - Desired loggerpublic void setLogError(boolean toLog)
toLog - true to log as an errorpublic int execute(java.lang.String[] args)
public java.lang.String getLastCommandOutput()
getLastCommandOutput in interface Executornull if no command has been executed; the empty string
         if there was no output from the commandpublic java.lang.String getLastCommandErrorMessage()
getLastCommandErrorMessage in interface Executornull if no command has been executed; the empty string
         if there was no error from the command