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

java.lang.Object
  extended by com.dtolabs.rundeck.core.execution.workflow.NodeRecorder
All Implemented Interfaces:
FailedNodesListener

public class NodeRecorder
extends java.lang.Object
implements FailedNodesListener

NodeRecorder stores success/failure node list


Constructor Summary
NodeRecorder()
           
 
Method Summary
 java.util.HashMap<java.lang.String,NodeStepResult> getFailedNodes()
          Return the set of failed nodes
 java.util.HashSet<java.lang.String> getMatchedNodes()
          Return the set of matched nodes
 java.util.HashSet<java.lang.String> getSuccessfulNodes()
          Returns the matched nodes less the failed nodes.
 boolean isSuccess()
          Return true if successful
 void matchedNodes(java.util.Collection<java.lang.String> names)
          Called with full list of matched nodes prior to execution.
 void nodesFailed(java.util.Map<java.lang.String,NodeStepResult> failures)
          Called with a map of node names to failures.
 void nodesSucceeded()
          Called if no nodes failed during execution.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeRecorder

public NodeRecorder()
Method Detail

nodesFailed

public void nodesFailed(java.util.Map<java.lang.String,NodeStepResult> failures)
Description copied from interface: FailedNodesListener
Called with a map of node names to failures. The nodes will be the failed nodes.

Specified by:
nodesFailed in interface FailedNodesListener

nodesSucceeded

public void nodesSucceeded()
Description copied from interface: FailedNodesListener
Called if no nodes failed during execution.

Specified by:
nodesSucceeded in interface FailedNodesListener

matchedNodes

public void matchedNodes(java.util.Collection<java.lang.String> names)
Description copied from interface: FailedNodesListener
Called with full list of matched nodes prior to execution.

Specified by:
matchedNodes in interface FailedNodesListener

getSuccessfulNodes

public java.util.HashSet<java.lang.String> getSuccessfulNodes()
Returns the matched nodes less the failed nodes.

Returns:

getFailedNodes

public java.util.HashMap<java.lang.String,NodeStepResult> getFailedNodes()
Return the set of failed nodes

Returns:

isSuccess

public boolean isSuccess()
Return true if successful

Returns:

getMatchedNodes

public java.util.HashSet<java.lang.String> getMatchedNodes()
Return the set of matched nodes

Returns: