Class StepContextWorkflowExecutionListener<NODE,STEP>
- java.lang.Object
-
- com.dtolabs.rundeck.core.execution.workflow.StepContextWorkflowExecutionListener<NODE,STEP>
-
- All Implemented Interfaces:
StepNodeContext<NODE,STEP>,StepNodeContextListener<NODE,STEP>
public class StepContextWorkflowExecutionListener<NODE,STEP> extends java.lang.Object implements StepNodeContextListener<NODE,STEP>, StepNodeContext<NODE,STEP>
Listens to step and node context changes, and maintains thread-local step+node context
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classStepContextWorkflowExecutionListener.ctxPair
-
Constructor Summary
Constructors Constructor Description StepContextWorkflowExecutionListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbeginContext()Indicates context beginsvoidbeginNodeContext(NODE node)Enter a node contextvoidbeginStepContext(STEP step)Enter a step contextvoidfinishContext()Indicates context has finishedvoidfinishNodeContext()Finish a node contextvoidfinishStepContext()finish a step contextjava.util.List<STEP>getCurrentContext()java.util.List<Pair<STEP,NODE>>getCurrentContextPairs()NODEgetCurrentNode()STEPgetCurrentStep()
-
-
-
Method Detail
-
beginContext
public void beginContext()
Description copied from interface:StepNodeContextListenerIndicates context begins- Specified by:
beginContextin interfaceStepNodeContextListener<NODE,STEP>
-
finishContext
public void finishContext()
Description copied from interface:StepNodeContextListenerIndicates context has finished- Specified by:
finishContextin interfaceStepNodeContextListener<NODE,STEP>
-
beginStepContext
public void beginStepContext(STEP step)
Description copied from interface:StepNodeContextListenerEnter a step context- Specified by:
beginStepContextin interfaceStepNodeContextListener<NODE,STEP>- Parameters:
step- step
-
finishStepContext
public void finishStepContext()
Description copied from interface:StepNodeContextListenerfinish a step context- Specified by:
finishStepContextin interfaceStepNodeContextListener<NODE,STEP>
-
beginNodeContext
public void beginNodeContext(NODE node)
Description copied from interface:StepNodeContextListenerEnter a node context- Specified by:
beginNodeContextin interfaceStepNodeContextListener<NODE,STEP>- Parameters:
node- node
-
finishNodeContext
public void finishNodeContext()
Description copied from interface:StepNodeContextListenerFinish a node context- Specified by:
finishNodeContextin interfaceStepNodeContextListener<NODE,STEP>
-
getCurrentStep
public STEP getCurrentStep()
-
getCurrentNode
public NODE getCurrentNode()
- Specified by:
getCurrentNodein interfaceStepNodeContext<NODE,STEP>- Returns:
- the current node
-
getCurrentContext
public java.util.List<STEP> getCurrentContext()
- Specified by:
getCurrentContextin interfaceStepNodeContext<NODE,STEP>- Returns:
- the stack for the step context
-
-