|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.build.statistics.StatisticsCollectorImpl
public class StatisticsCollectorImpl
Constructor Summary | |
---|---|
StatisticsCollectorImpl(Plan plan,
java.util.List<? extends ResultsSummary> results)
Class which takes in a Collection of ResultStatisticsProvider objects
and produces some statistics about it. |
Method Summary | |
---|---|
java.util.List<java.lang.Integer> |
getAllTestBuildNumbers()
List of all build numbers in list |
float |
getAverageElapsedBuilds()
Calculates the average number of builds between fixes. |
long |
getAverageElapsedTime()
Returns the averag etime in milliseconds it takes for builds to be fixed |
int |
getCreatedInBuild()
what is the first build number in this collection? |
java.util.List<java.lang.Integer> |
getFailedBuildNumbers()
List of build numbers which had fails |
java.util.List<FailurePeriod> |
getFailurePeriods()
Get a set of "periods" in which there were failures. |
int |
getLastRanInBuild()
What is the last number in this collection? |
FailurePeriod |
getLongestElapsedBuildPeriod()
|
FailurePeriod |
getLongestElapsedTimePeriod()
|
java.util.List<java.lang.Integer> |
getSuccessfulBuildNumbers()
List of build numbers which were successes. |
double |
getSuccessPercentage()
|
int |
getTotalFailures()
|
int |
getTotalNumberOfResults()
|
int |
getTotalSuccesses()
|
void |
init(java.util.List<? extends ResultsSummary> results)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StatisticsCollectorImpl(@Nullable Plan plan, @Nullable java.util.List<? extends ResultsSummary> results)
Collection
of ResultStatisticsProvider
objects
and produces some statistics about it.
plan
- - these statistics are forresults
- - to generate statistics from/Method Detail |
---|
public void init(@NotNull java.util.List<? extends ResultsSummary> results)
public java.util.List<FailurePeriod> getFailurePeriods()
getFailurePeriods
in interface StatisticsCollector
List
of FailurePeriod
public double getSuccessPercentage()
getSuccessPercentage
in interface SuccessPercentageStatisticsBean
public int getTotalNumberOfResults()
getTotalNumberOfResults
in interface SuccessPercentageStatisticsBean
public int getTotalFailures()
getTotalFailures
in interface SuccessPercentageStatisticsBean
public int getTotalSuccesses()
getTotalSuccesses
in interface SuccessPercentageStatisticsBean
public java.util.List<java.lang.Integer> getAllTestBuildNumbers()
getAllTestBuildNumbers
in interface StatisticsCollector
List
of Integer
representing success. Sorted ASC.public java.util.List<java.lang.Integer> getSuccessfulBuildNumbers()
getSuccessfulBuildNumbers
in interface StatisticsCollector
List
of Integer
representing success build numbers. Sorted ASC.public java.util.List<java.lang.Integer> getFailedBuildNumbers()
getFailedBuildNumbers
in interface StatisticsCollector
List
of Integer
representing failed build numbers . Sorted ASC.public int getCreatedInBuild()
getCreatedInBuild
in interface StatisticsCollector
public int getLastRanInBuild()
getLastRanInBuild
in interface StatisticsCollector
@Nullable public FailurePeriod getLongestElapsedTimePeriod()
getLongestElapsedTimePeriod
in interface StatisticsCollector
FailurePeriod
with the longest elapsed time periodpublic FailurePeriod getLongestElapsedBuildPeriod()
getLongestElapsedBuildPeriod
in interface StatisticsCollector
FailurePeriod
with the longest elapsed builds.public long getAverageElapsedTime()
getAverageElapsedTime
in interface StatisticsCollector
public float getAverageElapsedBuilds()
getAverageElapsedBuilds
in interface StatisticsCollector
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |