com.dtolabs.rundeck.core.execution.service
Class NodeExecutorResultImpl

java.lang.Object
  extended by com.dtolabs.rundeck.core.execution.workflow.steps.StepExecutionResultImpl
      extended by com.dtolabs.rundeck.core.execution.workflow.steps.node.NodeStepResultImpl
          extended by com.dtolabs.rundeck.core.execution.service.NodeExecutorResultImpl
All Implemented Interfaces:
ExceptionStatusResult, HasSourceResult, NodeExecutorResult, StatusResult, NodeStepResult, StepExecutionResult

public class NodeExecutorResultImpl
extends NodeStepResultImpl
implements NodeExecutorResult

NodeExecutorResultImpl simple implementation of NodeExecutorResult


Field Summary
static java.lang.String FAILURE_DATA_RESULT_CODE
           
 
Method Summary
static NodeExecutorResultImpl createFailure(FailureReason reason, java.lang.String message, java.lang.Exception exception, INodeEntry node, int resultCode)
           
static NodeExecutorResultImpl createFailure(FailureReason reason, java.lang.String message, INodeEntry node)
           
static NodeExecutorResultImpl createFailure(FailureReason reason, java.lang.String message, INodeEntry node, int resultCode)
           
static NodeExecutorResultImpl createSuccess(INodeEntry node)
           
 boolean equals(java.lang.Object o)
           
 int getResultCode()
          Return the exit/result code of the execution
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class com.dtolabs.rundeck.core.execution.workflow.steps.node.NodeStepResultImpl
getNode
 
Methods inherited from class com.dtolabs.rundeck.core.execution.workflow.steps.StepExecutionResultImpl
getException, getFailureData, getFailureMessage, getFailureReason, getResultData, getSourceResult, isSuccess, setException, setFailureData, setResultData, setSourceResult, setSuccess, wrapStepException
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.dtolabs.rundeck.core.execution.workflow.steps.node.NodeStepResult
getNode
 
Methods inherited from interface com.dtolabs.rundeck.core.execution.workflow.steps.StepExecutionResult
getFailureData, getFailureMessage, getFailureReason, getResultData
 
Methods inherited from interface com.dtolabs.rundeck.core.execution.ExceptionStatusResult
getException
 
Methods inherited from interface com.dtolabs.rundeck.core.execution.StatusResult
isSuccess
 

Field Detail

FAILURE_DATA_RESULT_CODE

public static final java.lang.String FAILURE_DATA_RESULT_CODE
See Also:
Constant Field Values
Method Detail

createSuccess

public static NodeExecutorResultImpl createSuccess(INodeEntry node)

createFailure

public static NodeExecutorResultImpl createFailure(FailureReason reason,
                                                   java.lang.String message,
                                                   java.lang.Exception exception,
                                                   INodeEntry node,
                                                   int resultCode)

createFailure

public static NodeExecutorResultImpl createFailure(FailureReason reason,
                                                   java.lang.String message,
                                                   INodeEntry node,
                                                   int resultCode)

createFailure

public static NodeExecutorResultImpl createFailure(FailureReason reason,
                                                   java.lang.String message,
                                                   INodeEntry node)

getResultCode

public int getResultCode()
Description copied from interface: NodeExecutorResult
Return the exit/result code of the execution

Specified by:
getResultCode in interface NodeExecutorResult

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class StepExecutionResultImpl

hashCode

public int hashCode()
Overrides:
hashCode in class StepExecutionResultImpl

toString

public java.lang.String toString()
Overrides:
toString in class StepExecutionResultImpl