public class DecoratedErrorDetailsImpl extends Object implements ErrorDetails
| Modifier and Type | Class and Description |
|---|---|
static class |
DecoratedErrorDetailsImpl.AgentIdentifier
View of BuildAgents referenced in a error report.
|
static class |
DecoratedErrorDetailsImpl.RepositoryIdentifier |
static class |
DecoratedErrorDetailsImpl.RepositoryLevel |
| Constructor and Description |
|---|
DecoratedErrorDetailsImpl(ErrorDetails errorDetails,
AgentManager agentManager,
CachedPlanManager cachedPlanManager,
ResultsSummaryManager resultsSummaryManager,
RepositoryDefinitionManager repositoryDefinitionManager,
CachedRepositoryDefinitionManager cachedRepositoryDefinitionManager) |
| Modifier and Type | Method and Description |
|---|---|
List<DecoratedErrorDetailsImpl.AgentIdentifier> |
getAgentIdentifiers() |
Set<Long> |
getAgentIds() |
List<BuildAgent> |
getAgents() |
String |
getBuildKey()
Full key for the build plan (e.g BAMBOO-TRUNK)
|
String |
getBuildName() |
Integer |
getBuildNumber() |
String |
getBuildResultKey()
Full key for the build result (e.g BAMBOO-TRUNK-4)
|
String |
getContext()
Top level message related to error
|
Key |
getEntityKey()
Get entity key associated with this error
|
int |
getErrorNumber() |
Date |
getFirstOccurred() |
List<String> |
getInstanceIds() |
Date |
getLastOccurred() |
int |
getNumberOfOccurrences() |
PlanKey |
getParentPlanKey() |
PartialVcsRepositoryData |
getRepositoryData() |
DecoratedErrorDetailsImpl.RepositoryLevel |
getRepositoryLocationDefinitionLevel() |
ResultKey |
getResultKey()
Get result key associated with this error
|
Integer |
getResultNumber() |
Long |
getResultNumberLong() |
VcsRepositoryData |
getRootRepository() |
ThrowableDetails |
getThrowableDetails()
Contains the details of any
Throwable which may have been thrown in the error |
boolean |
isBuildExists()
Has a build result summary been saved in the data base for this build? Errors may short circuit the rest of the
build process so a build may not get saved.
|
boolean |
isBuildSpecific()
Is this error specific to one plan (true) or for all/any plans (false) e.g.
|
boolean |
isChainBranch() |
boolean |
isElastic() |
public DecoratedErrorDetailsImpl(@NotNull
ErrorDetails errorDetails,
@NotNull
AgentManager agentManager,
@NotNull
CachedPlanManager cachedPlanManager,
@NotNull
ResultsSummaryManager resultsSummaryManager,
@NotNull
RepositoryDefinitionManager repositoryDefinitionManager,
@NotNull
CachedRepositoryDefinitionManager cachedRepositoryDefinitionManager)
@Nullable public String getBuildKey()
ErrorDetailsgetBuildKey in interface ErrorDetails@Nullable public Key getEntityKey()
ErrorDetailsgetEntityKey in interface ErrorDetails@Nullable public Integer getBuildNumber()
getBuildNumber in interface ErrorDetails@Nullable public Integer getResultNumber()
getResultNumber in interface ErrorDetails@Nullable public Long getResultNumberLong()
getResultNumberLong in interface ErrorDetailspublic boolean isBuildSpecific()
ErrorDetailsisBuildSpecific in interface ErrorDetailspublic int getErrorNumber()
getErrorNumber in interface ErrorDetailspublic String getBuildResultKey()
ErrorDetailsgetBuildResultKey in interface ErrorDetails@Nullable public ResultKey getResultKey()
ErrorDetailsgetResultKey in interface ErrorDetails@NotNull public Date getFirstOccurred()
getFirstOccurred in interface ErrorDetails@NotNull public Date getLastOccurred()
getLastOccurred in interface ErrorDetailsErrorDetails.getFirstOccurred())public Set<Long> getAgentIds()
getAgentIds in interface ErrorDetailspublic String getContext()
ErrorDetailsgetContext in interface ErrorDetailspublic int getNumberOfOccurrences()
getNumberOfOccurrences in interface ErrorDetails@Nullable public ThrowableDetails getThrowableDetails()
ErrorDetailsThrowable which may have been thrown in the errorgetThrowableDetails in interface ErrorDetailsThrowable for this errorpublic List<BuildAgent> getAgents()
public String getBuildName()
public PlanKey getParentPlanKey()
public boolean isBuildExists()
public boolean isElastic()
public List<DecoratedErrorDetailsImpl.AgentIdentifier> getAgentIdentifiers()
public PartialVcsRepositoryData getRepositoryData()
public VcsRepositoryData getRootRepository()
public DecoratedErrorDetailsImpl.RepositoryLevel getRepositoryLocationDefinitionLevel()
public boolean isChainBranch()
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.