|
||||||||||
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.plan.cache.ImmutableResultsSummary
public class ImmutableResultsSummary
Field Summary |
---|
Fields inherited from class com.atlassian.bamboo.resultsummary.BaseResultSummary |
---|
DATE_FORMAT |
Fields inherited from class com.atlassian.bamboo.core.BambooEntityObject |
---|
id |
Constructor Summary | |
---|---|
ImmutableResultsSummary(ChainResultsSummary summary,
TriggerManager triggerManager,
ImmutablePlanManager immutablePlanManager,
CommentManager commentManager,
ResultsSummaryManager resultsSummaryManager)
|
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<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()
When the build was executed |
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. |
long |
getDuration()
Duration of the build in milliseconds |
java.util.List<BuildResultsSummary> |
getFailedJobResults()
Get a list of all failed job Results in this chain result |
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()
|
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.Date |
getPlanCompletedDate()
|
PlanKey |
getPlanKey()
Full key of the plan. |
long |
getProcessingDuration()
Duration of actual build processing in miliseconds |
java.util.Date |
getQueueTime()
When the build queued |
java.lang.String |
getReasonSummary()
|
java.util.List<RepositoryChangeset> |
getRepositoryChangesets()
|
int |
getRestartCount()
Return the number of build restart attempts |
java.util.List<ChainStageResult> |
getStageResults()
Get all the ChainStageResult 's associated with this ChainResultsSummary |
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 |
FilteredTestResults<TestClassResultDescriptor> |
getTestResults()
Get the helper class to provide filtered test lists for this chain result |
TestResultsSummary |
getTestResultsSummary()
|
java.lang.Long |
getTimeToFix()
A stored version of how long (milli seconds) it took for this build to fix a failure. |
int |
getTotalJobCount()
|
protected TriggerManager |
getTriggerManager()
|
TriggerReason |
getTriggerReason()
Why the build was was triggered |
java.util.List<VariableContextSnapshot> |
getVariableContextLogs()
|
int |
incrementRestartCount()
Increments number of build restarts and returns the new value |
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 |
resetTestClassResults(java.util.List<TestClassResult> testClassResults)
Overrides all current testClassResults with the new ones |
void |
setBuildAgentId(java.lang.Long buildAgentId)
|
void |
setBuildCancelledDate(java.util.Date buildCancelledDate)
|
void |
setBuildCompletedDate(java.util.Date completionDate)
|
void |
setBuildDate(java.util.Date buildDate)
|
void |
setContinuable(boolean continuable)
|
void |
setDeltaState(DeltaState deltaState)
Sets the DeltaState for the summary. |
void |
setDuration(long duration)
|
void |
setMarkedForDeletion(boolean markedForDeletion)
|
void |
setMergeResult(MergeResultSummary mergeResult)
Note: this API is experimental. |
void |
setPlanCompletedDate(java.util.Date completionDate)
Sets the time when build finished. |
void |
setProcessingDuration(long processingDuration)
|
void |
setQueueTime(java.util.Date queueDate)
|
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 |
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.core.BambooObject |
---|
setId |
Methods inherited from interface com.atlassian.bamboo.core.BambooIdProvider |
---|
getId |
Methods inherited from interface com.atlassian.bamboo.resultsummary.ResultStatisticsProvider |
---|
getDurationInSeconds, getStatDate |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Constructor Detail |
---|
public ImmutableResultsSummary(ChainResultsSummary summary, TriggerManager triggerManager, ImmutablePlanManager immutablePlanManager, CommentManager commentManager, ResultsSummaryManager resultsSummaryManager)
Method Detail |
---|
@NotNull public java.util.List<ChainStageResult> getStageResults()
ChainResultsSummary
ChainStageResult
's associated with this ChainResultsSummary
getStageResults
in interface ChainResultsSummary
public FilteredTestResults<TestClassResultDescriptor> getTestResults()
ChainResultsSummary
getTestResults
in interface ChainResultsSummary
@NotNull public java.util.List<BuildResultsSummary> getFailedJobResults()
ChainResultsSummary
getFailedJobResults
in interface ChainResultsSummary
public int getTotalJobCount()
getTotalJobCount
in interface ChainResultsSummary
@NotNull public java.util.List<ResultsSummary> getOrderedJobResultSummaries()
ChainResultsSummary
ResultsSummary
related to chain result summary
Summaries are ordered by stages
getOrderedJobResultSummaries
in interface ChainResultsSummary
public boolean isContinuable()
ChainResultsSummary
Chain
execution has been stopped on manual stage and is waiting for user action
isContinuable
in interface ChainResultsSummary
public boolean isRestartable()
ChainResultsSummary
Chain
execution has been failed and could be restarted from failure place
isRestartable
in interface ChainResultsSummary
public void setContinuable(boolean continuable)
setContinuable
in interface ChainResultsSummary
@NotNull public ChainStageResult createStageResult(@NotNull ImmutableChainStage chainStage)
ChainResultsSummary
ChainStageResult
and associates it with the ChainResultsSummary
createStageResult
in interface ChainResultsSummary
chainStage
- the Stage related to result
public boolean addStageResult(@NotNull ChainStageResult chainStageResult)
ChainResultsSummary
addStageResult
in interface ChainResultsSummary
public boolean removeStageResult(@NotNull ChainStageResult chainStageResult)
ChainResultsSummary
removeStageResult
in interface ChainResultsSummary
@NotNull public Chain getPlan()
ResultsSummary
Plan
that this result belongs directly belongs to
getPlan
in interface ChainResultsSummary
getPlan
in interface ResultsSummary
public boolean isNotRunYet()
ResultsSummary
isNotRunYet
in interface ResultsSummary
public boolean isMarkedForDeletion()
isMarkedForDeletion
in interface ImmutableDeletable
@NotNull public java.util.List<ArtifactLink> getArtifactLinks()
ResultsSummary
getArtifactLinks
in interface ResultsSummary
public java.util.Date getBuildCancelledDate()
ResultsSummary
getBuildCancelledDate
in interface ResultsSummary
public java.util.Date getBuildCompletedDate()
ResultsSummary
getBuildCompletedDate
in interface ResultsSummary
public java.util.Date getBuildDate()
ResultStatisticsProvider
getBuildDate
in interface ResultStatisticsProvider
public int getBuildNumber()
ResultStatisticsProvider
getBuildNumber
in interface ResultStatisticsProvider
public BuildState getBuildState()
ResultStatisticsProvider
getBuildState
in interface ResultStatisticsProvider
@NotNull public java.lang.String getChangesListSummary()
getChangesListSummary
in interface ResultsSummary
@NotNull public java.util.List<Comment> getComments()
ResultsSummary
getComments
in interface ResultsSummary
public java.util.List<Comment> getCommentsToDisplay()
ResultsSummary
getCommentsToDisplay
in interface ResultsSummary
@NotNull public java.util.Map<java.lang.String,java.lang.String> getCustomBuildData()
ResultsSummary
getCustomBuildData
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 long getDuration()
ResultsSummary
getDuration
in interface ResultsSummary
getDuration
in interface ResultStatisticsProvider
@NotNull public java.util.Set<LinkedJiraIssue> getJiraIssues()
ResultsSummary
getJiraIssues
in interface ResultsSummary
public java.util.List<Labelling> getLabellings()
ResultsSummary
getLabellings
in interface ResultsSummary
public LifeCycleState getLifeCycleState()
getLifeCycleState
in interface ResultsSummary
@NotNull public PlanKey getPlanKey()
ResultsSummary
getPlanKey
in interface ResultsSummary
public long getProcessingDuration()
ResultsSummary
getProcessingDuration
in interface ResultsSummary
getProcessingDuration
in interface ResultStatisticsProvider
public java.util.Date getQueueTime()
ResultsSummary
getQueueTime
in interface ResultsSummary
public java.lang.String getReasonSummary()
getReasonSummary
in interface ResultsSummary
@NotNull public java.util.List<RepositoryChangeset> getRepositoryChangesets()
getRepositoryChangesets
in interface ResultsSummary
public int getRestartCount()
ResultsSummary
getRestartCount
in interface ResultsSummary
@NotNull public java.util.List<ConsumedSubscription> getSubscriptions()
ResultsSummary
ConsumedSubscription
getSubscriptions
in interface ResultsSummary
@NotNull public java.util.List<VariableSubstitution> getSubstitutedVariables()
ResultsSummary
getSubstitutedVariables
in interface ResultsSummary
@NotNull public TestResultsSummary getTestResultsSummary()
getTestResultsSummary
in interface ResultsSummary
public java.lang.Long getTimeToFix()
ResultsSummary
getTimeToFix
in interface ResultsSummary
@NotNull public TriggerReason getTriggerReason()
ResultsSummary
getTriggerReason
in interface ResultsSummary
@NotNull public java.util.List<VariableContextSnapshot> getVariableContextLogs()
getVariableContextLogs
in interface ResultsSummary
public java.util.Date getPlanCompletedDate()
getPlanCompletedDate
in interface ResultsSummary
protected TriggerManager getTriggerManager()
getTriggerManager
in class BaseResultSummary
public MergeResultSummary getMergeResult()
ChainResultsSummary
getMergeResult
in interface ChainResultsSummary
public void setBuildAgentId(java.lang.Long buildAgentId)
setBuildAgentId
in interface ResultsSummary
public java.lang.Long getBuildAgentId()
ResultsSummary
getBuildAgentId
in interface ResultsSummary
public int incrementRestartCount()
ResultsSummary
incrementRestartCount
in interface ResultsSummary
public void setBuildCompletedDate(java.util.Date completionDate)
setBuildCompletedDate
in interface ResultsSummary
public void resetTestClassResults(@NotNull java.util.List<TestClassResult> testClassResults)
ResultsSummary
resetTestClassResults
in interface ResultsSummary
testClassResults
- to setpublic void setBuildCancelledDate(java.util.Date buildCancelledDate)
setBuildCancelledDate
in interface ResultsSummary
public void setBuildDate(java.util.Date buildDate)
setBuildDate
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 summarypublic void setDuration(long duration)
setDuration
in interface ResultsSummary
duration
- duration of the build in millisecondspublic void setMarkedForDeletion(boolean markedForDeletion)
setMarkedForDeletion
in interface Deletable
public void setPlanCompletedDate(@NotNull java.util.Date completionDate)
ResultsSummary
setPlanCompletedDate
in interface ResultsSummary
public void setProcessingDuration(long processingDuration)
setProcessingDuration
in interface ResultsSummary
public void setQueueTime(java.util.Date queueDate)
setQueueTime
in interface ResultsSummary
public void setTestResultsSummary(@NotNull TestResultsSummary testResultsSummary)
ResultsSummary
setTestResultsSummary
in interface ResultsSummary
testResultsSummary
- the test summary informationpublic 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 void setTriggerReason(TriggerReason triggerReason)
setTriggerReason
in interface ResultsSummary
public void updateLifeCycleState(@NotNull LifeCycleState lifeCycleState, @NotNull BuildState buildState)
ResultsSummary
updateLifeCycleState
in interface ResultsSummary
lifeCycleState
- lifeCycleState to be setbuildState
- buildState to be setpublic void setMergeResult(@Nullable MergeResultSummary mergeResult)
ChainResultsSummary
setMergeResult
in interface ChainResultsSummary
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |