public class ExecResult extends Object implements Serializable
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() |
public ExecResult(String commandLine, List<String> output, long execTime, int returnCode)
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 © 2015 Nuxeo SA. All rights reserved.