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()
ErrorDetails
getBuildKey
in interface ErrorDetails
@Nullable public Key getEntityKey()
ErrorDetails
getEntityKey
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 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 ResultKey getResultKey()
ErrorDetails
getResultKey
in interface ErrorDetails
@NotNull public Date getFirstOccurred()
getFirstOccurred
in interface ErrorDetails
@NotNull public 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 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 © 2018 Atlassian Software Systems Pty Ltd. All rights reserved.