Package com.atlassian.bamboo.logger
Class ElasticErrorDetailsImpl
- java.lang.Object
-
- com.atlassian.bamboo.logger.ErrorDetailsImpl
-
- com.atlassian.bamboo.logger.ElasticErrorDetailsImpl
-
- All Implemented Interfaces:
ErrorDetails
public class ElasticErrorDetailsImpl extends ErrorDetailsImpl
Error Details specific to elastic bamboo
-
-
Field Summary
Fields Modifier and Type Field Description static String
ELASTIC_BAMBOO
-
Fields inherited from class com.atlassian.bamboo.logger.ErrorDetailsImpl
ALL_BUILDS
-
-
Constructor Summary
Constructors Constructor Description ElasticErrorDetailsImpl(int errorNumber, @Nullable Long agentId, @Nullable String instanceId, String context, Date timeStamp, ThrowableDetails throwableDetails)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addInstance(String instanceId)
List<String>
getInstanceIds()
boolean
isBuildSpecific()
Is this error specific to one plan (true) or for all/any plans (false) e.g.boolean
isElastic()
Is this error specific to Elastic Bamboo-
Methods inherited from class com.atlassian.bamboo.logger.ErrorDetailsImpl
getAgentIds, getBuildKey, getBuildNumber, getBuildResultKey, getContext, getEntityKey, getErrorNumber, getFirstOccurred, getLastOccurred, getNumberOfOccurrences, getResultKey, getResultNumber, getResultNumberLong, getThrowableDetails
-
-
-
-
Field Detail
-
ELASTIC_BAMBOO
public static final String ELASTIC_BAMBOO
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ElasticErrorDetailsImpl
public ElasticErrorDetailsImpl(int errorNumber, @Nullable @Nullable Long agentId, @Nullable @Nullable String instanceId, String context, Date timeStamp, ThrowableDetails throwableDetails)
-
-
Method Detail
-
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
- Overrides:
isBuildSpecific
in classErrorDetailsImpl
- Returns:
- true if error contains a build key.
-
isElastic
public boolean isElastic()
Description copied from class:ErrorDetailsImpl
Is this error specific to Elastic Bamboo- Overrides:
isElastic
in classErrorDetailsImpl
- Returns:
- true if error is for elastic bamboo, otherwise false.
-
addInstance
public void addInstance(String instanceId)
-
-