Class AbstractLogLimiter
java.lang.Object
com.atlassian.bamboo.build.logger.interceptors.AbstractLogLimiter
- All Implemented Interfaces:
LogMutator
- Direct Known Subclasses:
LogLineCountLimiter
,LogSizeLimiter
-
Field Summary
-
Constructor Summary
ConstructorDescriptionAbstractLogLimiter
(BuildHangingConfig buildHangingConfig, com.atlassian.event.api.EventPublisher eventPublisher, ResultKey resultKey) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract String
protected abstract boolean
incrementAndCheckLimit
(@NotNull LogEntry logEntry) protected abstract void
Method invoked whenever a new log entry is loggedmutateError
(@NotNull LogEntry logEntry) Method invoked whenever a new error log entry is logged
-
Field Details
-
resultKey
-
-
Constructor Details
-
AbstractLogLimiter
public AbstractLogLimiter(BuildHangingConfig buildHangingConfig, com.atlassian.event.api.EventPublisher eventPublisher, ResultKey resultKey)
-
-
Method Details
-
mutate
Description copied from interface:LogMutator
Method invoked whenever a new log entry is logged- Specified by:
mutate
in interfaceLogMutator
-
mutateError
Description copied from interface:LogMutator
Method invoked whenever a new error log entry is logged- Specified by:
mutateError
in interfaceLogMutator
-
incrementAndCheckLimit
-
getReasonForStoppingMessage
-
logStoppingToAgentLog
protected abstract void logStoppingToAgentLog()
-