|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.pimeca.waster.oscmd.AbstractOsCmdLauncher
public abstract class AbstractOsCmdLauncher
abstract class implementing OsCmdLauncher interface
| Field Summary | |
|---|---|
private int[] |
errorExitValues
array of exit values that are considered as error if null no value throws exception (see apache.commons.cli) |
private java.io.OutputStream |
fileOutputStream
file output stream for the os command |
private boolean |
isConsoleOutputRequired
true if console output is required |
private java.util.List<java.lang.String> |
options
list of options for the os command |
private boolean |
preDeleteWorkDir
flag to delete os working directory before launching the command |
private long |
timeWait
Watchdog time wait in milli-seconds negative value is for no watchdog |
private java.lang.String |
workingDirUri
working directory for the os command |
| Constructor Summary | |
|---|---|
AbstractOsCmdLauncher()
|
|
| Method Summary | |
|---|---|
java.util.List<java.lang.String> |
getOptions()
|
java.lang.String |
getWorkingDirUri()
|
int |
launchCmd(java.util.List<java.lang.String> options)
|
void |
setConsoleOutputRequired(boolean isConsoleOutputRequired)
|
void |
setErrorExitValues(int[] errorExitValues)
|
void |
setFileOutputStream(java.lang.String fileUri)
|
void |
setPreDeleteWorkDir(boolean preDeleteWorkDir)
|
void |
setTimeWait(long timeWait)
|
void |
setWorkingDirUri(java.lang.String workingDirUri)
sets os command working directory |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private long timeWait
private java.util.List<java.lang.String> options
private java.lang.String workingDirUri
private java.io.OutputStream fileOutputStream
private boolean isConsoleOutputRequired
private boolean preDeleteWorkDir
private int[] errorExitValues
| Constructor Detail |
|---|
public AbstractOsCmdLauncher()
| Method Detail |
|---|
public int launchCmd(java.util.List<java.lang.String> options)
launchCmd in interface OsCmdLauncherpublic java.util.List<java.lang.String> getOptions()
public void setWorkingDirUri(java.lang.String workingDirUri)
workingDirUri - absolute uri of os command working directorypublic java.lang.String getWorkingDirUri()
public void setFileOutputStream(java.lang.String fileUri)
public void setPreDeleteWorkDir(boolean preDeleteWorkDir)
public void setErrorExitValues(int[] errorExitValues)
public void setTimeWait(long timeWait)
public void setConsoleOutputRequired(boolean isConsoleOutputRequired)
isConsoleOutputRequired - the isConsoleOutputRequired to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||