com.atlassian.bamboo.resultsummary
Interface ResultStatisticsProvider

All Known Subinterfaces:
BuildResultsSummary, ChainResultsSummary, ExtendedBuildResultsSummary, MutableBuildKeyResultsSummary, ResultsSummary, TestCaseResultStatisticsProvider
All Known Implementing Classes:
AbstractResultsSummary, BaseResultSummary, BuildResultsSummaryDocument, BuildResultsSummaryForTesting, BuildResultsSummaryImpl, ChainResultsSummaryDocument, ChainResultsSummaryImpl, ImmutableResultsSummary, TestCaseResultStatisticsProviderImpl

public interface ResultStatisticsProvider

An abstract interface of "result" objects which is used to draw statistics.


Method Summary
 java.util.Date getBuildDate()
          When the build was executed
 int getBuildNumber()
          Get build number
 BuildState getBuildState()
          Build state.
 long getDuration()
          Get duration of the build in milliseconds.
 double getDurationInSeconds()
          Deprecated. since 3.3 use getDuration() instead and TimeUnit to convert to units other than milliseconds
 long getProcessingDuration()
          Get processing duration of the build in milliseconds.
 java.util.Date getStatDate()
          When the build was executed.
 

Method Detail

getBuildState

BuildState getBuildState()
Build state.

Returns:
build state

getBuildNumber

int getBuildNumber()
Get build number

Returns:
build number of the described build

getBuildDate

@Nullable
java.util.Date getBuildDate()
When the build was executed

Returns:
date of build execution or null if build was not executed yet

getStatDate

@NotNull
java.util.Date getStatDate()
When the build was executed. If build was not completed, queued time is provided instead.

Returns:
date of build execution or queued time if build was not executed or state is unknown

getDurationInSeconds

@Deprecated
double getDurationInSeconds()
Deprecated. since 3.3 use getDuration() instead and TimeUnit to convert to units other than milliseconds

Build duration in seconds.

Returns:
build duration

getDuration

long getDuration()
Get duration of the build in milliseconds.

Returns:
duration of the build in milliseconds

getProcessingDuration

long getProcessingDuration()
Get processing duration of the build in milliseconds.

Returns:
processing duration of the build in milliseconds


Copyright © 2012 Atlassian. All Rights Reserved.