|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.dtolabs.rundeck.core.execution.BaseExecutionResult
public class BaseExecutionResult
BaseExecutionResult implements ExecutionResult and provides factory methods for creating success or failure results
Method Summary | |
---|---|
static ExecutionResult |
create(boolean success,
DispatcherResult object)
Create a Success result with an object |
static ExecutionResult |
createFailure(java.lang.Exception exception)
Create a failure result with an exception |
static ExecutionResult |
createSuccess(DispatcherResult object)
Create a Success result with an object |
java.lang.Exception |
getException()
Return any exception that was caught |
DispatcherResult |
getResultObject()
|
boolean |
isSuccess()
Return true if the result was successful |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static ExecutionResult create(boolean success, DispatcherResult object)
object
- result object
public static ExecutionResult createSuccess(DispatcherResult object)
object
- result object
public static ExecutionResult createFailure(java.lang.Exception exception)
exception
- exception
public boolean isSuccess()
StatusResult
isSuccess
in interface StatusResult
public java.lang.Exception getException()
ExceptionStatusResult
getException
in interface ExceptionStatusResult
public DispatcherResult getResultObject()
getResultObject
in interface ExecutionResult
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |