com.atlassian.bamboo.chains
Interface ChainStateResult


public interface ChainStateResult

Result holder for ChainResultManager#create(Chain, BuildContext)


Method Summary
 java.lang.Long getAverageDuration(PlanResultKey planResultKey)
          Lookup the ImmutablePlan.getAverageBuildDuration() of a Job by its PlanResultKey
 BuildContext getBuildContext(PlanResultKey planResultKey)
          Lookup a BuildContext of a Job by its PlanResultKey
 ChainResultsSummary getChainResultsSummary()
           
 ErrorCollection getErrors()
          Errors that occurred when creating the ChainResultsSummary
 

Method Detail

getChainResultsSummary

@Nullable
ChainResultsSummary getChainResultsSummary()
Returns:
created ChainResultsSummary or null if creation failed

getBuildContext

@Nullable
BuildContext getBuildContext(@NotNull
                                      PlanResultKey planResultKey)
Lookup a BuildContext of a Job by its PlanResultKey

Parameters:
planResultKey -
Returns:
buildContext

getAverageDuration

@Nullable
java.lang.Long getAverageDuration(@NotNull
                                           PlanResultKey planResultKey)
Lookup the ImmutablePlan.getAverageBuildDuration() of a Job by its PlanResultKey

Parameters:
planResultKey -
Returns:
averageDuration

getErrors

@NotNull
ErrorCollection getErrors()
Errors that occurred when creating the ChainResultsSummary

Returns:


Copyright © 2012 Atlassian. All Rights Reserved.