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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected TimePeriodCollater
createCollater
(org.jfree.data.time.RegularTimePeriod nextPeriod, String key) protected String
getAutoDate
(Date startDate, Date lastDate) protected abstract TimePeriodCollater
@NotNull org.jfree.data.general.Dataset
protected org.jfree.data.time.RegularTimePeriod
List<? extends ResultsSummary>
protected String
getSeriesKey
(@NotNull ResultsSummary summary) protected boolean
isInPeriod
(@Nullable org.jfree.data.time.RegularTimePeriod time, Date date) void
void
setResultsList
(@NotNull List<? extends ResultsSummary> resultsList) protected void
writeCollaterToDataSet
(org.jfree.data.time.TimeTableXYDataset dataset, TimePeriodCollater collater)
-
Constructor Details
-
AbstractTimePeriodCollector
protected AbstractTimePeriodCollector()
-
-
Method Details
-
getDataset
@NotNull public @NotNull org.jfree.data.general.Dataset getDataset()- Specified by:
getDataset
in interfaceReportCollector
-
getSeriesKey
-
getPeriodRange
Description copied from interface:ReportCollector
One ofAbstractTimePeriodGroupedChart.DAY
,AbstractTimePeriodGroupedChart.WEEK
andAbstractTimePeriodGroupedChart.MONTH
.- Specified by:
getPeriodRange
in interfaceReportCollector
- Returns:
-
getAutoDate
-
getPeriod
-
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
-
getResultsList
-
setResultsList
- Specified by:
setResultsList
in interfaceReportCollector
-
getParams
-
setParams
- Specified by:
setParams
in interfaceReportCollector
-