com.atlassian.bamboo.logger
Class AbstractErrorUpdateHandler

java.lang.Object
  extended by com.atlassian.bamboo.logger.AbstractErrorUpdateHandler
All Implemented Interfaces:
ErrorUpdateHandler
Direct Known Subclasses:
DefaultErrorHandler, RemoteErrorUpdateHandler

public abstract class AbstractErrorUpdateHandler
extends java.lang.Object
implements ErrorUpdateHandler


Constructor Summary
AbstractErrorUpdateHandler()
           
 
Method Summary
 void addErrorCollection(java.lang.String buildKey, ErrorCollection errors)
          Adds all the error messages in the errorCollection to the build
protected  java.lang.Long getCurrentAgentId()
           
 void recordElasticError(java.lang.String context, java.lang.Long agentId, java.lang.Throwable throwable, java.lang.String instanceId)
          Record an error resulting from Elastic Bamboo
 void recordError(BuildContext buildContext, java.lang.String context, java.lang.Throwable throwable)
           
 void recordError(PlanKey planKey, java.lang.String context)
           
 void recordError(PlanKey planKey, java.lang.String context, java.lang.Throwable throwable)
           
 void recordError(PlanResultKey planResultKey, java.lang.String context, java.lang.Throwable throwable)
          Record a build error against a build result
 void recordError(java.lang.String errorMessage)
           
 void recordError(java.lang.String buildKey, int buildNumber, java.lang.String context, java.lang.Throwable throwable)
          Record a build error against a build
 void recordError(java.lang.String buildKey, java.lang.String context)
          Record a build error against a build
 void recordError(java.lang.String buildKey, java.lang.String context, java.lang.Throwable throwable)
          Record a build error against a build
 void setAgentContext(AgentContext agentContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.bamboo.logger.ErrorUpdateHandler
createElasticError, createError
 

Constructor Detail

AbstractErrorUpdateHandler

public AbstractErrorUpdateHandler()
Method Detail

recordError

public void recordError(java.lang.String buildKey,
                        java.lang.String context)
Description copied from interface: ErrorUpdateHandler
Record a build error against a build

Specified by:
recordError in interface ErrorUpdateHandler

recordError

public void recordError(@NotNull
                        PlanKey planKey,
                        @Nullable
                        java.lang.String context)
Specified by:
recordError in interface ErrorUpdateHandler

recordError

public void recordError(java.lang.String buildKey,
                        java.lang.String context,
                        java.lang.Throwable throwable)
Description copied from interface: ErrorUpdateHandler
Record a build error against a build

Specified by:
recordError in interface ErrorUpdateHandler

recordError

public void recordError(@NotNull
                        PlanKey planKey,
                        @Nullable
                        java.lang.String context,
                        @NotNull
                        java.lang.Throwable throwable)
Specified by:
recordError in interface ErrorUpdateHandler

recordError

public void recordError(java.lang.String buildKey,
                        int buildNumber,
                        java.lang.String context,
                        java.lang.Throwable throwable)
Description copied from interface: ErrorUpdateHandler
Record a build error against a build

Specified by:
recordError in interface ErrorUpdateHandler
Parameters:
buildKey - key of the build
buildNumber - number of the build - can be null
context - message
throwable - error

recordError

public void recordError(@NotNull
                        PlanResultKey planResultKey,
                        java.lang.String context,
                        java.lang.Throwable throwable)
Description copied from interface: ErrorUpdateHandler
Record a build error against a build result

Specified by:
recordError in interface ErrorUpdateHandler

recordError

public void recordError(@Nullable
                        BuildContext buildContext,
                        @NotNull
                        java.lang.String context,
                        @Nullable
                        java.lang.Throwable throwable)
Specified by:
recordError in interface ErrorUpdateHandler

recordError

public void recordError(java.lang.String errorMessage)
Specified by:
recordError in interface ErrorUpdateHandler

recordElasticError

public void recordElasticError(java.lang.String context,
                               @Nullable
                               java.lang.Long agentId,
                               @Nullable
                               java.lang.Throwable throwable,
                               @Nullable
                               java.lang.String instanceId)
Description copied from interface: ErrorUpdateHandler
Record an error resulting from Elastic Bamboo

Specified by:
recordElasticError in interface ErrorUpdateHandler

addErrorCollection

public void addErrorCollection(java.lang.String buildKey,
                               ErrorCollection errors)
Description copied from interface: ErrorUpdateHandler
Adds all the error messages in the errorCollection to the build

Specified by:
addErrorCollection in interface ErrorUpdateHandler

getCurrentAgentId

@Nullable
protected java.lang.Long getCurrentAgentId()

setAgentContext

public void setAgentContext(AgentContext agentContext)


Copyright © 2010 Atlassian. All Rights Reserved.