Class AbstractTimePeriodCollector
- java.lang.Object
-
- com.atlassian.bamboo.reports.collector.AbstractTimePeriodCollector
-
- All Implemented Interfaces:
ReportCollector
,BambooPluginModule
- Direct Known Subclasses:
AgentUtilizationCollector
,AverageDurationCollector
,AverageQueuedDurationCollector
,CloverCoverageCollector
,CloverLOCCollector
,CloverNCLOCCollector
,LabelUsageCountCollector
,LabelUsageRatioCollector
,NumberOfBuildFailureCollector
,NumberOfBuildsCollector
,NumberOfTestsCollector
,RatioOfSuccessCollector
,TimeToFixCollector
public abstract class AbstractTimePeriodCollector extends Object implements ReportCollector
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractTimePeriodCollector()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected TimePeriodCollater
createCollater(org.jfree.data.time.RegularTimePeriod nextPeriod, String key)
protected String
getAutoDate(Date startDate, Date lastDate)
protected abstract TimePeriodCollater
getCollater()
@NotNull org.jfree.data.general.Dataset
getDataset()
Map<String,String[]>
getParams()
protected org.jfree.data.time.RegularTimePeriod
getPeriod(Date date, String periodRange)
String
getPeriodRange()
List<? extends ResultsSummary>
getResultsList()
protected String
getSeriesKey(@NotNull ResultsSummary summary)
protected boolean
isInPeriod(@Nullable org.jfree.data.time.RegularTimePeriod time, Date date)
void
setParams(@NotNull Map<String,String[]> params)
void
setResultsList(@NotNull List<? extends ResultsSummary> resultsList)
protected void
writeCollaterToDataSet(org.jfree.data.time.TimeTableXYDataset dataset, TimePeriodCollater collater)
-
-
-
Method Detail
-
getDataset
@NotNull public @NotNull org.jfree.data.general.Dataset getDataset()
- Specified by:
getDataset
in interfaceReportCollector
-
getSeriesKey
protected String getSeriesKey(@NotNull @NotNull ResultsSummary summary)
-
getPeriodRange
public String getPeriodRange()
Description copied from interface:ReportCollector
One ofAbstractTimePeriodGroupedChart.DAY
,AbstractTimePeriodGroupedChart.WEEK
andAbstractTimePeriodGroupedChart.MONTH
.- Specified by:
getPeriodRange
in interfaceReportCollector
- Returns:
-
isInPeriod
protected boolean isInPeriod(@Nullable @Nullable org.jfree.data.time.RegularTimePeriod time, Date date)
-
writeCollaterToDataSet
protected void writeCollaterToDataSet(org.jfree.data.time.TimeTableXYDataset dataset, TimePeriodCollater collater)
-
createCollater
protected TimePeriodCollater createCollater(org.jfree.data.time.RegularTimePeriod nextPeriod, String key)
-
getCollater
protected abstract TimePeriodCollater getCollater()
-
getResultsList
public List<? extends ResultsSummary> getResultsList()
-
setResultsList
public void setResultsList(@NotNull @NotNull List<? extends ResultsSummary> resultsList)
- Specified by:
setResultsList
in interfaceReportCollector
-
setParams
public void setParams(@NotNull @NotNull Map<String,String[]> params)
- Specified by:
setParams
in interfaceReportCollector
-
-