|
||||||||||
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 StatisticsCollector
List
of FailurePeriod
public double getSuccessPercentage()
getSuccessPercentage
in interface StatisticsCollector
public int getTotalNumberOfResults()
getTotalNumberOfResults
in interface StatisticsCollector
public int getTotalFailures()
getTotalFailures
in interface StatisticsCollector
public int getTotalSuccesses()
getTotalSuccesses
in interface StatisticsCollector
public List getAllTestBuildNumbers()
getAllTestBuildNumbers
in interface StatisticsCollector
List
of Integer
representing success. Sorted ASC.public List getSuccessfulBuildNumbers()
getSuccessfulBuildNumbers
in interface StatisticsCollector
List
of Integer
representing success build numbers. Sorted ASC.public List 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
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 |