com.atlassian.bamboo.reports.collector
Class AbstractTimePeriodCollector
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractTimePeriodCollector
protected AbstractTimePeriodCollector()
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.