Nuxeo Enterprise Platform 5.4

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:
java.io.Serializable

public class ExecResult
extends java.lang.Object
implements java.io.Serializable

Wraps result of the command-line execution:

Author:
tiry
See Also:
Serialized Form

Constructor Summary
ExecResult(java.lang.Exception error)
           
ExecResult(java.util.List<java.lang.String> output, long execTime, int returnCode)
           
 
Method Summary
 java.lang.Exception getError()
           
 long getExecTime()
           
 java.util.List<java.lang.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(java.util.List<java.lang.String> output,
                  long execTime,
                  int returnCode)

ExecResult

public ExecResult(java.lang.Exception error)
Method Detail

getOutput

public java.util.List<java.lang.String> getOutput()

getExecTime

public long getExecTime()

isSuccessful

public boolean isSuccessful()

getError

public java.lang.Exception getError()

getReturnCode

public int getReturnCode()

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.