org.hackystat.telemetry.analyzer.reducer.impl
Class MemberBuildReducer

java.lang.Object
  extended by org.hackystat.telemetry.analyzer.reducer.impl.MemberBuildReducer
All Implemented Interfaces:
TelemetryReducer

public class MemberBuildReducer
extends java.lang.Object
implements TelemetryReducer

Returns a set of streams providing Build data for each user.

Accepts the following options in the following order.

  1. Result: One of Success, Failure, or *, indicating whether the count is just of successful builds, failed builds, or all builds. Default is "*".
  2. Type: A string to restrict the counts to those builds with a "Type" property matching this string, or "*" to indicate all builds regardless of Type. Default is "*".
  3. isCumulative: True or false. Default is false.

Author:
Philip Johnson

Constructor Summary
MemberBuildReducer()
           
 
Method Summary
 TelemetryStreamCollection compute(org.hackystat.sensorbase.resource.projects.jaxb.Project project, org.hackystat.dailyprojectdata.client.DailyProjectDataClient dpdClient, org.hackystat.utilities.time.interval.Interval interval, java.lang.String[] options)
          Computes and returns the required telemetry streams object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MemberBuildReducer

public MemberBuildReducer()
Method Detail

compute

public TelemetryStreamCollection compute(org.hackystat.sensorbase.resource.projects.jaxb.Project project,
                                         org.hackystat.dailyprojectdata.client.DailyProjectDataClient dpdClient,
                                         org.hackystat.utilities.time.interval.Interval interval,
                                         java.lang.String[] options)
                                  throws TelemetryReducerException
Computes and returns the required telemetry streams object.

Specified by:
compute in interface TelemetryReducer
Parameters:
project - The project.
dpdClient - The DPD Client.
interval - The interval.
options - The optional parameters.
Returns:
Telemetry stream collection.
Throws:
TelemetryReducerException - If there is any error.