Package org.graylog.failure
Class DefaultFailureHandler
java.lang.Object
org.graylog.failure.DefaultFailureHandler
- All Implemented Interfaces:
FailureHandler
A fallback failure handler, which persists submitted failures in Mongo via
IndexFailureService
.
Only indexing failures supported.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
handle
(FailureBatch failureBatch) Handles a batch of failuresboolean
Guides the main failure handling service, when deciding whether this handler is available for processing.boolean
supports
(FailureBatch failureBatch) Guides the main failure handling service, when deciding whether this handler is suitable for a certain batch of failures
-
Constructor Details
-
DefaultFailureHandler
-
-
Method Details
-
handle
Description copied from interface:FailureHandler
Handles a batch of failures- Specified by:
handle
in interfaceFailureHandler
- Parameters:
failureBatch
- a batch of failures, supported by this handler
-
supports
Description copied from interface:FailureHandler
Guides the main failure handling service, when deciding whether this handler is suitable for a certain batch of failures- Specified by:
supports
in interfaceFailureHandler
- Parameters:
failureBatch
- a batch of failures to test- Returns:
- true if the batch can be processed by this handler
-
isEnabled
public boolean isEnabled()Description copied from interface:FailureHandler
Guides the main failure handling service, when deciding whether this handler is available for processing.- Specified by:
isEnabled
in interfaceFailureHandler
- Returns:
- true if this handler can accept failure batches
-