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(ResultKey buildKey, ErrorCollection errors)
          Adds all the error messages in the errorCollection to the build
 void addErrorCollection(java.lang.String buildKey, ErrorCollection errors)
          Deprecated. 
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)
          Deprecated. 
 void recordError(Key planKey, java.lang.String context)
           
 void recordError(Key planKey, java.lang.String context, java.lang.Throwable throwable)
           
 void recordError(ResultKey planResultKey, java.lang.String context, java.lang.Throwable throwable)
          Record an error against a result
 void recordError(java.lang.String errorMessage)
           
 void recordError(java.lang.String buildKey, int buildNumber, java.lang.String context, java.lang.Throwable throwable)
          Deprecated. 
 void recordError(java.lang.String buildKey, java.lang.String context)
          Deprecated. 
 void recordError(java.lang.String buildKey, java.lang.String context, java.lang.Throwable throwable)
          Deprecated. 
 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

@Deprecated
public void recordError(java.lang.String buildKey,
                                   java.lang.String context)
Deprecated. 

Description copied from interface: ErrorUpdateHandler
Record a build error against a build

Specified by:
recordError in interface ErrorUpdateHandler

recordError

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

recordError

@Deprecated
public void recordError(java.lang.String buildKey,
                                   java.lang.String context,
                                   java.lang.Throwable throwable)
Deprecated. 

Description copied from interface: ErrorUpdateHandler
Record a build error against a build

Specified by:
recordError in interface ErrorUpdateHandler

recordError

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

recordError

@Deprecated
public void recordError(java.lang.String buildKey,
                                   int buildNumber,
                                   java.lang.String context,
                                   java.lang.Throwable throwable)
Deprecated. 

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
                        ResultKey planResultKey,
                        java.lang.String context,
                        @Nullable
                        java.lang.Throwable throwable)
Description copied from interface: ErrorUpdateHandler
Record an error against a result

Specified by:
recordError in interface ErrorUpdateHandler
Parameters:
planResultKey - of the result
context - message
throwable - error

recordError

@Deprecated
public void recordError(@Nullable
                                   BuildContext buildContext,
                                   @NotNull
                                   java.lang.String context,
                                   @Nullable
                                   java.lang.Throwable throwable)
Deprecated. 

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

@Deprecated
public void addErrorCollection(java.lang.String buildKey,
                                          ErrorCollection errors)
Deprecated. 

Description copied from interface: ErrorUpdateHandler
Adds all the error messages in the errorCollection to the build

Specified by:
addErrorCollection in interface ErrorUpdateHandler

addErrorCollection

public void addErrorCollection(ResultKey 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 © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.