Class NodeDispatchStepExecutor
- java.lang.Object
-
- com.dtolabs.rundeck.core.execution.workflow.steps.NodeDispatchStepExecutor
-
- All Implemented Interfaces:
StepExecutor
public class NodeDispatchStepExecutor extends java.lang.Object implements StepExecutor
NodeDispatchStepExecutor dispatches the step execution item to all nodes, via the ExecutionService
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
FAILURE_DATA_FAILED_NODES
static java.lang.String
STEP_EXECUTION_TYPE
-
Constructor Summary
Constructors Constructor Description NodeDispatchStepExecutor()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StepExecutionResult
executeWorkflowStep(StepExecutionContext context, StepExecutionItem executionItem)
static DispatcherException
extractDispatcherException(StepExecutionResult result)
Return the DispatcherResult from a StepExecutionResult created by this class.static DispatcherResult
extractDispatcherResult(StepExecutionResult result)
Return the DispatcherResult from a StepExecutionResult created by this class.static java.util.Optional<com.dtolabs.rundeck.core.execution.workflow.steps.NodeDispatchStepExecutor.NodeDispatchStepExecutorExceptionResult>
extractNodeDispatchStepExecutorExceptionResult(StepExecutionResult result)
static java.util.Optional<com.dtolabs.rundeck.core.execution.workflow.steps.NodeDispatchStepExecutor.NodeDispatchStepExecutorResult>
extractNodeDispatchStepExecutorResult(StepExecutionResult result)
boolean
isNodeDispatchStep(StepExecutionItem item)
static boolean
isWrappedDispatcherException(StepExecutionResult result)
static boolean
isWrappedDispatcherResult(StepExecutionResult result)
static StepExecutionResult
wrapDispatcherException(DispatcherException dispatcherResult)
Return a StepExecutionResult based on the DispatcherResult, that can later be extracted.static StepExecutionResult
wrapDispatcherResult(DispatcherResult dispatcherResult)
Return a StepExecutionResult based on the DispatcherResult, that can later be extracted.
-
-
-
Field Detail
-
STEP_EXECUTION_TYPE
public static final java.lang.String STEP_EXECUTION_TYPE
- See Also:
- Constant Field Values
-
FAILURE_DATA_FAILED_NODES
public static final java.lang.String FAILURE_DATA_FAILED_NODES
- See Also:
- Constant Field Values
-
-
Method Detail
-
isNodeDispatchStep
public boolean isNodeDispatchStep(StepExecutionItem item)
- Specified by:
isNodeDispatchStep
in interfaceStepExecutor
-
executeWorkflowStep
public StepExecutionResult executeWorkflowStep(StepExecutionContext context, StepExecutionItem executionItem)
- Specified by:
executeWorkflowStep
in interfaceStepExecutor
-
wrapDispatcherException
public static StepExecutionResult wrapDispatcherException(DispatcherException dispatcherResult)
Return a StepExecutionResult based on the DispatcherResult, that can later be extracted.- Parameters:
dispatcherResult
- exception result- Returns:
- step result
-
wrapDispatcherResult
public static StepExecutionResult wrapDispatcherResult(DispatcherResult dispatcherResult)
Return a StepExecutionResult based on the DispatcherResult, that can later be extracted.- Parameters:
dispatcherResult
- result- Returns:
- step result
-
isWrappedDispatcherException
public static boolean isWrappedDispatcherException(StepExecutionResult result)
-
extractNodeDispatchStepExecutorExceptionResult
public static java.util.Optional<com.dtolabs.rundeck.core.execution.workflow.steps.NodeDispatchStepExecutor.NodeDispatchStepExecutorExceptionResult> extractNodeDispatchStepExecutorExceptionResult(StepExecutionResult result)
-
isWrappedDispatcherResult
public static boolean isWrappedDispatcherResult(StepExecutionResult result)
-
extractNodeDispatchStepExecutorResult
public static java.util.Optional<com.dtolabs.rundeck.core.execution.workflow.steps.NodeDispatchStepExecutor.NodeDispatchStepExecutorResult> extractNodeDispatchStepExecutorResult(StepExecutionResult result)
-
extractDispatcherResult
public static DispatcherResult extractDispatcherResult(StepExecutionResult result)
Return the DispatcherResult from a StepExecutionResult created by this class.- Parameters:
result
- step result- Returns:
- dispatcher result
-
extractDispatcherException
public static DispatcherException extractDispatcherException(StepExecutionResult result)
Return the DispatcherResult from a StepExecutionResult created by this class.- Parameters:
result
- step exception- Returns:
- dispatcher exception
-
-