Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.platform.commandline.executor.api
Class ExecResult

java.lang.Object
  extended by org.nuxeo.ecm.platform.commandline.executor.api.ExecResult
All Implemented Interfaces:
Serializable

public class ExecResult
extends Object
implements Serializable

Wraps result of the command-line execution:

Author:
tiry
See Also:
Serialized Form

Constructor Summary
ExecResult(Exception error)
           
ExecResult(List<String> output, long execTime, int returnCode)
           
 
Method Summary
 Exception getError()
           
 long getExecTime()
           
 List<String> getOutput()
           
 int getReturnCode()
           
 boolean isSuccessful()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExecResult

public ExecResult(List<String> output,
                  long execTime,
                  int returnCode)

ExecResult

public ExecResult(Exception error)
Method Detail

getOutput

public List<String> getOutput()

getExecTime

public long getExecTime()

isSuccessful

public boolean isSuccessful()

getError

public Exception getError()

getReturnCode

public int getReturnCode()

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.