hudson.plugins.cigame.util
Class ActionSequenceRetriever<T extends hudson.model.Action>

java.lang.Object
  extended by hudson.plugins.cigame.util.ActionSequenceRetriever<T>
Type Parameters:
T - Action class that is required to exist in all builds.

public class ActionSequenceRetriever<T extends hudson.model.Action>
extends java.lang.Object

Utility class to retrieve a list of actions from a build seequence. Use the class to get a list of all actions for the last 5 builds. If a build within the sequence does not have the action, the class will not return a list at all.


Constructor Summary
ActionSequenceRetriever(java.lang.Class<T> actionClass, int sequenceLength)
           
 
Method Summary
 java.util.List<java.util.List<T>> getSequence(hudson.model.AbstractBuild<?,?> build)
          Returns a list of actions that meets the requirements in the constructor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionSequenceRetriever

public ActionSequenceRetriever(java.lang.Class<T> actionClass,
                               int sequenceLength)
Method Detail

getSequence

public java.util.List<java.util.List<T>> getSequence(hudson.model.AbstractBuild<?,?> build)
Returns a list of actions that meets the requirements in the constructor.

Parameters:
build - latest build
Returns:
a list of actions, or null if there was not enough builds or a build does not contain the action


Copyright © 2010. All Rights Reserved.