Class ContextManager
- java.lang.Object
-
- com.dtolabs.rundeck.core.execution.workflow.NoopWorkflowExecutionListener
-
- com.dtolabs.rundeck.core.execution.workflow.ContextManager
-
- All Implemented Interfaces:
Contextual
,WorkflowExecutionListener
public class ContextManager extends NoopWorkflowExecutionListener implements Contextual, WorkflowExecutionListener
Listens to workflow events and manages the step context information, producing a Map of context data- Since:
- 5/11/17
-
-
Constructor Summary
Constructors Constructor Description ContextManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
beginExecuteNodeStep(ExecutionContext context, NodeStepExecutionItem item, INodeEntry node)
Begin execution of a node stepvoid
beginWorkflowExecution(StepExecutionContext executionContext, WorkflowExecutionItem item)
void
beginWorkflowItem(int step, StepExecutionItem item)
void
beginWorkflowItemErrorHandler(int step, StepExecutionItem item)
void
finishExecuteNodeStep(NodeStepResult result, ExecutionContext context, StepExecutionItem item, INodeEntry node)
Finish execution of a node stepvoid
finishWorkflowExecution(WorkflowExecutionResult result, StepExecutionContext executionContext, WorkflowExecutionItem item)
void
finishWorkflowItem(int step, StepExecutionItem item, StepExecutionResult result)
void
finishWorkflowItemErrorHandler(int step, StepExecutionItem item, StepExecutionResult result)
java.util.Map<java.lang.String,java.lang.String>
getContext()
-
Methods inherited from class com.dtolabs.rundeck.core.execution.workflow.NoopWorkflowExecutionListener
beginStepExecution, finishStepExecution
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.dtolabs.rundeck.core.execution.workflow.WorkflowExecutionListener
beginStepExecution, finishStepExecution
-
-
-
-
Method Detail
-
beginExecuteNodeStep
public void beginExecuteNodeStep(ExecutionContext context, NodeStepExecutionItem item, INodeEntry node)
Description copied from interface:WorkflowExecutionListener
Begin execution of a node step- Specified by:
beginExecuteNodeStep
in interfaceWorkflowExecutionListener
- Overrides:
beginExecuteNodeStep
in classNoopWorkflowExecutionListener
- Parameters:
context
- contextitem
- stepnode
- node
-
finishExecuteNodeStep
public void finishExecuteNodeStep(NodeStepResult result, ExecutionContext context, StepExecutionItem item, INodeEntry node)
Description copied from interface:WorkflowExecutionListener
Finish execution of a node step- Specified by:
finishExecuteNodeStep
in interfaceWorkflowExecutionListener
- Overrides:
finishExecuteNodeStep
in classNoopWorkflowExecutionListener
- Parameters:
result
- resultcontext
- contextitem
- stepnode
- node
-
getContext
public java.util.Map<java.lang.String,java.lang.String> getContext()
- Specified by:
getContext
in interfaceContextual
- Returns:
- the current context, or null.
-
beginWorkflowExecution
public void beginWorkflowExecution(StepExecutionContext executionContext, WorkflowExecutionItem item)
- Specified by:
beginWorkflowExecution
in interfaceWorkflowExecutionListener
- Overrides:
beginWorkflowExecution
in classNoopWorkflowExecutionListener
-
finishWorkflowExecution
public void finishWorkflowExecution(WorkflowExecutionResult result, StepExecutionContext executionContext, WorkflowExecutionItem item)
- Specified by:
finishWorkflowExecution
in interfaceWorkflowExecutionListener
- Overrides:
finishWorkflowExecution
in classNoopWorkflowExecutionListener
-
beginWorkflowItem
public void beginWorkflowItem(int step, StepExecutionItem item)
- Specified by:
beginWorkflowItem
in interfaceWorkflowExecutionListener
- Overrides:
beginWorkflowItem
in classNoopWorkflowExecutionListener
-
beginWorkflowItemErrorHandler
public void beginWorkflowItemErrorHandler(int step, StepExecutionItem item)
- Specified by:
beginWorkflowItemErrorHandler
in interfaceWorkflowExecutionListener
- Overrides:
beginWorkflowItemErrorHandler
in classNoopWorkflowExecutionListener
-
finishWorkflowItem
public void finishWorkflowItem(int step, StepExecutionItem item, StepExecutionResult result)
- Specified by:
finishWorkflowItem
in interfaceWorkflowExecutionListener
- Overrides:
finishWorkflowItem
in classNoopWorkflowExecutionListener
-
finishWorkflowItemErrorHandler
public void finishWorkflowItemErrorHandler(int step, StepExecutionItem item, StepExecutionResult result)
- Specified by:
finishWorkflowItemErrorHandler
in interfaceWorkflowExecutionListener
- Overrides:
finishWorkflowItemErrorHandler
in classNoopWorkflowExecutionListener
-
-