com.atlassian.bamboo.resultsummary
Class BuildResultsSummaryImpl

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.resultsummary.BuildResultsSummaryImpl
All Implemented Interfaces:
BambooCustomDataAware, BambooIdProvider, BambooObject, Deletable, ImmutableDeletable, BuildResultsSummary, ImmutableResultsSummary, MutableBuildKeyResultsSummary, ResultsSummary, ResultStatisticsProvider, java.lang.Cloneable, java.lang.Comparable<ImmutableResultsSummary>

public class BuildResultsSummaryImpl
extends AbstractResultsSummary
implements BuildResultsSummary


Field Summary
 
Fields inherited from class com.atlassian.bamboo.resultsummary.AbstractResultsSummary
buildState, cachedPlanManagerRef, lifeCycleState, markedForDeletion, planManagerRef
 
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
BuildResultsSummaryImpl()
           
 
Method Summary
 ChainResultsSummary getChainResultsSummary()
          The ChainResultsSummary to which the current BuildResultsSummary is a child of Typically this is the link between a Chain and Job result
 ExtraBuildResultsData getExtraBuildResultsData()
          Allow access to ExtraBuildResultsData
 FilteredTestResults getFilteredTestResults()
          Return a filtered view of all the tests that ran in this build.
 java.util.List<ArtifactLink> getProducedArtifactLinks()
          Returns all artifacts produced by this build.
 long getQueueDuration()
          How long build was in the queue (in miliseconds)
 java.util.List<RepositoryChangeset> getRepositoryChangesets()
           
 TriggerReason getTriggerReason()
          Why the build was was triggered
 long getVcsUpdateDuration()
          How long checkout take (in miliseconds)
 java.util.Date getVcsUpdateTime()
          When the source syncronisation was kicked off
 boolean isMarkedForDeletion()
           
 boolean isNotRunYet()
          Tells whether this result belongs to a job that will run when next manual stage is kicked off
 void setChainResultsSummary(ChainResultsSummary chainResultsSummary)
           
 void setMarkedForDeletion(boolean markedForDeletion)
           
protected  void setProducedArtifactLinks(java.util.List<ArtifactLink> producedArtifactLinks)
           
 void setTriggerReason(TriggerReason triggerReason)
           
 void setVcsUpdateTime(java.util.Date vcsUpdateTime)
           
 
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, getImmutablePlan, getJiraIssues, getLabellings, getLifeCycleState, getPlan, getPlanKey, getProcessingDuration, getQueueTime, getReasonSummary, getRestartCount, getStageResultId, getSubscriptions, getSubstitutedVariables, getTestClassResults, getTestResultsSummary, getTimeToFix, getTriggerManager, getTriggerReasonKey, getVariableContext, getVariableContextBaseline, 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, setTriggerReasonKey, setVariableContextBaseline, setVariableContextLogs, updateCustomDataEntry, 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, getImmutablePlan, getPlan, getVariableContextBaseline, incrementRestartCount, resetTestClassResults, setBuildAgentId, setBuildCancelledDate, setBuildCompletedDate, setBuildDate, setCustomBuild, setDeltaState, setDuration, setOnceOff, setProcessingDuration, setQueueTime, setRebuild, setTestResultsSummary, setTimeToFix, setVariableContextBaseline, 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, getRestartCount, getShortReasonSummary, getSubscriptions, getSubstitutedVariables, getTestResultsSummary, getTestSummary, getTimeToFix, getUniqueAuthors, getVariableContext, 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
 
Methods inherited from interface com.atlassian.bamboo.core.BambooCustomDataAware
updateCustomDataEntry
 

Constructor Detail

BuildResultsSummaryImpl

public BuildResultsSummaryImpl()
Method Detail

getFilteredTestResults

@Nullable
public FilteredTestResults getFilteredTestResults()
Description copied from interface: BuildResultsSummary
Return a filtered view of all the tests that ran in this build. Provides some degree of caching but is still relatively intensive.

Specified by:
getFilteredTestResults in interface BuildResultsSummary
Returns:
a filtered view of all the tests ran in this build. Null if the builds hasn't finished yet.

getExtraBuildResultsData

@Nullable
public ExtraBuildResultsData getExtraBuildResultsData()
Description copied from interface: BuildResultsSummary
Allow access to ExtraBuildResultsData

Specified by:
getExtraBuildResultsData in interface BuildResultsSummary
Returns:

getChainResultsSummary

@Nullable
public ChainResultsSummary getChainResultsSummary()
Description copied from interface: BuildResultsSummary
The ChainResultsSummary to which the current BuildResultsSummary is a child of Typically this is the link between a Chain and Job result

Specified by:
getChainResultsSummary in interface BuildResultsSummary

setChainResultsSummary

public void setChainResultsSummary(@NotNull
                                   ChainResultsSummary chainResultsSummary)
Specified by:
setChainResultsSummary in interface BuildResultsSummary

getProducedArtifactLinks

@NotNull
public java.util.List<ArtifactLink> getProducedArtifactLinks()
Description copied from interface: BuildResultsSummary
Returns all artifacts produced by this build. Even if the files don't exist

Specified by:
getProducedArtifactLinks in interface BuildResultsSummary
Returns:

setProducedArtifactLinks

protected void setProducedArtifactLinks(@Nullable
                                        java.util.List<ArtifactLink> producedArtifactLinks)

getQueueDuration

public long getQueueDuration()
Description copied from interface: BuildResultsSummary
How long build was in the queue (in miliseconds)

Specified by:
getQueueDuration in interface BuildResultsSummary
Returns:

getVcsUpdateTime

public java.util.Date getVcsUpdateTime()
Description copied from interface: BuildResultsSummary
When the source syncronisation was kicked off

Specified by:
getVcsUpdateTime in interface BuildResultsSummary
Returns:

getVcsUpdateDuration

public long getVcsUpdateDuration()
Description copied from interface: BuildResultsSummary
How long checkout take (in miliseconds)

Specified by:
getVcsUpdateDuration in interface BuildResultsSummary
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

getRepositoryChangesets

@NotNull
public java.util.List<RepositoryChangeset> getRepositoryChangesets()
Specified by:
getRepositoryChangesets in interface ImmutableResultsSummary
Overrides:
getRepositoryChangesets in class AbstractResultsSummary

setTriggerReason

public void setTriggerReason(TriggerReason triggerReason)
Specified by:
setTriggerReason in interface ResultsSummary
Overrides:
setTriggerReason in class AbstractResultsSummary

getTriggerReason

@NotNull
public TriggerReason getTriggerReason()
Description copied from interface: ImmutableResultsSummary
Why the build was was triggered

Specified by:
getTriggerReason in interface ImmutableResultsSummary
Overrides:
getTriggerReason in class AbstractResultsSummary
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:

setVcsUpdateTime

public void setVcsUpdateTime(java.util.Date vcsUpdateTime)


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.