Package com.atlassian.bamboo.logger
Class DecoratedErrorDetailsImpl
java.lang.Object
com.atlassian.bamboo.logger.DecoratedErrorDetailsImpl
- All Implemented Interfaces:
ErrorDetails
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
View of BuildAgents referenced in a error report.static class
static enum
-
Constructor Summary
ConstructorDescriptionDecoratedErrorDetailsImpl
(@NotNull ErrorDetails errorDetails, @NotNull AgentManager agentManager, @NotNull CachedPlanManager cachedPlanManager, @NotNull ResultsSummaryManager resultsSummaryManager, @NotNull RepositoryDefinitionManager repositoryDefinitionManager, @NotNull CachedRepositoryDefinitionManager cachedRepositoryDefinitionManager) -
Method Summary
Modifier and TypeMethodDescription@Nullable String
Full key for the build plan (e.g BAMBOO-TRUNK)@Nullable Integer
Full key for the build result (e.g BAMBOO-TRUNK-4)Top level message related to error@Nullable Key
Get entity key associated with this errorint
@NotNull Date
@NotNull Date
int
@Nullable ResultKey
Get result key associated with this error@Nullable Integer
@Nullable Long
@Nullable ThrowableDetails
Contains the details of anyThrowable
which may have been thrown in the errorboolean
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
Is this error specific to one plan (true) or for all/any plans (false) e.g.boolean
boolean
-
Constructor Details
-
DecoratedErrorDetailsImpl
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)
-
-
Method Details
-
getBuildKey
Description copied from interface:ErrorDetails
Full key for the build plan (e.g BAMBOO-TRUNK)- Specified by:
getBuildKey
in interfaceErrorDetails
- Returns:
- build key
-
getEntityKey
Description copied from interface:ErrorDetails
Get entity key associated with this error- Specified by:
getEntityKey
in interfaceErrorDetails
- Returns:
- entity key
-
getBuildNumber
- Specified by:
getBuildNumber
in interfaceErrorDetails
-
getResultNumber
- Specified by:
getResultNumber
in interfaceErrorDetails
- Returns:
- associated result number or null
-
getResultNumberLong
- Specified by:
getResultNumberLong
in interfaceErrorDetails
- Returns:
- associated result number or null
-
isBuildSpecific
public boolean isBuildSpecific()Description copied from interface:ErrorDetails
Is this error specific to one plan (true) or for all/any plans (false) e.g. a system error or elastic error.- Specified by:
isBuildSpecific
in interfaceErrorDetails
- Returns:
- true if error contains a build key.
-
getErrorNumber
public int getErrorNumber()- Specified by:
getErrorNumber
in interfaceErrorDetails
-
getBuildResultKey
Description copied from interface:ErrorDetails
Full key for the build result (e.g BAMBOO-TRUNK-4)- Specified by:
getBuildResultKey
in interfaceErrorDetails
- Returns:
- build result key
-
getResultKey
Description copied from interface:ErrorDetails
Get result key associated with this error- Specified by:
getResultKey
in interfaceErrorDetails
- Returns:
- result key
-
getFirstOccurred
- Specified by:
getFirstOccurred
in interfaceErrorDetails
- Returns:
- Date this error was first thrown
-
getLastOccurred
- Specified by:
getLastOccurred
in interfaceErrorDetails
- Returns:
- Date this error was last thrown (if it only occurred once it will be the same as
ErrorDetails.getFirstOccurred()
)
-
getAgentIds
- Specified by:
getAgentIds
in interfaceErrorDetails
-
getContext
Description copied from interface:ErrorDetails
Top level message related to error- Specified by:
getContext
in interfaceErrorDetails
-
getNumberOfOccurrences
public int getNumberOfOccurrences()- Specified by:
getNumberOfOccurrences
in interfaceErrorDetails
- Returns:
- Number of times this error has occurred
-
getThrowableDetails
Description copied from interface:ErrorDetails
Contains the details of anyThrowable
which may have been thrown in the error- Specified by:
getThrowableDetails
in interfaceErrorDetails
- Returns:
- details of any
Throwable
for this error
-
getAgents
-
getBuildName
-
getParentPlanKey
-
isBuildExists
public 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.- Returns:
- true if a saved build result exists for this error otherwise returns false
-
isElastic
public boolean isElastic() -
getInstanceIds
-
getAgentIdentifiers
-
getRepositoryData
-
getRootRepository
-
getRepositoryLocationDefinitionLevel
-
isChainBranch
public boolean isChainBranch()
-