|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.silverpeas.exec.ExternalExecution.Config
public static class ExternalExecution.Config
This class permits to parametrize the external execution of a command.
Method Summary | |
---|---|
ExternalExecution.Config |
doNotDisplayErrorTrace()
Calling this method avoids to log errors thrown during the execution of a command into log handlers of the server. |
int |
getSuccessfulExitStatusValue()
Gets the code value of a successful exit status. |
static ExternalExecution.Config |
init()
Initializes a config with default values: the code value of a successful exit status is 0 the exception errors are traced by SilverTrace.error(String, String,
String)
|
boolean |
isDisplayErrorTraceEnabled()
Indicates if the Silverpeas error trace must be displayed when an execution error is detected. |
ExternalExecution.Config |
successfulExitStatusValueIs(int successfulExitStatusValue)
Sets the code value of a successful exit status. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ExternalExecution.Config init()
SilverTrace.error(String, String,
String)
ExternalExecution.Config
initialized with default values.public ExternalExecution.Config successfulExitStatusValueIs(int successfulExitStatusValue)
successfulExitStatusValue
- an Integer
that represents the code value of a
successful exit status.
ExternalExecution.Config
instance completed with the given information.public int getSuccessfulExitStatusValue()
public ExternalExecution.Config doNotDisplayErrorTrace()
ExternalExecution.Config
instance completed with the given information.public boolean isDisplayErrorTraceEnabled()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |