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 voidbeginExecuteNodeStep(ExecutionContext context, NodeStepExecutionItem item, INodeEntry node)Begin execution of a node stepvoidbeginWorkflowExecution(StepExecutionContext executionContext, WorkflowExecutionItem item)voidbeginWorkflowItem(int step, StepExecutionItem item)voidbeginWorkflowItemErrorHandler(int step, StepExecutionItem item)voidfinishExecuteNodeStep(NodeStepResult result, ExecutionContext context, StepExecutionItem item, INodeEntry node)Finish execution of a node stepvoidfinishWorkflowExecution(WorkflowExecutionResult result, StepExecutionContext executionContext, WorkflowExecutionItem item)voidfinishWorkflowItem(int step, StepExecutionItem item, StepExecutionResult result)voidfinishWorkflowItemErrorHandler(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:WorkflowExecutionListenerBegin execution of a node step- Specified by:
beginExecuteNodeStepin interfaceWorkflowExecutionListener- Overrides:
beginExecuteNodeStepin classNoopWorkflowExecutionListener- Parameters:
context- contextitem- stepnode- node
-
finishExecuteNodeStep
public void finishExecuteNodeStep(NodeStepResult result, ExecutionContext context, StepExecutionItem item, INodeEntry node)
Description copied from interface:WorkflowExecutionListenerFinish execution of a node step- Specified by:
finishExecuteNodeStepin interfaceWorkflowExecutionListener- Overrides:
finishExecuteNodeStepin classNoopWorkflowExecutionListener- Parameters:
result- resultcontext- contextitem- stepnode- node
-
getContext
public java.util.Map<java.lang.String,java.lang.String> getContext()
- Specified by:
getContextin interfaceContextual- Returns:
- the current context, or null.
-
beginWorkflowExecution
public void beginWorkflowExecution(StepExecutionContext executionContext, WorkflowExecutionItem item)
- Specified by:
beginWorkflowExecutionin interfaceWorkflowExecutionListener- Overrides:
beginWorkflowExecutionin classNoopWorkflowExecutionListener
-
finishWorkflowExecution
public void finishWorkflowExecution(WorkflowExecutionResult result, StepExecutionContext executionContext, WorkflowExecutionItem item)
- Specified by:
finishWorkflowExecutionin interfaceWorkflowExecutionListener- Overrides:
finishWorkflowExecutionin classNoopWorkflowExecutionListener
-
beginWorkflowItem
public void beginWorkflowItem(int step, StepExecutionItem item)- Specified by:
beginWorkflowItemin interfaceWorkflowExecutionListener- Overrides:
beginWorkflowItemin classNoopWorkflowExecutionListener
-
beginWorkflowItemErrorHandler
public void beginWorkflowItemErrorHandler(int step, StepExecutionItem item)- Specified by:
beginWorkflowItemErrorHandlerin interfaceWorkflowExecutionListener- Overrides:
beginWorkflowItemErrorHandlerin classNoopWorkflowExecutionListener
-
finishWorkflowItem
public void finishWorkflowItem(int step, StepExecutionItem item, StepExecutionResult result)- Specified by:
finishWorkflowItemin interfaceWorkflowExecutionListener- Overrides:
finishWorkflowItemin classNoopWorkflowExecutionListener
-
finishWorkflowItemErrorHandler
public void finishWorkflowItemErrorHandler(int step, StepExecutionItem item, StepExecutionResult result)- Specified by:
finishWorkflowItemErrorHandlerin interfaceWorkflowExecutionListener- Overrides:
finishWorkflowItemErrorHandlerin classNoopWorkflowExecutionListener
-
-