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.AbstractResultsSummary
              extended by com.atlassian.bamboo.resultsummary.BuildResultsSummaryImpl
All Implemented Interfaces:
BambooObject, 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
 
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 If the value is null it can be assumed that the result is for a Build
 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)
 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
 void setChainResultsSummary(ChainResultsSummary chainResultsSummary)
           
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
compareTo, equals, getArtifactLinks, getArtifactLinksThatExist, getBuildAgentId, getBuildCancelledDate, getBuildCompletedDate, getBuildDate, getBuildKey, getBuildNumber, getBuildResultKey, getBuildState, getBuildTime, getChangesListSummary, getComments, getCommentsToDisplay, getCommits, getCustomBuildData, getDeltaState, getDiscriminator, getDuration, getDurationDescription, getDurationInSeconds, getFailedTestCount, getFixingJiraIssues, getJiraIssueKeys, getJiraIssues, getLabellings, getLabelNames, getLifeCycleState, getLongReasonSummary, getManuallyOverriddenVariables, getPlan, getPlanCompletedDate, getPlanResultKey, getQueueTime, getReasonSummary, getRelatedJiraIssues, getRelativeBuildDate, getRelativeBuildDate, getRelativeQueueDate, getRelativeQueueDate, getShortReasonSummary, getSkippedCommitsCount, getStatDate, getSubscriptions, getSubstitutedVariables, getSuccessfulTestCount, getTestClassResults, getTestResultsSummary, getTestSummary, getTextProvider, getTimeToFix, getTriggerReasonKey, getTriggerReasonManager, getUniqueAuthors, getVcsRevisionKey, hasChanges, hasComments, hasCommentsToDisplay, hashCode, isActive, isFailed, isFinalized, isFinished, isInProgress, isNotBuilt, isPending, isQueued, isSuccessful, isWaiting, resetTestClassResults, setArtifactLinks, setBuildAgentId, setBuildCancelledDate, setBuildCompletedDate, setBuildDate, setBuildKey, setBuildNumber, setBuildState, setComments, setCommits, setCustomBuildData, setDeltaState, setDiscriminator, setDuration, setJiraIssues, setLabellings, setLifeCycleState, setPlanCompletedDate, setQueueTime, setSkippedCommitsCount, setSubscriptions, setSubstitutedVariables, setTestResultsSummary, setTimeToFix, setTriggerReasonKey, setVcsRevisionKey, updateLifeCycleState
 
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.BuildResultsSummary
getBuildAgentId
 
Methods inherited from interface com.atlassian.bamboo.resultsummary.ResultsSummary
getArtifactLinks, getArtifactLinksThatExist, getBuildCancelledDate, getBuildCompletedDate, getBuildKey, getBuildResultKey, getBuildTime, getChangesListSummary, getComments, getCommits, getCustomBuildData, getDeltaState, getDuration, getDurationDescription, getFailedTestCount, getFixingJiraIssues, getJiraIssueKeys, getJiraIssues, getLabellings, getLabelNames, getLifeCycleState, getManuallyOverriddenVariables, getPlan, getPlanCompletedDate, getPlanResultKey, getQueueTime, getReasonSummary, getRelatedJiraIssues, getRelativeBuildDate, getRelativeBuildDate, getRelativeQueueDate, getRelativeQueueDate, getShortReasonSummary, getSkippedCommitsCount, getSubscriptions, getSubstitutedVariables, getSuccessfulTestCount, getTestResultsSummary, getTestSummary, getTimeToFix, getUniqueAuthors, getVcsRevisionKey, hasChanges, hasComments, isActive, isFailed, isFinished, isInProgress, isNotBuilt, isPending, isQueued, isSuccessful, isWaiting, resetTestClassResults, setBuildCancelledDate, setBuildDate, setDeltaState, setDuration, setPlanCompletedDate, setQueueTime, setTestResultsSummary, setTimeToFix, setVcsRevisionKey, updateLifeCycleState
 
Methods inherited from interface com.atlassian.bamboo.core.BambooObject
getId, setId
 
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 If the value is null it can be assumed that the result is for a Build

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:

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:

setVcsUpdateTime

public void setVcsUpdateTime(java.util.Date vcsUpdateTime)


Copyright © 2011 Atlassian. All Rights Reserved.