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(@NotNull ErrorDetails errorDetails,
@NotNull AgentManager agentManager,
@NotNull CachedPlanManager cachedPlanManager,
@NotNull ResultsSummaryManager resultsSummaryManager,
@NotNull RepositoryDefinitionManager repositoryDefinitionManager,
@NotNull CachedRepositoryDefinitionManager cachedRepositoryDefinitionManager) |
Modifier and Type | Method and Description |
---|---|
List<DecoratedErrorDetailsImpl.AgentIdentifier> |
getAgentIdentifiers() |
Set<Long> |
getAgentIds() |
List<BuildAgent> |
getAgents() |
@Nullable String |
getBuildKey()
Full key for the build plan (e.g BAMBOO-TRUNK)
|
String |
getBuildName() |
@Nullable Integer |
getBuildNumber() |
String |
getBuildResultKey()
Full key for the build result (e.g BAMBOO-TRUNK-4)
|
String |
getContext()
Top level message related to error
|
@Nullable Key |
getEntityKey()
Get entity key associated with this error
|
int |
getErrorNumber() |
@NotNull Date |
getFirstOccurred() |
List<String> |
getInstanceIds() |
@NotNull Date |
getLastOccurred() |
int |
getNumberOfOccurrences() |
PlanKey |
getParentPlanKey() |
PartialVcsRepositoryData |
getRepositoryData() |
DecoratedErrorDetailsImpl.RepositoryLevel |
getRepositoryLocationDefinitionLevel() |
@Nullable ResultKey |
getResultKey()
Get result key associated with this error
|
@Nullable Integer |
getResultNumber() |
@Nullable Long |
getResultNumberLong() |
VcsRepositoryData |
getRootRepository() |
@Nullable 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 @NotNull ErrorDetails errorDetails, @NotNull @NotNull AgentManager agentManager, @NotNull @NotNull CachedPlanManager cachedPlanManager, @NotNull @NotNull ResultsSummaryManager resultsSummaryManager, @NotNull @NotNull RepositoryDefinitionManager repositoryDefinitionManager, @NotNull @NotNull CachedRepositoryDefinitionManager cachedRepositoryDefinitionManager)
@Nullable public @Nullable String getBuildKey()
ErrorDetails
getBuildKey
in interface ErrorDetails
@Nullable public @Nullable Key getEntityKey()
ErrorDetails
getEntityKey
in interface ErrorDetails
@Nullable public @Nullable Integer getBuildNumber()
getBuildNumber
in interface ErrorDetails
@Nullable public @Nullable Integer getResultNumber()
getResultNumber
in interface ErrorDetails
@Nullable public @Nullable Long getResultNumberLong()
getResultNumberLong
in interface ErrorDetails
public boolean isBuildSpecific()
ErrorDetails
isBuildSpecific
in interface ErrorDetails
public int getErrorNumber()
getErrorNumber
in interface ErrorDetails
public String getBuildResultKey()
ErrorDetails
getBuildResultKey
in interface ErrorDetails
@Nullable public @Nullable ResultKey getResultKey()
ErrorDetails
getResultKey
in interface ErrorDetails
@NotNull public @NotNull Date getFirstOccurred()
getFirstOccurred
in interface ErrorDetails
@NotNull public @NotNull Date getLastOccurred()
getLastOccurred
in interface ErrorDetails
ErrorDetails.getFirstOccurred()
)public Set<Long> getAgentIds()
getAgentIds
in interface ErrorDetails
public String getContext()
ErrorDetails
getContext
in interface ErrorDetails
public int getNumberOfOccurrences()
getNumberOfOccurrences
in interface ErrorDetails
@Nullable public @Nullable ThrowableDetails getThrowableDetails()
ErrorDetails
Throwable
which may have been thrown in the errorgetThrowableDetails
in interface ErrorDetails
Throwable
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 © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.