com.dtolabs.rundeck.core.execution.workflow
Class NodeFirstWorkflowStrategy

java.lang.Object
  extended by com.dtolabs.rundeck.core.execution.workflow.BaseWorkflowStrategy
      extended by com.dtolabs.rundeck.core.execution.workflow.NodeFirstWorkflowStrategy
All Implemented Interfaces:
WorkflowExecutor, WorkflowStrategy

public class NodeFirstWorkflowStrategy
extends BaseWorkflowStrategy

NodeFirstWorkflowStrategy Iterates over the matched nodes first, so that each node executes the full workflow sequentially


Field Summary
 
Fields inherited from interface com.dtolabs.rundeck.core.execution.workflow.WorkflowStrategy
NODE_FIRST, STEP_FIRST
 
Constructor Summary
NodeFirstWorkflowStrategy(Framework framework)
           
 
Method Summary
static WorkflowExecutionItem createInnerLoopItem(IWorkflow item)
          Create workflowExecutionItem suitable for inner loop of node-first strategy
static WorkflowExecutionItem createInnerLoopItem(WorkflowExecutionItem item)
          Create workflowExecutionItem suitable for inner loop of node-first strategy
 WorkflowExecutionResult executeWorkflowImpl(StepExecutionContext executionContext, WorkflowExecutionItem item)
           
 
Methods inherited from class com.dtolabs.rundeck.core.execution.workflow.BaseWorkflowStrategy
convertFailures, executeWFItem, executeWorkflow, executeWorkflowItemsForNodeSet, executeWorkflowItemsForNodeSet, getWorkflowListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeFirstWorkflowStrategy

public NodeFirstWorkflowStrategy(Framework framework)
Method Detail

executeWorkflowImpl

public WorkflowExecutionResult executeWorkflowImpl(StepExecutionContext executionContext,
                                                   WorkflowExecutionItem item)
Specified by:
executeWorkflowImpl in class BaseWorkflowStrategy

createInnerLoopItem

public static WorkflowExecutionItem createInnerLoopItem(WorkflowExecutionItem item)
Create workflowExecutionItem suitable for inner loop of node-first strategy


createInnerLoopItem

public static WorkflowExecutionItem createInnerLoopItem(IWorkflow item)
Create workflowExecutionItem suitable for inner loop of node-first strategy