hudson.plugins.emma.portlet
Class EmmaLoadData

java.lang.Object
  extended by hudson.plugins.emma.portlet.EmmaLoadData

public final class EmmaLoadData
extends Object

Load data of Emma coverage results used by chart or grid.


Method Summary
static EmmaCoverageResultSummary getResultSummary(Collection<hudson.model.Job> jobs)
          Summarize the last coverage results of all jobs, which have coverage.
static Map<org.joda.time.LocalDate,EmmaCoverageResultSummary> loadChartDataWithinRange(List<hudson.model.Job> jobs, int daysNumber)
          Get Emma coverage results of all jobs and store into a sorted HashMap by date.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

loadChartDataWithinRange

public static Map<org.joda.time.LocalDate,EmmaCoverageResultSummary> loadChartDataWithinRange(List<hudson.model.Job> jobs,
                                                                                              int daysNumber)
Get Emma coverage results of all jobs and store into a sorted HashMap by date.

Parameters:
jobs - jobs of Dashboard view
daysNumber - number of days
Returns:
Map The sorted summaries

getResultSummary

public static EmmaCoverageResultSummary getResultSummary(Collection<hudson.model.Job> jobs)
Summarize the last coverage results of all jobs, which have coverage.

Parameters:
jobs - a final Collection of Job objects
Returns:
EmmaCoverageResultSummary the result summary


Copyright © 2004-2012 Hudson. All Rights Reserved.