View Javadoc

1   package org.rundeck.api.domain;
2   
3   import java.util.List;
4   import java.util.Map;
5   import java.util.Set;
6   
7   /**
8    * The state of an Execution
9    */
10  public class RundeckExecutionState extends WorkflowState{
11      private long executionId;
12      private Set<RundeckNodeIdentity> allNodes;
13      private Map<String, List<WorkflowStepContextState>> nodeStates;
14  
15      /**
16       * Return the set of all rundeck nodes targeted in this execution
17       * @return
18       */
19      public Set<RundeckNodeIdentity> getAllNodes() {
20          return allNodes;
21      }
22  
23      public void setAllNodes(Set<RundeckNodeIdentity> allNodes) {
24          this.allNodes = allNodes;
25      }
26  
27      /**
28       * Return the map of node name to step state list
29       * @return
30       */
31      public Map<String, List<WorkflowStepContextState>> getNodeStates() {
32          return nodeStates;
33      }
34  
35      public void setNodeStates(Map<String, List<WorkflowStepContextState>> nodeStates) {
36          this.nodeStates = nodeStates;
37      }
38  
39      /**
40       * Return this execution's ID
41       * @return
42       */
43      public long getExecutionId() {
44          return executionId;
45      }
46  
47      public void setExecutionId(long executionId) {
48          this.executionId = executionId;
49      }
50  }