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.  
 long getAverageBuildTime(ImmutableBuildable buildable, int numberOfResults)
          Deprecated. Returns average build duration for given number of builds
 BuildResultsSummary getLastBuildForAgent(java.lang.String planKey, java.lang.Long agentId)
          Deprecated.  
 BuildResultsSummary getLastBuildForImageConfiguration(java.lang.String planKey, ElasticImageConfiguration configuration)
          Deprecated.  
 BuildResultsSummary getLastSuccessfulBuildForAgent(java.lang.String planKey, java.lang.Long agentId)
          Deprecated.  
 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, 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, getNumberOfFinishedResults, getParentResultSummary, getResultsSummary, getResultsSummary, getResultsSummary, getResultsSummary, getResultsSummary, getResultSummaries, getResultSummariesByChangeSetId, getResultSummariesByChangeSetIds, getResultSummariesForPlan, getResultSummariesForPlanByLifeCycleState, getStageForResult, logSubstitutedVariables, logVariablesForSubstitution, markResultSummariesForDeletion, moveResultSummaries, moveResultSummaries, removeAllOrphanedResultSummaries, removeArtifacts, removeBuildLogs, removeMatchingArtifacts, removeMergeResultSummary, removeResultsSummariesForPlan, removeResultSummary, resetResultSummary, saveResultSummary, scrollResultSummaries, scrollResultSummaries, updateCancelledDetails, updateLifeCycleState, updateLifeCycleState, updatePlanCompletedDate, updateProcessingDuration, updateResultSummaryWithBuildChanges
 

Method Detail

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

getAverageBuildTime

long getAverageBuildTime(@NotNull
                         ImmutableBuildable 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

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 © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.