|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.core.bean.EntityObject
com.atlassian.bamboo.core.BambooEntityObject
com.atlassian.bamboo.resultsummary.AbstractResultsSummary
public abstract class AbstractResultsSummary
| Field Summary | |
|---|---|
protected BuildState |
buildState
|
protected LifeCycleState |
lifeCycleState
|
| Fields inherited from class com.atlassian.bamboo.core.BambooEntityObject |
|---|
id |
| Constructor Summary | |
|---|---|
AbstractResultsSummary()
|
|
| Method Summary | |
|---|---|
int |
compareTo(ResultsSummary resultsSummary)
|
boolean |
equals(java.lang.Object object)
|
java.util.Collection<ArtifactLink> |
getArtifactLinks()
Returns all artifacts. |
java.util.Collection<ArtifactLink> |
getArtifactLinksThatExist()
This returns live view of the getArtifactLinks() |
java.lang.Long |
getBuildAgentId()
|
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. |
java.lang.String |
getBuildKey()
Full key of the plan. |
int |
getBuildNumber()
|
java.lang.String |
getBuildResultKey()
A full build result key e.g. |
BuildState |
getBuildState()
|
java.lang.String |
getBuildTime()
When did the build start? |
java.lang.String |
getChangesListSummary()
Human readable summary of ResultsSummary.getCommits()
Note that if you fetched this result from Lucene that accessing this property will cause a database hit |
java.util.List<Comment> |
getComments()
Gets the associated user comments for the build |
java.util.Set<Commit> |
getCommits()
Any Commits related to this BuildResultsSummary
Note that if you fetched this result from Lucene that accessing this property will cause a database hit |
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 millisecods |
java.lang.String |
getDurationDescription()
Returns the duration in a "pretty" format. |
double |
getDurationInSeconds()
|
long |
getFailedTestCount()
Deprecated. |
java.util.Set<LinkedJiraIssue> |
getFixingJiraIssues()
Return JIRA issues that this build result summary fixes |
java.util.Set<java.lang.String> |
getJiraIssueKeys()
Returns all the JIRA issue keys linked to this build 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 |
java.util.List<java.lang.String> |
getLabelNames()
A shortcust method to get all of the label names from the labbellings |
LifeCycleState |
getLifeCycleState()
|
java.lang.String |
getLongReasonSummary()
|
Plan |
getPlan()
Gets the Plan that this result belongs directly belongs to |
java.util.Date |
getPlanCompletedDate()
|
PlanResultKey |
getPlanResultKey()
Gets the PlanResultKey for this BuildResultsSummary |
java.util.Date |
getQueueTime()
Date when build was queued. |
java.lang.String |
getReasonSummary()
|
java.util.Set<LinkedJiraIssue> |
getRelatedJiraIssues()
Returns JIRA issues that are related to this build result. |
java.lang.String |
getRelativeBuildDate()
|
java.lang.String |
getRelativeBuildDate(java.util.Date comparedTo)
Provides a relative build date, such as 2 hours ago. |
java.lang.String |
getShortReasonSummary()
|
long |
getSuccessfulTestCount()
Deprecated. |
java.util.List<TestClassResult> |
getTestClassResults()
|
TestResultsSummary |
getTestResultsSummary()
|
java.lang.String |
getTestSummary()
|
com.opensymphony.xwork.TextProvider |
getTextProvider()
|
java.lang.Long |
getTimeToFix()
A stored version of how long (milli seconds) it took for this build to fix a failure. |
TriggerReason |
getTriggerReason()
Why the build was was triggered |
java.lang.String |
getTriggerReasonKey()
|
protected TriggerReasonManager |
getTriggerReasonManager()
|
java.util.Set |
getUniqueAuthors()
A shortcut method to get the unique set of authors contributing to this build. |
java.lang.String |
getVcsRevisionKey()
The string representing the revision when the build was run. |
boolean |
hasChanges()
Whether a build had changes or not |
boolean |
hasComments()
Checks if the result has any user comments for the build |
int |
hashCode()
|
boolean |
isActive()
Shortcut method to see if ResultsSummary.getLifeCycleState() is LifeCycleState.PENDING or LifeCycleState.QUEUED or LifeCycleState.IN_PROGRESS |
boolean |
isFailed()
Shortcut method to see if ResultStatisticsProvider.getBuildState() is BuildState.FAILED |
boolean |
isFinished()
Shortcut method to see if ResultsSummary.getLifeCycleState() is LifeCycleState.FINISHED |
boolean |
isInProgress()
Shortcut method to see if ResultsSummary.getLifeCycleState() is LifeCycleState.IN_PROGRESS |
boolean |
isNotBuilt()
Shortcut method to see if ResultsSummary.getLifeCycleState() is LifeCycleState.NOT_BUILT |
boolean |
isPending()
Shortcut method to see if ResultsSummary.getLifeCycleState() is LifeCycleState.PENDING |
boolean |
isQueued()
Shortcut method to see if ResultsSummary.getLifeCycleState() is LifeCycleState.QUEUED |
boolean |
isSuccessful()
Shortcut method to see if ResultStatisticsProvider.getBuildState() is BuildState.SUCCESS |
boolean |
isWaiting()
Shortcut method to see if ResultsSummary.getLifeCycleState() is LifeCycleState.PENDING or LifeCycleState.QUEUED |
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 |
setCommits(java.util.Set<Commit> commits)
|
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 |
setQueueTime(java.util.Date queueTime)
|
void |
setTestResultsSummary(TestResultsSummary testResultsSummary)
Set the test summary information from this build |
void |
setTextProvider(com.opensymphony.xwork.TextProvider textProvider)
|
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 |
setTriggerReasonManager(TriggerReasonManager triggerReasonManager)
|
void |
setVcsRevisionKey(java.lang.String vcsRevisionKey)
|
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 |
|---|
getId, setId |
| Field Detail |
|---|
protected BuildState buildState
protected LifeCycleState lifeCycleState
| Constructor Detail |
|---|
public AbstractResultsSummary()
| Method Detail |
|---|
@NotNull public PlanResultKey getPlanResultKey()
ResultsSummaryPlanResultKey for this BuildResultsSummary
getPlanResultKey in interface ResultsSummary@NotNull public Plan getPlan()
ResultsSummaryPlan that this result belongs directly belongs to
getPlan in interface ResultsSummary@NotNull public java.lang.String getBuildResultKey()
ResultsSummary
getBuildResultKey in interface ResultsSummary@Nullable public java.lang.String getVcsRevisionKey()
ResultsSummaryRepository specific, so may not correspond
and thus be parseable by the current repository configuration. May return null since this data is not always available
getVcsRevisionKey in interface ResultsSummarypublic void setVcsRevisionKey(java.lang.String vcsRevisionKey)
setVcsRevisionKey in interface ResultsSummary@NotNull public java.lang.String getDurationDescription()
ResultsSummary
getDurationDescription in interface ResultsSummarypublic java.lang.String getRelativeBuildDate()
getRelativeBuildDate in interface ResultsSummarypublic java.lang.String getRelativeBuildDate(java.util.Date comparedTo)
getRelativeBuildDate in interface ResultsSummarypublic java.lang.String getShortReasonSummary()
getShortReasonSummary in interface ResultsSummarypublic java.lang.String getReasonSummary()
getReasonSummary in interface ResultsSummarypublic java.lang.String getLongReasonSummary()
public boolean isFailed()
ResultsSummaryResultStatisticsProvider.getBuildState() is BuildState.FAILED
isFailed in interface ResultsSummarypublic boolean isSuccessful()
ResultsSummaryResultStatisticsProvider.getBuildState() is BuildState.SUCCESS
isSuccessful in interface ResultsSummarypublic boolean isPending()
ResultsSummaryResultsSummary.getLifeCycleState() is LifeCycleState.PENDING
isPending in interface ResultsSummarypublic boolean isQueued()
ResultsSummaryResultsSummary.getLifeCycleState() is LifeCycleState.QUEUED
isQueued in interface ResultsSummarypublic boolean isInProgress()
ResultsSummaryResultsSummary.getLifeCycleState() is LifeCycleState.IN_PROGRESS
isInProgress in interface ResultsSummarypublic boolean isNotBuilt()
ResultsSummaryResultsSummary.getLifeCycleState() is LifeCycleState.NOT_BUILT
isNotBuilt in interface ResultsSummarypublic boolean isFinished()
ResultsSummaryResultsSummary.getLifeCycleState() is LifeCycleState.FINISHED
isFinished in interface ResultsSummarypublic boolean isWaiting()
ResultsSummaryResultsSummary.getLifeCycleState() is LifeCycleState.PENDING or LifeCycleState.QUEUED
isWaiting in interface ResultsSummarypublic boolean isActive()
ResultsSummaryResultsSummary.getLifeCycleState() is LifeCycleState.PENDING or LifeCycleState.QUEUED or LifeCycleState.IN_PROGRESS
isActive in interface ResultsSummary@NotNull public java.util.Set<LinkedJiraIssue> getFixingJiraIssues()
ResultsSummary
getFixingJiraIssues in interface ResultsSummary@NotNull public java.util.Set<LinkedJiraIssue> getRelatedJiraIssues()
ResultsSummary
getRelatedJiraIssues in interface ResultsSummarypublic boolean hasChanges()
ResultsSummary
hasChanges in interface ResultsSummary@NotNull public java.lang.String getBuildKey()
ResultsSummary
getBuildKey in interface ResultsSummarypublic void setBuildKey(java.lang.String buildKey)
setBuildKey in interface MutableBuildKeyResultsSummarypublic int getBuildNumber()
getBuildNumber in interface ResultStatisticsProviderpublic void setBuildNumber(int buildNumber)
public java.util.Date getBuildDate()
getBuildDate in interface ResultStatisticsProviderpublic void setBuildDate(java.util.Date buildDate)
setBuildDate in interface ResultsSummarypublic java.util.Date getQueueTime()
getQueueTime in interface ResultsSummarypublic void setQueueTime(java.util.Date queueTime)
setQueueTime in interface ResultsSummarypublic java.util.Date getBuildCompletedDate()
ResultsSummary
getBuildCompletedDate in interface ResultsSummarypublic void setBuildCompletedDate(java.util.Date buildCompletedDate)
public DeltaState getDeltaState()
ResultsSummaryDeltaState of the summary. It can be a build that fixes, breaks, failing, successfull. Provides a status
relative to the previous summary.
getDeltaState in interface ResultsSummarypublic void setDeltaState(DeltaState deltaState)
ResultsSummaryDeltaState for the summary. Provides a status relative to the previous summary.
setDeltaState in interface ResultsSummarydeltaState - - the relative status for this summarypublic java.util.Set<java.lang.String> getJiraIssueKeys()
ResultsSummary
getJiraIssueKeys in interface ResultsSummary@NotNull public java.util.Set<LinkedJiraIssue> getJiraIssues()
ResultsSummary
getJiraIssues in interface ResultsSummarypublic void setJiraIssues(java.util.Set jiraIssues)
@NotNull public java.util.Map<java.lang.String,java.lang.String> getCustomBuildData()
ResultsSummary
getCustomBuildData in interface ResultsSummarypublic void setCustomBuildData(java.util.Map<java.lang.String,java.lang.String> customBuildData)
public java.lang.Long getTimeToFix()
ResultsSummary
getTimeToFix in interface ResultsSummarypublic void setTimeToFix(java.lang.Long timeToFix)
ResultsSummary
setTimeToFix in interface ResultsSummarytimeToFix - how long (milli seconds) it took for this build to fix a failure.public java.util.List<Labelling> getLabellings()
ResultsSummary
getLabellings in interface ResultsSummarypublic void setLabellings(java.util.List<Labelling> labellings)
@NotNull public java.util.List<java.lang.String> getLabelNames()
ResultsSummary
getLabelNames in interface ResultsSummarypublic void setComments(java.util.List<Comment> comments)
@NotNull public java.util.Collection<ArtifactLink> getArtifactLinks()
ResultsSummary
getArtifactLinks in interface ResultsSummarypublic void setArtifactLinks(java.util.List<ArtifactLink> artifactLinks)
public java.util.Set getUniqueAuthors()
ResultsSummary
getUniqueAuthors in interface ResultsSummarySet of Authorspublic java.lang.String getTriggerReasonKey()
public void setTriggerReasonKey(java.lang.String triggerReasonKey)
@NotNull public TriggerReason getTriggerReason()
ResultsSummary
getTriggerReason in interface ResultsSummarypublic void setTriggerReason(TriggerReason triggerReason)
setTriggerReason in interface ResultsSummarypublic java.lang.Long getBuildAgentId()
public void setBuildAgentId(java.lang.Long buildAgentId)
public double getDurationInSeconds()
getDurationInSeconds in interface ResultStatisticsProviderpublic java.util.Collection<ArtifactLink> getArtifactLinksThatExist()
getArtifactLinksThatExist in interface ResultsSummarypublic long getDuration()
ResultsSummary
getDuration in interface ResultsSummarypublic void setDuration(long duration)
setDuration in interface ResultsSummaryduration - duration of the build in milliseconds@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 ResultsSummarypublic void setBuildCancelledDate(java.util.Date buildCancelledDate)
setBuildCancelledDate in interface ResultsSummarypublic java.lang.String getBuildTime()
getBuildTime in interface ResultsSummary@NotNull public java.util.Set<Commit> getCommits()
ResultsSummaryCommits related to this BuildResultsSummary
Note that if you fetched this result from Lucene that accessing this property will cause a database hit
getCommits in interface ResultsSummarypublic void setCommits(java.util.Set<Commit> commits)
@NotNull public java.lang.String getChangesListSummary()
ResultsSummaryResultsSummary.getCommits()
Note that if you fetched this result from Lucene that accessing this property will cause a database hit
getChangesListSummary in interface ResultsSummaryprotected TriggerReasonManager getTriggerReasonManager()
public void setTriggerReasonManager(TriggerReasonManager triggerReasonManager)
public com.opensymphony.xwork.TextProvider getTextProvider()
public void setTextProvider(com.opensymphony.xwork.TextProvider textProvider)
public BuildState getBuildState()
getBuildState in interface ResultStatisticsProviderpublic void setBuildState(BuildState buildState)
public LifeCycleState getLifeCycleState()
getLifeCycleState in interface ResultsSummarypublic void setLifeCycleState(LifeCycleState lifeCycleState)
public void updateLifeCycleState(@NotNull
LifeCycleState lifeCycleState,
@NotNull
BuildState buildState)
ResultsSummary
updateLifeCycleState in interface ResultsSummarylifeCycleState - 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 ResultsSummarypublic boolean hasComments()
ResultsSummary
hasComments in interface ResultsSummary@NotNull public TestResultsSummary getTestResultsSummary()
getTestResultsSummary in interface ResultsSummary@Deprecated public long getFailedTestCount()
ResultsSummaryTestResultsSummary (getTestResultsSummary().getFailedTestCaseCount()) instead
Number of failing tests
getFailedTestCount in interface ResultsSummary@Deprecated public long getSuccessfulTestCount()
ResultsSummaryTestResultsSummary (getTestResultsSummary().getSuccessfulTestCaseCount())instead
Number of successful tests
getSuccessfulTestCount in interface ResultsSummary
public void setTestResultsSummary(@NotNull
TestResultsSummary testResultsSummary)
ResultsSummary
setTestResultsSummary in interface ResultsSummarytestResultsSummary - the test summary information@NotNull public java.lang.String getTestSummary()
getTestSummary in interface ResultsSummary@NotNull public java.util.List<TestClassResult> getTestClassResults()
public void resetTestClassResults(@NotNull
java.util.List<TestClassResult> testClassResults)
ResultsSummary
resetTestClassResults in interface ResultsSummarytestClassResults - to setpublic int compareTo(ResultsSummary resultsSummary)
compareTo in interface java.lang.Comparable<ResultsSummary>public boolean equals(java.lang.Object object)
equals in class com.atlassian.core.bean.EntityObjectpublic int hashCode()
hashCode in class com.atlassian.core.bean.EntityObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||