|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@Deprecated public interface BuildResultsSummaryManager
Primarily manages interactions with the BuildResultsSummary
from the database. Slowly, it will encompass all
methods that deals with the all build results interaction.
Method Summary | ||
---|---|---|
int |
countBuildResultsSummaries()
Deprecated. Returns the number of results saved |
|
int |
countBuildResultsSummariesForAgent(BuildAgent buildAgent)
Deprecated. |
|
int |
countFailedBuildResultsSummariesForAgent(BuildAgent buildAgent)
Deprecated. |
|
|
createResultsSummary(ChainResultsSummary chainResultsSummary,
BuildContext buildContext,
java.lang.Class<T> aClass)
Deprecated. |
|
java.util.List<BuildResultsSummary> |
getAllBuildResultsSummaries(Plan plan)
Deprecated. Returns all BuildResultsSummary for the passed Plan . |
|
long |
getAverageBuildTime(Buildable buildable,
int numberOfResults)
Deprecated. Returns average build duration for given number of builds |
|
BuildResultsSummary |
getBuildResultsSummary(PlanResultKey planResultKey)
Deprecated. Gets the BuildResultsSummary represented by the provided PlanResultKey |
|
BuildResultsSummary |
getBuildResultsSummary(java.lang.String buildKey,
int buildNumber)
Deprecated. Gets the BuildResultsSummary represented by the provided buildKey and buildNumber |
|
BuildResultsSummary |
getFirstBuildSummary(Plan plan)
Deprecated. Retreives the first result |
|
BuildResultsSummary |
getLastBuildForAgent(java.lang.String planKey,
java.lang.Long agentId)
Deprecated. |
|
BuildResultsSummary |
getLastBuildForImageConfiguration(java.lang.String planKey,
ElasticImageConfiguration configuration)
Deprecated. |
|
BuildResultsSummary |
getLastBuildSummary(Plan plan)
Deprecated. Retrieves the last completed build result for a plan |
|
BuildResultsSummary |
getLastSuccessfulBuildForAgent(java.lang.String planKey,
java.lang.Long agentId)
Deprecated. |
|
BuildResultsSummary |
getLastSuccessfulBuildSummary(java.lang.String planKey)
Deprecated. since 2.7 use ResultsSummaryManager.getLastSuccessfulResultSummary(PlanKey) |
|
long |
getNumberOfFinishedResults(Plan build)
Deprecated. Get number of the ResultsSummary s in LifeCycleState.FINISHED state for the given Plan |
|
void |
removeBuildResult(Buildable buildable,
int buildNumber)
Deprecated. Removes a build result for a particular build. |
|
void |
saveBuildResultsSummary(BuildResultsSummary buildResultsSummary)
Deprecated. since 2.7 use ResultsSummaryManager.saveResultSummary(ResultsSummary) |
|
BuildResultsSummary |
updateBuildSummaryFromBuildResults(BuildContext buildContext,
CurrentlyBuilding currentlyBuilding,
BuildResults buildResults)
Deprecated. Updates BuildResultsSummary after build is completed. |
Method Detail |
---|
@NotNull java.util.List<BuildResultsSummary> getAllBuildResultsSummaries(@NotNull Plan plan)
BuildResultsSummary
for the passed Plan
. Sorted by oldest first.
plan
-
@Nullable BuildResultsSummary getBuildResultsSummary(java.lang.String buildKey, int buildNumber)
BuildResultsSummary
represented by the provided buildKey and buildNumber
buildKey
- buildNumber
-
@Nullable BuildResultsSummary getBuildResultsSummary(@NotNull PlanResultKey planResultKey)
BuildResultsSummary
represented by the provided PlanResultKey
planResultKey
-
@Deprecated void saveBuildResultsSummary(@NotNull BuildResultsSummary buildResultsSummary)
ResultsSummaryManager.saveResultSummary(ResultsSummary)
BuildResultsSummary
buildResultsSummary
- @NotNull BuildResultsSummary updateBuildSummaryFromBuildResults(BuildContext buildContext, CurrentlyBuilding currentlyBuilding, BuildResults buildResults)
currentlyBuilding
- buildResults
-
@Nullable BuildResultsSummary getFirstBuildSummary(Plan plan)
plan
-
@Nullable BuildResultsSummary getLastBuildSummary(@NotNull Plan plan)
plan
- plan of which build result will be searched
long getNumberOfFinishedResults(@NotNull Plan build)
ResultsSummaryManager
ResultsSummary
s in LifeCycleState.FINISHED
state for the given Plan
getNumberOfFinishedResults
in interface ResultsSummaryManager
long getAverageBuildTime(@NotNull Buildable buildable, int numberOfResults)
buildable
- numberOfResults
- - How many build results to use in the average. must be greater 0 @return Average build time. 0 if no build found.int countBuildResultsSummaries()
void removeBuildResult(Buildable buildable, int buildNumber)
buildable
- buildNumber
- The build number.@Nullable @Deprecated BuildResultsSummary getLastSuccessfulBuildSummary(@NotNull java.lang.String planKey)
ResultsSummaryManager.getLastSuccessfulResultSummary(PlanKey)
planKey
-
@Nullable BuildResultsSummary getLastBuildForAgent(@NotNull java.lang.String planKey, @NotNull java.lang.Long agentId)
@Nullable BuildResultsSummary getLastSuccessfulBuildForAgent(@NotNull java.lang.String planKey, @NotNull java.lang.Long agentId)
@Nullable BuildResultsSummary getLastBuildForImageConfiguration(@NotNull java.lang.String planKey, @NotNull ElasticImageConfiguration configuration)
int countBuildResultsSummariesForAgent(@NotNull BuildAgent buildAgent)
int countFailedBuildResultsSummariesForAgent(@NotNull BuildAgent buildAgent)
<T extends ResultsSummary> T createResultsSummary(@Nullable ChainResultsSummary chainResultsSummary, @NotNull BuildContext buildContext, @NotNull java.lang.Class<T> aClass) throws ResultsSummaryCreationException
ResultsSummaryCreationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |