com.atlassian.bamboo.chains
Class ChainResultsSummaryImpl

java.lang.Object
  extended by com.atlassian.core.bean.EntityObject
      extended by com.atlassian.bamboo.core.BambooEntityObject
          extended by com.atlassian.bamboo.resultsummary.BaseResultSummary
              extended by com.atlassian.bamboo.resultsummary.AbstractResultsSummary
                  extended by com.atlassian.bamboo.chains.ChainResultsSummaryImpl
All Implemented Interfaces:
ChainResultsSummary, ImmutableChainResultsSummary, BambooIdProvider, BambooObject, Deletable, ImmutableDeletable, ImmutableResultsSummary, MutableBuildKeyResultsSummary, ResultsSummary, ResultStatisticsProvider, java.lang.Cloneable, java.lang.Comparable<ImmutableResultsSummary>

public class ChainResultsSummaryImpl
extends AbstractResultsSummary
implements ChainResultsSummary


Field Summary
 
Fields inherited from class com.atlassian.bamboo.resultsummary.AbstractResultsSummary
buildState, lifeCycleState, markedForDeletion, planManagerRef, planManagerSupplier
 
Fields inherited from class com.atlassian.bamboo.resultsummary.BaseResultSummary
DATE_FORMAT
 
Fields inherited from class com.atlassian.bamboo.core.BambooEntityObject
id
 
Fields inherited from interface com.atlassian.bamboo.resultsummary.ImmutableResultsSummary
CUSTOM_DATA_BUILD_KEY
 
Constructor Summary
ChainResultsSummaryImpl()
           
 
Method Summary
 boolean addStageResult(ChainStageResult chainStageResult)
          Add a stage result
 ChainStageResult createStageResult(ImmutableChainStage chainStage)
          Create a new ChainStageResult and associates it with the ChainResultsSummary
 java.util.List<BuildResultsSummary> getFailedJobResults()
          Get a list of all failed job Results in this chain result
 MergeResultSummary getMergeResult()
          Note: this API is experimental.
 java.util.List<ResultsSummary> getOrderedJobResultSummaries()
          Returns all jobs ResultsSummary related to chain result summary Summaries are ordered by stages
 Chain getPlan()
          Gets the Plan that this result belongs directly belongs to
 java.util.List<ChainStageResult> getStageResults()
          Get all the ChainStageResult's associated with this ChainResultsSummary
 FilteredTestResults<TestClassResultDescriptor> getTestResults()
          Get the helper class to provide filtered test lists for this chain result
 int getTotalJobCount()
           
 boolean isContinuable()
          Indicates that Chain execution has been stopped on manual stage and is waiting for user action
 boolean isMarkedForDeletion()
           
 boolean isNotRunYet()
          Tells whether this result belongs to a job that will run when next manual stage is kicked off
 boolean isRestartable()
          Indicates that Chain execution has been failed and could be restarted from failure place
 boolean removeStageResult(ChainStageResult chainStageResult)
          Remove a stage result
 void setContinuable(boolean continuable)
           
 void setMarkedForDeletion(boolean markedForDeletion)
           
 void setMergeResult(MergeResultSummary mergeResult)
          Note: this API is experimental.
 void setStageResults(java.util.List<ChainStageResult> stageResults)
           
 
Methods inherited from class com.atlassian.bamboo.resultsummary.AbstractResultsSummary
getArtifactLinks, getBuildAgentId, getBuildCancelledDate, getBuildCompletedDate, getBuildDate, getBuildKey, getBuildNumber, getBuildResultKey, getBuildState, getChangesListSummary, getComments, getCommentsToDisplay, getCustomBuildData, getDeltaState, getDiscriminator, getDuration, getJiraIssues, getLabellings, getLifeCycleState, getPlanKey, getProcessingDuration, getQueueTime, getReasonSummary, getRepositoryChangesets, getRestartCount, getStageResultId, getSubscriptions, getSubstitutedVariables, getTestClassResults, getTestResultsSummary, getTimeToFix, getTriggerManager, getTriggerReason, getTriggerReasonKey, getVariableContextLogs, incrementRestartCount, isCustomBuild, isOnceOff, isRebuild, resetTestClassResults, setArtifactLinks, setBuildAgentId, setBuildCancelledDate, setBuildCompletedDate, setBuildDate, setBuildKey, setBuildNumber, setBuildState, setComments, setCustomBuild, setCustomBuildData, setDeltaState, setDiscriminator, setDuration, setJiraIssues, setLabellings, setLifeCycleState, setOnceOff, setPlanKey, setProcessingDuration, setQueueTime, setRebuild, setRestartCount, setStageResultId, setSubscriptions, setSubstitutedVariables, setTestResultsSummary, setTimeToFix, setTriggerReason, setTriggerReasonKey, setVariableContextLogs, updateLifeCycleState
 
Methods inherited from class com.atlassian.bamboo.resultsummary.BaseResultSummary
compareTo, createChangeListSummary, equals, getArtifactLinksThatExist, getBuildTime, getCommits, getDurationDescription, getDurationInSeconds, getFixingJiraIssues, getJiraIssueKeys, getLabelNames, getManuallyOverriddenVariables, getPlanResultKey, getProcessingDurationDescription, getRelatedJiraIssues, getRelativeBuildDate, getRelativeBuildDate, getRelativeBuildStartedDate, getRelativeBuildStartedDate, getRelativeQueueDate, getRelativeQueueDate, getShortReasonSummary, getStatDate, getTestSummary, getUniqueAuthors, hasChanges, hasComments, hasCommentsToDisplay, hashCode, isActive, isFailed, isFinalized, isFinished, isInProgress, isNotBuilt, isPending, isQueued, isSuccessful, isWaiting
 
Methods inherited from class com.atlassian.bamboo.core.BambooEntityObject
getId, setId
 
Methods inherited from class com.atlassian.core.bean.EntityObject
clone, getCreationDate, getCurrentDate, getLastModificationDate, setClock, setCreationDate, setLastModificationDate
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.bamboo.resultsummary.ResultsSummary
getBuildKey, getBuildResultKey, incrementRestartCount, resetTestClassResults, setBuildAgentId, setBuildCancelledDate, setBuildCompletedDate, setBuildDate, setCustomBuild, setDeltaState, setDuration, setOnceOff, setProcessingDuration, setQueueTime, setRebuild, setTestResultsSummary, setTimeToFix, setTriggerReason, updateLifeCycleState
 
Methods inherited from interface com.atlassian.bamboo.core.BambooObject
setId
 
Methods inherited from interface com.atlassian.bamboo.core.BambooIdProvider
getId
 
Methods inherited from interface com.atlassian.bamboo.resultsummary.ImmutableResultsSummary
getArtifactLinks, getArtifactLinksThatExist, getBuildAgentId, getBuildCancelledDate, getBuildCompletedDate, getBuildTime, getChangesListSummary, getComments, getCommentsToDisplay, getCommits, getCustomBuildData, getDeltaState, getDuration, getDurationDescription, getFixingJiraIssues, getJiraIssueKeys, getJiraIssues, getLabellings, getLabelNames, getLifeCycleState, getManuallyOverriddenVariables, getPlanKey, getPlanResultKey, getProcessingDuration, getProcessingDurationDescription, getQueueTime, getReasonSummary, getRelatedJiraIssues, getRelativeBuildDate, getRelativeBuildDate, getRelativeBuildStartedDate, getRelativeBuildStartedDate, getRelativeQueueDate, getRelativeQueueDate, getRepositoryChangesets, getRestartCount, getShortReasonSummary, getSubscriptions, getSubstitutedVariables, getTestResultsSummary, getTestSummary, getTimeToFix, getTriggerReason, getUniqueAuthors, getVariableContextLogs, hasChanges, hasComments, hasCommentsToDisplay, isActive, isCustomBuild, isFailed, isFinished, isInProgress, isNotBuilt, isOnceOff, isPending, isQueued, isRebuild, isSuccessful, isWaiting
 
Methods inherited from interface com.atlassian.bamboo.resultsummary.ResultStatisticsProvider
getBuildDate, getBuildNumber, getBuildState, getDurationInSeconds, getStatDate
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

ChainResultsSummaryImpl

public ChainResultsSummaryImpl()
Method Detail

getPlan

@NotNull
public Chain getPlan()
Description copied from interface: ResultsSummary
Gets the Plan that this result belongs directly belongs to

Specified by:
getPlan in interface ChainResultsSummary
Specified by:
getPlan in interface ImmutableResultsSummary
Specified by:
getPlan in interface ResultsSummary
Overrides:
getPlan in class AbstractResultsSummary
Returns:
the owning plan for the result

createStageResult

@NotNull
public ChainStageResult createStageResult(@NotNull
                                                  ImmutableChainStage chainStage)
Description copied from interface: ChainResultsSummary
Create a new ChainStageResult and associates it with the ChainResultsSummary

Specified by:
createStageResult in interface ChainResultsSummary
Parameters:
chainStage - the Stage related to result
Returns:
chainStageResult

getStageResults

@NotNull
public java.util.List<ChainStageResult> getStageResults()
Description copied from interface: ImmutableChainResultsSummary
Get all the ChainStageResult's associated with this ChainResultsSummary

Specified by:
getStageResults in interface ImmutableChainResultsSummary
Returns:
results

setStageResults

public void setStageResults(@NotNull
                            java.util.List<ChainStageResult> stageResults)

addStageResult

public boolean addStageResult(@NotNull
                              ChainStageResult chainStageResult)
Description copied from interface: ChainResultsSummary
Add a stage result

Specified by:
addStageResult in interface ChainResultsSummary
Returns:
success

removeStageResult

public boolean removeStageResult(@NotNull
                                 ChainStageResult chainStageResult)
Description copied from interface: ChainResultsSummary
Remove a stage result

Specified by:
removeStageResult in interface ChainResultsSummary
Returns:
success

getFailedJobResults

@NotNull
public java.util.List<BuildResultsSummary> getFailedJobResults()
Description copied from interface: ImmutableChainResultsSummary
Get a list of all failed job Results in this chain result

Specified by:
getFailedJobResults in interface ImmutableChainResultsSummary
Returns:
a list of all failed job Results in this chain result

getTotalJobCount

public int getTotalJobCount()
Specified by:
getTotalJobCount in interface ImmutableChainResultsSummary
Returns:
how many job results exist

getTestResults

@Nullable
public FilteredTestResults<TestClassResultDescriptor> getTestResults()
Description copied from interface: ImmutableChainResultsSummary
Get the helper class to provide filtered test lists for this chain result

Specified by:
getTestResults in interface ImmutableChainResultsSummary
Returns:
helper class to provide filtered test lists for this chain result, null if the chain is still being built

getOrderedJobResultSummaries

@NotNull
public java.util.List<ResultsSummary> getOrderedJobResultSummaries()
Description copied from interface: ImmutableChainResultsSummary
Returns all jobs ResultsSummary related to chain result summary Summaries are ordered by stages

Specified by:
getOrderedJobResultSummaries in interface ImmutableChainResultsSummary
Returns:

isContinuable

public boolean isContinuable()
Description copied from interface: ImmutableChainResultsSummary
Indicates that Chain execution has been stopped on manual stage and is waiting for user action

Specified by:
isContinuable in interface ImmutableChainResultsSummary
Returns:

setContinuable

public void setContinuable(boolean continuable)
Specified by:
setContinuable in interface ChainResultsSummary

isRestartable

public boolean isRestartable()
Description copied from interface: ImmutableChainResultsSummary
Indicates that Chain execution has been failed and could be restarted from failure place

Specified by:
isRestartable in interface ImmutableChainResultsSummary
Returns:

isNotRunYet

public boolean isNotRunYet()
Description copied from interface: ImmutableResultsSummary
Tells whether this result belongs to a job that will run when next manual stage is kicked off

Specified by:
isNotRunYet in interface ImmutableResultsSummary
Returns:

isMarkedForDeletion

public boolean isMarkedForDeletion()
Specified by:
isMarkedForDeletion in interface ImmutableDeletable
Returns:
Whether or not the Object has been marked for deletion

setMarkedForDeletion

public void setMarkedForDeletion(boolean markedForDeletion)
Specified by:
setMarkedForDeletion in interface Deletable

getMergeResult

public MergeResultSummary getMergeResult()
Description copied from interface: ImmutableChainResultsSummary
Note: this API is experimental.

Specified by:
getMergeResult in interface ImmutableChainResultsSummary

setMergeResult

public void setMergeResult(MergeResultSummary mergeResult)
Description copied from interface: ChainResultsSummary
Note: this API is experimental.

Specified by:
setMergeResult in interface ChainResultsSummary


Copyright © 2012 Atlassian. All Rights Reserved.