|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.core.bean.EntityObject com.atlassian.bamboo.core.BambooEntityObject com.atlassian.bamboo.resultsummary.BaseResultSummary com.atlassian.bamboo.resultsummary.AbstractResultsSummary
public abstract class AbstractResultsSummary
Field Summary | |
---|---|
protected BuildState |
buildState
|
protected LifeCycleState |
lifeCycleState
|
protected boolean |
markedForDeletion
|
protected static com.google.common.base.Supplier<PlanManager> |
planManagerRef
|
protected static com.google.common.base.Supplier<PlanManager> |
planManagerSupplier
|
Fields inherited from class com.atlassian.bamboo.resultsummary.BaseResultSummary |
---|
DATE_FORMAT |
Fields inherited from class com.atlassian.bamboo.core.BambooEntityObject |
---|
id |
Constructor Summary | |
---|---|
AbstractResultsSummary()
|
Method Summary | |
---|---|
java.util.Collection<ArtifactLink> |
getArtifactLinks()
Returns all artifacts associated with this build. |
java.lang.Long |
getBuildAgentId()
The id of the agent that built the result |
java.util.Date |
getBuildCancelledDate()
When the build was cancelled |
java.util.Date |
getBuildCompletedDate()
When the build finished |
java.util.Date |
getBuildDate()
Date when build was passed to execution. |
int |
getBuildNumber()
Get build number |
BuildState |
getBuildState()
Build state. |
java.lang.String |
getChangesListSummary()
|
java.util.List<Comment> |
getComments()
Gets the associated user comments for the build |
java.util.List<Comment> |
getCommentsToDisplay()
Gets the aggregated comments from the Jobs as well as the parent plan |
java.util.Map<java.lang.String,java.lang.String> |
getCustomBuildData()
Custom data map to store random metadata about the build |
DeltaState |
getDeltaState()
Gets the DeltaState of the summary. |
java.lang.String |
getDiscriminator()
|
long |
getDuration()
Duration of the build in milliseconds |
java.util.Set<LinkedJiraIssue> |
getJiraIssues()
Returns all the JIRA issues linked to this build result |
java.util.List<Labelling> |
getLabellings()
Tags / labels assocaited with the build |
LifeCycleState |
getLifeCycleState()
|
Plan |
getPlan()
Gets the Plan that this result belongs directly belongs to |
java.util.Date |
getPlanCompletedDate()
|
PlanKey |
getPlanKey()
Full key of the plan. |
long |
getProcessingDuration()
Duration of actual build processing in miliseconds |
java.util.Date |
getQueueTime()
Date when build was queued. |
java.lang.String |
getReasonSummary()
|
java.util.List<RepositoryChangeset> |
getRepositoryChangesets()
|
int |
getRestartCount()
Return the number of build restart attempts |
java.lang.Long |
getStageResultId()
|
java.util.List<ConsumedSubscription> |
getSubscriptions()
Returns list of consumed artifact dependencies ConsumedSubscription |
java.util.List<VariableSubstitution> |
getSubstitutedVariables()
Returns list of variables substituted during build execution |
java.util.List<TestClassResult> |
getTestClassResults()
|
TestResultsSummary |
getTestResultsSummary()
|
java.lang.Long |
getTimeToFix()
A stored version of how long (milli seconds) it took for this build to fix a failure. |
protected TriggerManager |
getTriggerManager()
|
TriggerReason |
getTriggerReason()
Why the build was was triggered |
java.lang.String |
getTriggerReasonKey()
|
java.util.List<VariableContextSnapshot> |
getVariableContextLogs()
|
int |
incrementRestartCount()
Increments number of build restarts and returns the new value |
void |
resetTestClassResults(java.util.List<TestClassResult> testClassResults)
Overrides all current testClassResults with the new ones |
void |
setArtifactLinks(java.util.List<ArtifactLink> artifactLinks)
|
void |
setBuildAgentId(java.lang.Long buildAgentId)
|
void |
setBuildCancelledDate(java.util.Date buildCancelledDate)
|
void |
setBuildCompletedDate(java.util.Date buildCompletedDate)
|
void |
setBuildDate(java.util.Date buildDate)
|
void |
setBuildKey(java.lang.String buildKey)
|
void |
setBuildNumber(int buildNumber)
|
void |
setBuildState(BuildState buildState)
|
void |
setComments(java.util.List<Comment> comments)
|
void |
setCustomBuildData(java.util.Map<java.lang.String,java.lang.String> customBuildData)
|
void |
setDeltaState(DeltaState deltaState)
Sets the DeltaState for the summary. |
void |
setDiscriminator(java.lang.String discriminator)
|
void |
setDuration(long duration)
|
void |
setJiraIssues(java.util.Set jiraIssues)
|
void |
setLabellings(java.util.List<Labelling> labellings)
|
void |
setLifeCycleState(LifeCycleState lifeCycleState)
|
void |
setPlanCompletedDate(java.util.Date completionDate)
Sets the time when build finished. |
void |
setPlanKey(PlanKey planKey)
|
void |
setProcessingDuration(long processingDuration)
|
void |
setQueueTime(java.util.Date queueTime)
|
void |
setRestartCount(int restartCount)
|
void |
setStageResultId(java.lang.Long stageResultId)
|
void |
setSubscriptions(java.util.List<ConsumedSubscription> subscriptions)
|
void |
setSubstitutedVariables(java.util.List<VariableSubstitution> substitutedVariables)
|
void |
setTestResultsSummary(TestResultsSummary testResultsSummary)
Set the test summary information from this build |
void |
setTimeToFix(java.lang.Long timeToFix)
A stored version of how long (milli seconds) it took for this build to fix a failure. |
void |
setTriggerReason(TriggerReason triggerReason)
|
void |
setTriggerReasonKey(java.lang.String triggerReasonKey)
|
void |
setVariableContextLogs(java.util.List<VariableContextSnapshot> variableContextLogs)
|
void |
updateLifeCycleState(LifeCycleState lifeCycleState,
BuildState buildState)
Update lifeCycleState and buildState in one go. |
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.deletion.Deletable |
---|
setMarkedForDeletion |
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.plan.cache.ImmutableDeletable |
---|
isMarkedForDeletion |
Methods inherited from interface com.atlassian.bamboo.resultsummary.ResultStatisticsProvider |
---|
getDurationInSeconds, getStatDate |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Field Detail |
---|
protected boolean markedForDeletion
protected BuildState buildState
protected LifeCycleState lifeCycleState
protected static final com.google.common.base.Supplier<PlanManager> planManagerRef
protected static final com.google.common.base.Supplier<PlanManager> planManagerSupplier
Constructor Detail |
---|
public AbstractResultsSummary()
Method Detail |
---|
@NotNull public Plan getPlan()
ResultsSummary
Plan
that this result belongs directly belongs to
getPlan
in interface ResultsSummary
public java.lang.String getReasonSummary()
getReasonSummary
in interface ResultsSummary
public void setBuildKey(java.lang.String buildKey)
setBuildKey
in interface MutableBuildKeyResultsSummary
public int getBuildNumber()
ResultStatisticsProvider
getBuildNumber
in interface ResultStatisticsProvider
public void setBuildNumber(int buildNumber)
public java.util.Date getBuildDate()
getBuildDate
in interface ResultStatisticsProvider
public void setBuildDate(java.util.Date buildDate)
setBuildDate
in interface ResultsSummary
public java.util.Date getQueueTime()
getQueueTime
in interface ResultsSummary
public void setQueueTime(java.util.Date queueTime)
setQueueTime
in interface ResultsSummary
public java.util.Date getBuildCompletedDate()
ResultsSummary
getBuildCompletedDate
in interface ResultsSummary
public void setBuildCompletedDate(java.util.Date buildCompletedDate)
setBuildCompletedDate
in interface ResultsSummary
public DeltaState getDeltaState()
ResultsSummary
DeltaState
of the summary. It can be a build that fixes, breaks, failing, successful. Provides a status
relative to the previous summary.
getDeltaState
in interface ResultsSummary
public void setDeltaState(DeltaState deltaState)
ResultsSummary
DeltaState
for the summary. Provides a status relative to the previous summary.
setDeltaState
in interface ResultsSummary
deltaState
- - the relative status for this summary@NotNull public java.util.Set<LinkedJiraIssue> getJiraIssues()
ResultsSummary
getJiraIssues
in interface ResultsSummary
public void setJiraIssues(java.util.Set jiraIssues)
@NotNull public java.util.Map<java.lang.String,java.lang.String> getCustomBuildData()
ResultsSummary
getCustomBuildData
in interface ResultsSummary
public void setCustomBuildData(java.util.Map<java.lang.String,java.lang.String> customBuildData)
public java.lang.Long getTimeToFix()
ResultsSummary
getTimeToFix
in interface ResultsSummary
public void setTimeToFix(java.lang.Long timeToFix)
ResultsSummary
setTimeToFix
in interface ResultsSummary
timeToFix
- how long (milli seconds) it took for this build to fix a failure.public java.util.List<Labelling> getLabellings()
ResultsSummary
getLabellings
in interface ResultsSummary
public void setLabellings(java.util.List<Labelling> labellings)
public void setComments(java.util.List<Comment> comments)
@NotNull public java.util.Collection<ArtifactLink> getArtifactLinks()
ResultsSummary
getArtifactLinks
in interface ResultsSummary
public void setArtifactLinks(java.util.List<ArtifactLink> artifactLinks)
public java.util.List<ConsumedSubscription> getSubscriptions()
ResultsSummary
ConsumedSubscription
getSubscriptions
in interface ResultsSummary
public void setSubscriptions(java.util.List<ConsumedSubscription> subscriptions)
public java.lang.String getTriggerReasonKey()
public void setTriggerReasonKey(java.lang.String triggerReasonKey)
@NotNull public TriggerReason getTriggerReason()
ResultsSummary
getTriggerReason
in interface ResultsSummary
public void setTriggerReason(TriggerReason triggerReason)
setTriggerReason
in interface ResultsSummary
public java.lang.Long getBuildAgentId()
ResultsSummary
getBuildAgentId
in interface ResultsSummary
public void setBuildAgentId(java.lang.Long buildAgentId)
setBuildAgentId
in interface ResultsSummary
@NotNull public java.util.List<Comment> getCommentsToDisplay()
ResultsSummary
getCommentsToDisplay
in interface ResultsSummary
public long getDuration()
ResultsSummary
getDuration
in interface ResultsSummary
getDuration
in interface ResultStatisticsProvider
public void setDuration(long duration)
setDuration
in interface ResultsSummary
duration
- duration of the build in millisecondspublic long getProcessingDuration()
ResultsSummary
getProcessingDuration
in interface ResultsSummary
getProcessingDuration
in interface ResultStatisticsProvider
public void setProcessingDuration(long processingDuration)
setProcessingDuration
in interface ResultsSummary
@Nullable public java.util.Date getPlanCompletedDate()
getPlanCompletedDate
in interface ResultsSummary
public void setPlanCompletedDate(@NotNull java.util.Date completionDate)
ResultsSummary
setPlanCompletedDate
in interface ResultsSummary
@Nullable public java.util.Date getBuildCancelledDate()
ResultsSummary
getBuildCancelledDate
in interface ResultsSummary
public void setBuildCancelledDate(java.util.Date buildCancelledDate)
setBuildCancelledDate
in interface ResultsSummary
@NotNull public java.lang.String getChangesListSummary()
getChangesListSummary
in interface ResultsSummary
protected TriggerManager getTriggerManager()
getTriggerManager
in class BaseResultSummary
public BuildState getBuildState()
ResultStatisticsProvider
getBuildState
in interface ResultStatisticsProvider
public void setBuildState(BuildState buildState)
public LifeCycleState getLifeCycleState()
getLifeCycleState
in interface ResultsSummary
public void setLifeCycleState(LifeCycleState lifeCycleState)
public void updateLifeCycleState(@NotNull LifeCycleState lifeCycleState, @NotNull BuildState buildState)
ResultsSummary
updateLifeCycleState
in interface ResultsSummary
lifeCycleState
- lifeCycleState to be setbuildState
- buildState to be setpublic java.lang.String getDiscriminator()
public void setDiscriminator(java.lang.String discriminator)
@NotNull public java.util.List<Comment> getComments()
ResultsSummary
getComments
in interface ResultsSummary
@NotNull public java.util.List<RepositoryChangeset> getRepositoryChangesets()
getRepositoryChangesets
in interface ResultsSummary
@NotNull public java.util.List<VariableSubstitution> getSubstitutedVariables()
ResultsSummary
getSubstitutedVariables
in interface ResultsSummary
public void setSubstitutedVariables(java.util.List<VariableSubstitution> substitutedVariables)
@NotNull public java.util.List<VariableContextSnapshot> getVariableContextLogs()
getVariableContextLogs
in interface ResultsSummary
public void setVariableContextLogs(java.util.List<VariableContextSnapshot> variableContextLogs)
@NotNull public TestResultsSummary getTestResultsSummary()
getTestResultsSummary
in interface ResultsSummary
public void setTestResultsSummary(@NotNull TestResultsSummary testResultsSummary)
ResultsSummary
setTestResultsSummary
in interface ResultsSummary
testResultsSummary
- the test summary information@NotNull public java.util.List<TestClassResult> getTestClassResults()
public void resetTestClassResults(@NotNull java.util.List<TestClassResult> testClassResults)
ResultsSummary
resetTestClassResults
in interface ResultsSummary
testClassResults
- to setpublic java.lang.Long getStageResultId()
public void setStageResultId(java.lang.Long stageResultId)
public int getRestartCount()
ResultsSummary
getRestartCount
in interface ResultsSummary
public int incrementRestartCount()
ResultsSummary
incrementRestartCount
in interface ResultsSummary
public void setRestartCount(int restartCount)
@NotNull public PlanKey getPlanKey()
ResultsSummary
getPlanKey
in interface ResultsSummary
public void setPlanKey(PlanKey planKey)
setPlanKey
in interface MutableBuildKeyResultsSummary
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |