com.atlassian.bamboo.logger
Class ElasticErrorDetails
java.lang.Object
com.atlassian.bamboo.logger.ErrorDetails
com.atlassian.bamboo.logger.ElasticErrorDetails
public class ElasticErrorDetails
- extends ErrorDetails
Error Details specific to elastic bamboo
Method Summary |
void |
addInstance(java.lang.String instanceId)
|
java.util.List<java.lang.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 |
boolean |
isForAllBuilds()
Is this error specific to one plan (false) or for all plans (true) e.g. |
Methods inherited from class com.atlassian.bamboo.logger.ErrorDetails |
getAgentIdentifiers, getAgentIds, getAgents, getBuildKey, getBuildName, getBuildNumber, getBuildResultKey, getContext, getErrorNumber, getFirstOccurred, getLastOccurred, getNumberOfOccurrences, getThrowableDetails, isBuildExists |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ElasticErrorDetails
public ElasticErrorDetails(int errorNumber,
@Nullable
java.lang.Long agentId,
@Nullable
java.lang.String instanceId,
java.lang.String context,
java.util.Date timeStamp,
ThrowableDetails throwableDetails,
PlanManager planManager,
LocalAgentManager localAgentManager,
BuildResultsSummaryManager buildResultsSummaryManager)
getInstanceIds
public java.util.List<java.lang.String> getInstanceIds()
addInstance
public void addInstance(java.lang.String instanceId)
isForAllBuilds
public boolean isForAllBuilds()
- Description copied from class:
ErrorDetails
- Is this error specific to one plan (false) or for all plans (true) e.g. a system error.
This method is not particularly useful after the introduction of Elastic Errors. Use the opposite isBuildSpecific() instead.
- Overrides:
isForAllBuilds
in class ErrorDetails
- Returns:
- true if error is for all builds.
isBuildSpecific
public boolean isBuildSpecific()
- Description copied from class:
ErrorDetails
- Is this error specific to one plan (true) or for all/any plans (false) e.g. a system error or elastic error.
- Overrides:
isBuildSpecific
in class ErrorDetails
- Returns:
- true if error contains a build key.
isElastic
public boolean isElastic()
- Description copied from class:
ErrorDetails
- Is this error specific to Elastic Bamboo
- Overrides:
isElastic
in class ErrorDetails
- Returns:
- true if error is for elastic bamboo, otherwise false.
Copyright © 2010 Atlassian. All Rights Reserved.