com.atlassian.bamboo.reports.collector
Class AbstractTimePeriodCollector

java.lang.Object
  extended by com.atlassian.bamboo.reports.collector.AbstractTimePeriodCollector
All Implemented Interfaces:
ReportCollector, BambooPluginModule
Direct Known Subclasses:
AgentUtilizationCollector, AverageDurationCollector, AverageQueuedDurationCollector, CloverCoverageCollector, CloverLinesOfCodeCollector, LabelUsageCountCollector, LabelUsageRatioCollector, NumberOfBuildFailureCollector, NumberOfBuildsCollector, NumberOfTestsCollector, RatioOfSuccessCollector, TimeToFixCollector

public abstract class AbstractTimePeriodCollector
extends java.lang.Object
implements ReportCollector


Constructor Summary
protected AbstractTimePeriodCollector()
           
 
Method Summary
protected  TimePeriodCollater createCollater(org.jfree.data.time.RegularTimePeriod nextPeriod, java.lang.String key)
           
protected  java.lang.String getAutoDate(java.util.Date startDate, java.util.Date lastDate)
           
protected abstract  TimePeriodCollater getCollater()
           
 org.jfree.data.general.Dataset getDataset()
           
 java.util.Map<java.lang.String,java.lang.String[]> getParams()
           
protected  org.jfree.data.time.RegularTimePeriod getPeriod(java.util.Date date, java.lang.String periodRange)
           
 java.lang.String getPeriodRange()
          One of AbstractTimePeriodGroupedChart.DAY, AbstractTimePeriodGroupedChart.WEEK and AbstractTimePeriodGroupedChart.MONTH.
 java.util.List<? extends ResultsSummary> getResultsList()
           
protected  java.lang.String getSeriesKey(BuildResultsSummary summary)
           
protected  boolean isInPeriod(org.jfree.data.time.RegularTimePeriod time, java.util.Date date)
           
 void setParams(java.util.Map<java.lang.String,java.lang.String[]> params)
           
 void setResultsList(java.util.List<? extends ResultsSummary> resultsList)
           
protected  void writeCollaterToDataSet(org.jfree.data.time.TimeTableXYDataset dataset, TimePeriodCollater collater)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractTimePeriodCollector

protected AbstractTimePeriodCollector()
Method Detail

getDataset

@NotNull
public org.jfree.data.general.Dataset getDataset()
Specified by:
getDataset in interface ReportCollector

getSeriesKey

protected java.lang.String getSeriesKey(@NotNull
                                        BuildResultsSummary summary)

getPeriodRange

public java.lang.String getPeriodRange()
Description copied from interface: ReportCollector
One of AbstractTimePeriodGroupedChart.DAY, AbstractTimePeriodGroupedChart.WEEK and AbstractTimePeriodGroupedChart.MONTH.

Specified by:
getPeriodRange in interface ReportCollector
Returns:

getAutoDate

protected java.lang.String getAutoDate(java.util.Date startDate,
                                       java.util.Date lastDate)

getPeriod

protected org.jfree.data.time.RegularTimePeriod getPeriod(java.util.Date date,
                                                          java.lang.String periodRange)

isInPeriod

protected boolean isInPeriod(org.jfree.data.time.RegularTimePeriod time,
                             java.util.Date date)

writeCollaterToDataSet

protected void writeCollaterToDataSet(org.jfree.data.time.TimeTableXYDataset dataset,
                                      TimePeriodCollater collater)

createCollater

protected TimePeriodCollater createCollater(org.jfree.data.time.RegularTimePeriod nextPeriod,
                                            java.lang.String key)

getCollater

protected abstract TimePeriodCollater getCollater()

getResultsList

public java.util.List<? extends ResultsSummary> getResultsList()

setResultsList

public void setResultsList(@NotNull
                           java.util.List<? extends ResultsSummary> resultsList)
Specified by:
setResultsList in interface ReportCollector

getParams

public java.util.Map<java.lang.String,java.lang.String[]> getParams()

setParams

public void setParams(@NotNull
                      java.util.Map<java.lang.String,java.lang.String[]> params)
Specified by:
setParams in interface ReportCollector


Copyright © 2012 Atlassian. All Rights Reserved.