|
||||||||||
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.AbstractResultsSummary com.atlassian.bamboo.index.BuildResultsSummaryDocument
public class BuildResultsSummaryDocument
A lucene implementation of an AbstractResultsSummary
which mirrors the BuildResultsSummary
object closely.
Field Summary | |
---|---|
static java.util.List<java.lang.String> |
CUSTOM_DATA_MAP_KEYS_TO_INDEX
|
static java.lang.String |
DOCTYPE_BUILD_RESULT
|
static java.lang.String |
FIELD_ARTIFACTS
|
static java.lang.String |
FIELD_AUTHORS
|
static java.lang.String |
FIELD_AUTHORS_LINKED_USER_SUFFIX
|
static java.lang.String |
FIELD_BUILD_AGENT_ID
|
static java.lang.String |
FIELD_BUILD_ID
|
static java.lang.String |
FIELD_BUILD_KEY
|
static java.lang.String |
FIELD_BUILD_NUMBER
|
static java.lang.String |
FIELD_BUILD_RESULT_ID
ID term that gets added to both test and build result documents |
static java.lang.String |
FIELD_COMMENT_CONTENT
|
static java.lang.String |
FIELD_COMMENT_DATE
|
static java.lang.String |
FIELD_COMMENT_USERNAME
|
static java.lang.String |
FIELD_COMPLETED_TIMESTAMP
|
static java.lang.String |
FIELD_CUSTOM_DATA_PREFIX
|
static java.lang.String |
FIELD_DELTA_STATE
|
static java.lang.String |
FIELD_DOC_TYPE
|
static java.lang.String |
FIELD_DURATION
|
static java.lang.String |
FIELD_ID
IF term that only gets addded build results documents |
static java.lang.String |
FIELD_JIRA_ISSUE_KEY
|
static java.lang.String |
FIELD_JIRA_ISSUE_KEY_FIXES
|
static java.lang.String |
FIELD_JIRA_PROJECT_KEY
|
static java.lang.String |
FIELD_LABELS
|
static java.lang.String |
FIELD_LIFE_CYCLE_STATE
|
static java.lang.String |
FIELD_QUEUE_TIME
|
static java.lang.String |
FIELD_STATE
|
static java.lang.String |
FIELD_TESTS_BROKEN_COUNT
|
static java.lang.String |
FIELD_TESTS_EXISTING_COUNT
|
static java.lang.String |
FIELD_TESTS_FAILED_COUNT
|
static java.lang.String |
FIELD_TESTS_FIXED_COUNT
|
static java.lang.String |
FIELD_TESTS_SUCCESS_COUNT
|
static java.lang.String |
FIELD_TESTS_TOTAL_COUNT
|
static java.lang.String |
FIELD_TIME_TO_FIX
|
static java.lang.String |
FIELD_TIMESTAMP
|
static java.lang.String |
FIELD_TIMESTAMP_DAY
|
static java.lang.String |
FIELD_TRIGGER_REASON_KEY
|
static java.lang.String |
FIELD_TYPE
|
static java.lang.String |
FIELD_VCS_REVISION_KEY
|
static java.lang.String |
FIELD_VCS_UPDATE_TIME
|
Fields inherited from class com.atlassian.bamboo.resultsummary.AbstractResultsSummary |
---|
buildState, lifeCycleState |
Fields inherited from class com.atlassian.bamboo.core.BambooEntityObject |
---|
id |
Constructor Summary | |
---|---|
BuildResultsSummaryDocument(org.apache.lucene.document.Document doc,
BuildResultsSummaryManager buildResultsSummaryManager)
|
Method Summary | |
---|---|
boolean |
addStageResult(ChainStageResult chainStageResult)
Add a stage result |
int |
compareTo(ResultsSummary obj)
|
ChainStageResult |
createStageResult(ChainStage chainStage)
Create a new ChainStageResult and associates it with the ChainResultsSummary |
boolean |
equals(java.lang.Object object)
|
java.util.Collection<ArtifactLink> |
getArtifactLinks()
Returns all artifacts associated with this build. |
ChainResultsSummary |
getChainResultsSummary()
Not available from Lucene |
java.util.List<Comment> |
getComments()
Gets the associated user comments for the build |
java.util.Set<Commit> |
getCommits()
Any Commit s related to this BuildResultsSummary
Note that if you fetched this result from Lucene that accessing this property will cause a database hit |
ExtraBuildResultsData |
getExtraBuildResultsData()
Allow access to ExtraBuildResultsData |
java.util.List<BuildResultsSummary> |
getFailedJobResults()
Get a list of all failed job Results in this chain result |
FilteredTestResults |
getFilteredTestResults()
Return a filtered view of all the tests that ran in this build. |
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 |
java.util.List<ResultsSummary> |
getOrderedJobResultSummaries()
Returns all jobs ResultsSummary related to chain result summary
Summaries are ordered by stages |
java.util.Collection<ArtifactLink> |
getProducedArtifactLinks()
Returns all artifacts produced by this build. |
long |
getQueueDuration()
How long build was in the queue (in miliseconds) |
java.util.Date |
getQueueTime()
Date when build was queued. |
java.util.List<ChainStageResult> |
getStageResults()
Get all the ChainStageResult 's associated with this ChainResultsSummary |
FilteredTestResults |
getTestResults()
Get the helper class to provide filtered test lists for this chain result |
int |
getTotalJobCount()
|
java.util.Set<Author> |
getUniqueAuthors()
A shortcut method to get the unique set of authors contributing to this build. |
long |
getVcsUpdateDuration()
How long checkout take (in miliseconds) |
java.util.Date |
getVcsUpdateTime()
When the source syncronisation was kicked off |
int |
hashCode()
|
boolean |
removeStageResult(ChainStageResult chainStageResult)
Remove a stage result |
void |
resetTestClassResults(java.util.List<TestClassResult> testClassResults)
Overrides all current testClassResults with the new ones |
void |
setChainResultsSummary(ChainResultsSummary chainResultSummary)
|
void |
setQueueTime(java.util.Date queueTime)
|
void |
setVcsUpdateTime(java.util.Date vcsUpdateTime)
|
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.core.BambooObject |
---|
getId, setId |
Methods inherited from interface com.atlassian.bamboo.resultsummary.ResultStatisticsProvider |
---|
getBuildDate, getBuildNumber, getBuildState, getDurationInSeconds, getStatDate |
Field Detail |
---|
public static final java.lang.String FIELD_ID
public static final java.lang.String FIELD_BUILD_RESULT_ID
public static final java.lang.String FIELD_BUILD_NUMBER
public static final java.lang.String FIELD_BUILD_KEY
public static final java.lang.String FIELD_BUILD_ID
public static final java.lang.String FIELD_STATE
public static final java.lang.String FIELD_LIFE_CYCLE_STATE
public static final java.lang.String FIELD_TIMESTAMP
public static final java.lang.String FIELD_COMPLETED_TIMESTAMP
public static final java.lang.String FIELD_TIMESTAMP_DAY
public static final java.lang.String FIELD_DOC_TYPE
public static final java.lang.String DOCTYPE_BUILD_RESULT
public static final java.lang.String FIELD_DURATION
public static final java.lang.String FIELD_JIRA_ISSUE_KEY
public static final java.lang.String FIELD_JIRA_ISSUE_KEY_FIXES
public static final java.lang.String FIELD_JIRA_PROJECT_KEY
public static final java.lang.String FIELD_AUTHORS
public static final java.lang.String FIELD_AUTHORS_LINKED_USER_SUFFIX
public static final java.lang.String FIELD_TRIGGER_REASON_KEY
public static final java.lang.String FIELD_DELTA_STATE
public static final java.lang.String FIELD_LABELS
public static final java.lang.String FIELD_TIME_TO_FIX
public static final java.lang.String FIELD_VCS_REVISION_KEY
public static final java.lang.String FIELD_BUILD_AGENT_ID
public static final java.lang.String FIELD_ARTIFACTS
public static final java.lang.String FIELD_CUSTOM_DATA_PREFIX
public static final java.lang.String FIELD_COMMENT_CONTENT
public static final java.lang.String FIELD_COMMENT_USERNAME
public static final java.lang.String FIELD_COMMENT_DATE
public static final java.lang.String FIELD_TESTS_SUCCESS_COUNT
public static final java.lang.String FIELD_TESTS_FAILED_COUNT
public static final java.lang.String FIELD_TESTS_FIXED_COUNT
public static final java.lang.String FIELD_TESTS_BROKEN_COUNT
public static final java.lang.String FIELD_TESTS_EXISTING_COUNT
public static final java.lang.String FIELD_TESTS_TOTAL_COUNT
public static final java.lang.String FIELD_QUEUE_TIME
public static final java.lang.String FIELD_VCS_UPDATE_TIME
public static final java.lang.String FIELD_TYPE
public static final java.util.List<java.lang.String> CUSTOM_DATA_MAP_KEYS_TO_INDEX
Constructor Detail |
---|
public BuildResultsSummaryDocument(org.apache.lucene.document.Document doc, @NotNull BuildResultsSummaryManager buildResultsSummaryManager)
Method Detail |
---|
public java.util.Date getQueueTime()
AbstractResultsSummary
getQueueTime
in interface ResultsSummary
getQueueTime
in class AbstractResultsSummary
public long getQueueDuration()
BuildResultsSummary
getQueueDuration
in interface BuildResultsSummary
public void setQueueTime(java.util.Date queueTime)
setQueueTime
in interface ResultsSummary
setQueueTime
in class AbstractResultsSummary
public java.util.Date getVcsUpdateTime()
BuildResultsSummary
getVcsUpdateTime
in interface BuildResultsSummary
public long getVcsUpdateDuration()
BuildResultsSummary
getVcsUpdateDuration
in interface BuildResultsSummary
public void setVcsUpdateTime(java.util.Date vcsUpdateTime)
@NotNull public java.util.Set<LinkedJiraIssue> getJiraIssues()
ResultsSummary
getJiraIssues
in interface ResultsSummary
getJiraIssues
in class AbstractResultsSummary
public java.util.Set<java.lang.String> getJiraIssueKeys()
ResultsSummary
getJiraIssueKeys
in interface ResultsSummary
getJiraIssueKeys
in class AbstractResultsSummary
public java.util.Set<Author> getUniqueAuthors()
ResultsSummary
getUniqueAuthors
in interface ResultsSummary
getUniqueAuthors
in class AbstractResultsSummary
Set
of Author
s@NotNull public java.util.Collection<ArtifactLink> getArtifactLinks()
ResultsSummary
getArtifactLinks
in interface ResultsSummary
getArtifactLinks
in class AbstractResultsSummary
@NotNull public java.util.Collection<ArtifactLink> getProducedArtifactLinks()
BuildResultsSummary
getProducedArtifactLinks
in interface BuildResultsSummary
public java.util.List<Labelling> getLabellings()
ResultsSummary
getLabellings
in interface ResultsSummary
getLabellings
in class AbstractResultsSummary
@NotNull public java.util.List<java.lang.String> getLabelNames()
ResultsSummary
getLabelNames
in interface ResultsSummary
getLabelNames
in class AbstractResultsSummary
@NotNull public java.util.List<Comment> getComments()
ResultsSummary
getComments
in interface ResultsSummary
getComments
in class AbstractResultsSummary
@NotNull public java.util.Set<Commit> getCommits()
ResultsSummary
Commit
s 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 ResultsSummary
getCommits
in class AbstractResultsSummary
public ChainResultsSummary getChainResultsSummary()
getChainResultsSummary
in interface BuildResultsSummary
public void setChainResultsSummary(@NotNull ChainResultsSummary chainResultSummary)
setChainResultsSummary
in interface BuildResultsSummary
@NotNull public java.util.List<ChainStageResult> getStageResults()
ChainResultsSummary
ChainStageResult
's associated with this ChainResultsSummary
getStageResults
in interface ChainResultsSummary
@NotNull public ChainStageResult createStageResult(@NotNull ChainStage 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
public int compareTo(ResultsSummary obj)
compareTo
in interface java.lang.Comparable<ResultsSummary>
compareTo
in class AbstractResultsSummary
public boolean equals(java.lang.Object object)
equals
in class AbstractResultsSummary
@NotNull public FilteredTestResults getFilteredTestResults()
BuildResultsSummary
getFilteredTestResults
in interface BuildResultsSummary
public void resetTestClassResults(@NotNull java.util.List<TestClassResult> testClassResults)
ResultsSummary
resetTestClassResults
in interface ResultsSummary
resetTestClassResults
in class AbstractResultsSummary
testClassResults
- to set@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 FilteredTestResults getTestResults()
ChainResultsSummary
getTestResults
in interface ChainResultsSummary
@Nullable public ExtraBuildResultsData getExtraBuildResultsData()
BuildResultsSummary
ExtraBuildResultsData
getExtraBuildResultsData
in interface BuildResultsSummary
public int hashCode()
hashCode
in class AbstractResultsSummary
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |