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 StringELASTIC_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 voidaddInstance(String instanceId)List<String>getInstanceIds()booleanisBuildSpecific()Is this error specific to one plan (true) or for all/any plans (false) e.g.booleanisElastic()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:ErrorDetailsIs this error specific to one plan (true) or for all/any plans (false) e.g. a system error or elastic error.- Specified by:
isBuildSpecificin interfaceErrorDetails- Overrides:
isBuildSpecificin classErrorDetailsImpl- Returns:
- true if error contains a build key.
-
isElastic
public boolean isElastic()
Description copied from class:ErrorDetailsImplIs this error specific to Elastic Bamboo- Overrides:
isElasticin classErrorDetailsImpl- Returns:
- true if error is for elastic bamboo, otherwise false.
-
addInstance
public void addInstance(String instanceId)
-
-