Class AbstractLogLimiter

java.lang.Object
com.atlassian.bamboo.build.logger.interceptors.AbstractLogLimiter
All Implemented Interfaces:
LogMutator
Direct Known Subclasses:
LogLineCountLimiter, LogSizeLimiter

public abstract class AbstractLogLimiter extends Object implements LogMutator
  • Field Details

    • resultKey

      protected final ResultKey resultKey
  • Constructor Details

    • AbstractLogLimiter

      public AbstractLogLimiter(BuildHangingConfig buildHangingConfig, com.atlassian.event.api.EventPublisher eventPublisher, ResultKey resultKey)
  • Method Details

    • mutate

      public LogEntry mutate(@NotNull @NotNull LogEntry logEntry)
      Description copied from interface: LogMutator
      Method invoked whenever a new log entry is logged
      Specified by:
      mutate in interface LogMutator
    • mutateError

      public LogEntry mutateError(@NotNull @NotNull LogEntry logEntry)
      Description copied from interface: LogMutator
      Method invoked whenever a new error log entry is logged
      Specified by:
      mutateError in interface LogMutator
    • incrementAndCheckLimit

      protected abstract boolean incrementAndCheckLimit(@NotNull @NotNull LogEntry logEntry)
    • getReasonForStoppingMessage

      protected abstract String getReasonForStoppingMessage()
    • logStoppingToAgentLog

      protected abstract void logStoppingToAgentLog()