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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidhandle(FailureBatch failureBatch) Handles a batch of failuresbooleanGuides the main failure handling service, when deciding whether this handler is available for processing.booleansupports(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:FailureHandlerHandles a batch of failures- Specified by:
handlein interfaceFailureHandler- Parameters:
failureBatch- a batch of failures, supported by this handler
-
supports
Description copied from interface:FailureHandlerGuides the main failure handling service, when deciding whether this handler is suitable for a certain batch of failures- Specified by:
supportsin 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:FailureHandlerGuides the main failure handling service, when deciding whether this handler is available for processing.- Specified by:
isEnabledin interfaceFailureHandler- Returns:
- true if this handler can accept failure batches
-