public class ExecResult extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected String |
commandLine |
protected CommandException |
error |
protected long |
execTime |
protected List<String> |
output |
protected int |
returnCode |
protected boolean |
success |
Constructor and Description |
---|
ExecResult(String commandLine,
Exception error) |
ExecResult(String commandLine,
List<String> output,
long execTime,
int returnCode) |
Modifier and Type | Method and Description |
---|---|
String |
getCommandLine() |
CommandException |
getError()
Rather rely on
isSuccessful() to check for the execution success. |
long |
getExecTime() |
List<String> |
getOutput() |
int |
getReturnCode() |
boolean |
isSuccessful() |
protected final String commandLine
protected final long execTime
protected boolean success
protected final CommandException error
protected int returnCode
public ExecResult(String commandLine, List<String> output, long execTime, int returnCode)
public ExecResult(String commandLine, Exception error)
public long getExecTime()
public boolean isSuccessful()
public CommandException getError()
isSuccessful()
to check for the execution success. Note however that since 5.7.3, the
getError()
method cannot return null even if the execution failed (it was not the case before).public int getReturnCode()
public String getCommandLine()
Copyright © 2018 Nuxeo. All rights reserved.