Class WorkflowStateImpl
- java.lang.Object
-
- com.dtolabs.rundeck.core.execution.workflow.state.WorkflowStateImpl
-
- All Implemented Interfaces:
HasExecutionState,WorkflowState
public class WorkflowStateImpl extends java.lang.Object implements WorkflowState
$INTERFACE is ... User: greg Date: 10/15/13 Time: 3:35 PM
-
-
Constructor Summary
Constructors Constructor Description WorkflowStateImpl(java.util.List<java.lang.String> nodeSet, java.util.List<java.lang.String> allNodes, long stepCount, ExecutionState executionState, java.util.Date updateTime, java.util.Date startTime, java.util.Date endTime, java.lang.String serverNode, java.util.List<WorkflowStepState> stepStates, java.util.Map<java.lang.String,WorkflowNodeState> nodeStates)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>getAllNodes()java.util.DategetEndTime()ExecutionStategetExecutionState()java.util.List<java.lang.String>getNodeSet()java.util.Map<java.lang.String,WorkflowNodeState>getNodeStates()java.lang.StringgetServerNode()java.util.DategetStartTime()longgetStepCount()java.util.List<WorkflowStepState>getStepStates()java.util.DategetUpdateTime()voidsetAllNodes(java.util.List<java.lang.String> allNodes)voidsetEndTime(java.util.Date endTime)voidsetExecutionState(ExecutionState executionState)voidsetNodeSet(java.util.List<java.lang.String> nodeSet)voidsetNodeStates(java.util.Map<java.lang.String,WorkflowNodeState> nodeStates)voidsetServerNode(java.lang.String serverNode)voidsetStartTime(java.util.Date startTime)voidsetStepCount(long stepCount)voidsetStepStates(java.util.ArrayList<WorkflowStepState> stepStates)voidsetUpdateTime(java.util.Date updateTime)
-
-
-
Constructor Detail
-
WorkflowStateImpl
public WorkflowStateImpl(java.util.List<java.lang.String> nodeSet, java.util.List<java.lang.String> allNodes, long stepCount, ExecutionState executionState, java.util.Date updateTime, java.util.Date startTime, java.util.Date endTime, java.lang.String serverNode, java.util.List<WorkflowStepState> stepStates, java.util.Map<java.lang.String,WorkflowNodeState> nodeStates)
-
-
Method Detail
-
getNodeSet
public java.util.List<java.lang.String> getNodeSet()
- Specified by:
getNodeSetin interfaceWorkflowState- Returns:
- The set of nodes the workflow is running on
-
getStepCount
public long getStepCount()
- Specified by:
getStepCountin interfaceWorkflowState- Returns:
- The number of steps the workflow will run
-
getExecutionState
public ExecutionState getExecutionState()
- Specified by:
getExecutionStatein interfaceHasExecutionState- Specified by:
getExecutionStatein interfaceWorkflowState- Returns:
- The execution state of the workflow
-
getUpdateTime
public java.util.Date getUpdateTime()
- Specified by:
getUpdateTimein interfaceWorkflowState- Returns:
- The latest timestamp for the workflow state
-
getStepStates
public java.util.List<WorkflowStepState> getStepStates()
- Specified by:
getStepStatesin interfaceWorkflowState- Returns:
- The list of states for the steps
-
setNodeSet
public void setNodeSet(java.util.List<java.lang.String> nodeSet)
-
setStepCount
public void setStepCount(long stepCount)
-
setExecutionState
public void setExecutionState(ExecutionState executionState)
-
setUpdateTime
public void setUpdateTime(java.util.Date updateTime)
-
setStepStates
public void setStepStates(java.util.ArrayList<WorkflowStepState> stepStates)
-
getStartTime
public java.util.Date getStartTime()
- Specified by:
getStartTimein interfaceWorkflowState
-
setStartTime
public void setStartTime(java.util.Date startTime)
-
getEndTime
public java.util.Date getEndTime()
- Specified by:
getEndTimein interfaceWorkflowState
-
setEndTime
public void setEndTime(java.util.Date endTime)
-
getAllNodes
public java.util.List<java.lang.String> getAllNodes()
- Specified by:
getAllNodesin interfaceWorkflowState- Returns:
- the set of all nodes this and and all sub workflows are operating on
-
setAllNodes
public void setAllNodes(java.util.List<java.lang.String> allNodes)
-
getNodeStates
public java.util.Map<java.lang.String,WorkflowNodeState> getNodeStates()
- Specified by:
getNodeStatesin interfaceWorkflowState- Returns:
- The list of states for all nodes
-
setNodeStates
public void setNodeStates(java.util.Map<java.lang.String,WorkflowNodeState> nodeStates)
-
getServerNode
public java.lang.String getServerNode()
- Specified by:
getServerNodein interfaceWorkflowState- Returns:
- the name of the server node
-
setServerNode
public void setServerNode(java.lang.String serverNode)
-
-