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

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

public class MemberDevTimeReducer
extends java.lang.Object
implements TelemetryReducer

Returns a set of streams providing DevTime data in hours for each member of the project.

Accepts the following options in the following order, although only isCumulative is supported at the current time.

  1. EventType: Supply an Event Type to restrict the DevTime to just the time associated with that Event Type. Default is "*" which indicates all file types are used in computing the DevTime.
  2. ResourceFilterPattern: Restricts the files over which the DevTime is computed. Default is "**".
  3. isCumulative: True or false. Default is false.

Author:
Hongbing Kou, Philip Johnson

Constructor Summary
MemberDevTimeReducer()
           
 
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

MemberDevTimeReducer

public MemberDevTimeReducer()
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.