com.atlassian.bamboo.resultsummary
Interface BuildResultsSummaryManager

All Superinterfaces:
ResultsSummaryManager
All Known Implementing Classes:
BuildResultsSummaryManagerImpl

Deprecated. since 2.7 use ResultsSummaryManager instead

@Deprecated
public interface BuildResultsSummaryManager
extends ResultsSummaryManager

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.  
<T extends ResultsSummary>
T
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 ResultsSummarys 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.
 
Methods inherited from interface com.atlassian.bamboo.resultsummary.ResultsSummaryManager
calculateAndSetDeltaState, countResultsWithState, createResultsSummary, findChainResultsWithJobLabelled, findFirstFailedBuildResultAfter, findFirstFailedBuildResultBetween, findFirstResultAfter, findFirstSuccessfulBuildResultAfter, findJiraIssuesForPlan, findJiraIssuesForResults, findLastBuildResultBefore, findLastBuildResultBeforeWithTests, findLastFailingBuildResultBefore, findLastResultBefore, findLastResultSummaryWithState, findLastSuccessfulBuildResultBefore, findResultsSummariesByJiraIssues, findResultsSummariesByProjectKey, getAllActiveResultSummariesForPlan, getAllBuildResultsSummariesForAgent, getAllBuildResultSummariesInUnknownState, getAllInProgressResultSummaries, getAllPendingResultSummaries, getAllQueuedResultSummaries, getAllResultSummariesForPlan, getAveragePlanExecutionDuration, getBreakingBuild, getChainStageResultById, getCommitsForUser, getFinalizedResultSummariesForPlan, getFixingBuild, getLastNBuildResultsSummaries, getLastNFailedResultsSummaries, getLastNResultsSummaries, getLastResultsSummary, getLastSuccessfulResultSummary, getLatestFailedResultSummaries, getLatestResultSummaries, getLatestSummariesForAgent, getLatestSummariesForAgent, getLatestSummaryForAgent, getNeighbouringSummaries, getNeighbouringSummaries, getNumberOfConcurrentlyRunningBuilds, getNumberOfFinalizedResults, getParentResultSummary, getResultsSummary, getResultsSummary, getResultsSummary, getResultsSummary, getResultSummaries, getResultSummariesByChangeSetId, getResultSummariesForPlan, getResultSummariesForPlanByLifeCycleState, getStageForResult, logSubstitutedVariables, logVariablesForSubstitution, markResultSummariesForDeletion, moveResultSummaries, moveResultSummaries, removeAllOrphanedResultSummaries, removeArtifacts, removeBuildLogs, removeMatchingArtifacts, removeResultsSummariesForPlan, removeResultSummary, saveResultSummary, scrollResultSummaries, scrollResultSummaries, updateCancelledDetails, updateLifeCycleState, updateLifeCycleState, updatePlanCompletedDate, updateProcessingDuration
 

Method Detail

getAllBuildResultsSummaries

@NotNull
java.util.List<BuildResultsSummary> getAllBuildResultsSummaries(@NotNull
                                                                        Plan plan)
Deprecated. 
Returns all BuildResultsSummary for the passed Plan. Sorted by oldest first.

Parameters:
plan -
Returns:

getBuildResultsSummary

@Nullable
BuildResultsSummary getBuildResultsSummary(java.lang.String buildKey,
                                                    int buildNumber)
Deprecated. 
Gets the BuildResultsSummary represented by the provided buildKey and buildNumber

Parameters:
buildKey -
buildNumber -
Returns:
buildResultsSummary

getBuildResultsSummary

@Nullable
BuildResultsSummary getBuildResultsSummary(@NotNull
                                                    PlanResultKey planResultKey)
Deprecated. 
Gets the BuildResultsSummary represented by the provided PlanResultKey

Parameters:
planResultKey -
Returns:
buildResultsSummary

saveBuildResultsSummary

@Deprecated
void saveBuildResultsSummary(@NotNull
                                        BuildResultsSummary buildResultsSummary)
Deprecated. since 2.7 use ResultsSummaryManager.saveResultSummary(ResultsSummary)

Saves the specified BuildResultsSummary

Parameters:
buildResultsSummary -

updateBuildSummaryFromBuildResults

@NotNull
BuildResultsSummary updateBuildSummaryFromBuildResults(BuildContext buildContext,
                                                               CurrentlyBuilding currentlyBuilding,
                                                               BuildResults buildResults)
Deprecated. 
Updates BuildResultsSummary after build is completed. All fiedls are initialized at this moment.

Parameters:
currentlyBuilding -
buildResults -
Returns:
updated build result summary

getFirstBuildSummary

@Nullable
BuildResultsSummary getFirstBuildSummary(Plan plan)
Deprecated. 
Retreives the first result

Parameters:
plan -
Returns:
result

getLastBuildSummary

@Nullable
BuildResultsSummary getLastBuildSummary(@NotNull
                                                 Plan plan)
Deprecated. 
Retrieves the last completed build result for a plan

Parameters:
plan - plan of which build result will be searched
Returns:
result

getNumberOfFinishedResults

long getNumberOfFinishedResults(@NotNull
                                Plan build)
Deprecated. 
Description copied from interface: ResultsSummaryManager
Get number of the ResultsSummarys in LifeCycleState.FINISHED state for the given Plan

Specified by:
getNumberOfFinishedResults in interface ResultsSummaryManager
Returns:
number of summaries

getAverageBuildTime

long getAverageBuildTime(@NotNull
                         Buildable buildable,
                         int numberOfResults)
Deprecated. 
Returns average build duration for given number of builds

Parameters:
buildable -
numberOfResults - - How many build results to use in the average. must be greater 0 @return Average build time. 0 if no build found.

countBuildResultsSummaries

int countBuildResultsSummaries()
Deprecated. 
Returns the number of results saved

Returns:
results

removeBuildResult

void removeBuildResult(Buildable buildable,
                       int buildNumber)
Deprecated. 
Removes a build result for a particular build. This fully removes everything about this particular build result and triggers off all appropriate events.

Parameters:
buildable -
buildNumber - The build number.

getLastSuccessfulBuildSummary

@Nullable
@Deprecated
BuildResultsSummary getLastSuccessfulBuildSummary(@NotNull
                                                                      java.lang.String planKey)
Deprecated. since 2.7 use ResultsSummaryManager.getLastSuccessfulResultSummary(PlanKey)

Parameters:
planKey -
Returns:

getLastBuildForAgent

@Nullable
BuildResultsSummary getLastBuildForAgent(@NotNull
                                                  java.lang.String planKey,
                                                  @NotNull
                                                  java.lang.Long agentId)
Deprecated. 

getLastSuccessfulBuildForAgent

@Nullable
BuildResultsSummary getLastSuccessfulBuildForAgent(@NotNull
                                                            java.lang.String planKey,
                                                            @NotNull
                                                            java.lang.Long agentId)
Deprecated. 

getLastBuildForImageConfiguration

@Nullable
BuildResultsSummary getLastBuildForImageConfiguration(@NotNull
                                                               java.lang.String planKey,
                                                               @NotNull
                                                               ElasticImageConfiguration configuration)
Deprecated. 

countBuildResultsSummariesForAgent

int countBuildResultsSummariesForAgent(@NotNull
                                       BuildAgent buildAgent)
Deprecated. 

countFailedBuildResultsSummariesForAgent

int countFailedBuildResultsSummariesForAgent(@NotNull
                                             BuildAgent buildAgent)
Deprecated. 

createResultsSummary

<T extends ResultsSummary> T createResultsSummary(@Nullable
                                                  ChainResultsSummary chainResultsSummary,
                                                  @NotNull
                                                  BuildContext buildContext,
                                                  @NotNull
                                                  java.lang.Class<T> aClass)
                                              throws ResultsSummaryCreationException
Deprecated. 
Throws:
ResultsSummaryCreationException


Copyright © 2012 Atlassian. All Rights Reserved.