|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.bamboo.build.statistics.StatisticsCollectorImpl
public class StatisticsCollectorImpl
| Constructor Summary | |
|---|---|
StatisticsCollectorImpl(Build build,
BuildResultsSummaryManager buildResultsSummaryManager,
List results)
Class which takes in a Collection of ResultStatisticsProvider objects
and produces some statistics about it. |
|
| Method Summary | |
|---|---|
List |
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? |
List |
getFailedBuildNumbers()
List of build numbers which had fails |
List |
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()
|
List |
getSuccessfulBuildNumbers()
List of build numbers which were successes. |
double |
getSuccessPercentage()
|
int |
getTotalFailures()
|
int |
getTotalNumberOfResults()
|
int |
getTotalSuccesses()
|
void |
init(List results)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StatisticsCollectorImpl(Build build,
BuildResultsSummaryManager buildResultsSummaryManager,
List results)
Collection of ResultStatisticsProvider objects
and produces some statistics about it.
build - buildResultsSummaryManager - results - | Method Detail |
|---|
public void init(List results)
public List getFailurePeriods()
getFailurePeriods in interface StatisticsCollectorList of FailurePeriodpublic double getSuccessPercentage()
getSuccessPercentage in interface StatisticsCollectorpublic int getTotalNumberOfResults()
getTotalNumberOfResults in interface StatisticsCollectorpublic int getTotalFailures()
getTotalFailures in interface StatisticsCollectorpublic int getTotalSuccesses()
getTotalSuccesses in interface StatisticsCollectorpublic List getAllTestBuildNumbers()
getAllTestBuildNumbers in interface StatisticsCollectorList of Integer representing success. Sorted ASC.public List getSuccessfulBuildNumbers()
getSuccessfulBuildNumbers in interface StatisticsCollectorList of Integer representing success build numbers. Sorted ASC.public List getFailedBuildNumbers()
getFailedBuildNumbers in interface StatisticsCollectorList of Integer representing failed build numbers . Sorted ASC.public int getCreatedInBuild()
getCreatedInBuild in interface StatisticsCollectorpublic int getLastRanInBuild()
getLastRanInBuild in interface StatisticsCollectorpublic FailurePeriod getLongestElapsedTimePeriod()
getLongestElapsedTimePeriod in interface StatisticsCollectorFailurePeriod with the longest elapsed time periodpublic FailurePeriod getLongestElapsedBuildPeriod()
getLongestElapsedBuildPeriod in interface StatisticsCollectorFailurePeriod with the longest elapsed builds.public long getAverageElapsedTime()
getAverageElapsedTime in interface StatisticsCollectorpublic float getAverageElapsedBuilds()
getAverageElapsedBuilds in interface StatisticsCollector
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||