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:
BambooIdProvider, BambooObject, Deletable, ImmutableDeletable, BuildResultsSummary, ExtendedBuildResultsSummary, MutableBuildKeyResultsSummary, ResultsSummary, ResultStatisticsProvider, java.lang.Cloneable, java.lang.Comparable<ResultsSummary>

public class BuildResultsSummaryImpl
extends AbstractResultsSummary
implements BuildResultsSummary


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
 
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, getBuildNumber, getBuildState, getChangesListSummary, getComments, getCommentsToDisplay, getCustomBuildData, getDeltaState, getDiscriminator, getDuration, getJiraIssues, getLabellings, getLifeCycleState, getPlan, getPlanCompletedDate, getPlanKey, getProcessingDuration, getQueueTime, getReasonSummary, getRestartCount, getStageResultId, getSubscriptions, getSubstitutedVariables, getTestClassResults, getTestResultsSummary, getTimeToFix, getTriggerManager, getTriggerReasonKey, getVariableContextLogs, incrementRestartCount, resetTestClassResults, setArtifactLinks, setBuildAgentId, setBuildCancelledDate, setBuildCompletedDate, setBuildDate, setBuildKey, setBuildNumber, setBuildState, setComments, setCustomBuildData, setDeltaState, setDiscriminator, setDuration, setJiraIssues, setLabellings, setLifeCycleState, setPlanCompletedDate, setPlanKey, setProcessingDuration, setQueueTime, setRestartCount, setStageResultId, setSubscriptions, setSubstitutedVariables, setTestResultsSummary, setTimeToFix, setTriggerReasonKey, setVariableContextLogs, updateLifeCycleState
 
Methods inherited from class com.atlassian.bamboo.resultsummary.BaseResultSummary
compareTo, createChangeListSummary, equals, getArtifactLinksThatExist, getBuildKey, getBuildResultKey, getBuildTime, getCommits, getDurationDescription, getDurationInSeconds, getFixingJiraIssues, getJiraIssueKeys, getLabelNames, getLongReasonSummary, 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
getArtifactLinks, getArtifactLinksThatExist, getBuildAgentId, getBuildCancelledDate, getBuildCompletedDate, getBuildKey, getBuildResultKey, getBuildTime, getChangesListSummary, getComments, getCommentsToDisplay, getCommits, getCustomBuildData, getDeltaState, getDuration, getDurationDescription, getFixingJiraIssues, getJiraIssueKeys, getJiraIssues, getLabellings, getLabelNames, getLifeCycleState, getManuallyOverriddenVariables, getPlan, getPlanCompletedDate, getPlanKey, getPlanResultKey, getProcessingDuration, getProcessingDurationDescription, getQueueTime, getReasonSummary, getRelatedJiraIssues, getRelativeBuildDate, getRelativeBuildDate, getRelativeBuildStartedDate, getRelativeBuildStartedDate, getRelativeQueueDate, getRelativeQueueDate, getRestartCount, getShortReasonSummary, getSubscriptions, getSubstitutedVariables, getTestResultsSummary, getTestSummary, getTimeToFix, getUniqueAuthors, getVariableContextLogs, hasChanges, hasComments, hasCommentsToDisplay, incrementRestartCount, isActive, isFailed, isFinished, isInProgress, isNotBuilt, isPending, isQueued, isSuccessful, isWaiting, resetTestClassResults, setBuildAgentId, setBuildCancelledDate, setBuildCompletedDate, setBuildDate, setDeltaState, setDuration, setPlanCompletedDate, setProcessingDuration, setQueueTime, setTestResultsSummary, setTimeToFix, 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.ResultStatisticsProvider
getBuildDate, getBuildNumber, getBuildState, getDurationInSeconds, getStatDate
 
Methods inherited from interface java.lang.Comparable
compareTo
 

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(@NotNull
                                        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 ResultsSummary
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: ResultsSummary
Why the build was was triggered

Specified by:
getTriggerReason in interface ResultsSummary
Overrides:
getTriggerReason in class AbstractResultsSummary
Returns:

isNotRunYet

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

Specified by:
isNotRunYet in interface ResultsSummary
Returns:

setVcsUpdateTime

public void setVcsUpdateTime(java.util.Date vcsUpdateTime)


Copyright © 2012 Atlassian. All Rights Reserved.