Package org.graylog.failure
Class FailureSubmissionService
java.lang.Object
org.graylog.failure.FailureSubmissionService
A supplementary service layer, which is aimed to simplify failure
submission for the calling code. Apart from the input transformation,
it also encapsulates integration with the failure handling configuration.
-
Constructor Summary
ConstructorDescriptionFailureSubmissionService
(org.graylog.failure.FailureSubmissionQueue failureSubmissionQueue, FailureHandlingConfiguration failureHandlingConfiguration) -
Method Summary
Modifier and TypeMethodDescriptionvoid
submitIndexingErrors
(Collection<Messages.IndexingError> indexingErrors) Submits Elasticsearch indexing errors to the failure queueboolean
submitProcessingErrors
(Message message) Submits message's processing errors to the failure queue.boolean
submitUnknownProcessingError
(Message message, String details) Submits an unrecognized processing error to the failure queue.
-
Constructor Details
-
FailureSubmissionService
@Inject public FailureSubmissionService(org.graylog.failure.FailureSubmissionQueue failureSubmissionQueue, FailureHandlingConfiguration failureHandlingConfiguration)
-
-
Method Details
-
submitUnknownProcessingError
Submits an unrecognized processing error to the failure queue. Depending on the configuration might ignore the error Must be called the last in the processing chain!- Parameters:
message
- a problematic messagedetails
- error details- Returns:
- true if the message is not filtered out
-
submitProcessingErrors
Submits message's processing errors to the failure queue. The errors are obtained viaMessage.processingErrors()
. Depending on the configuration might ignore the errors. Must be called the last in the processing chain!- Parameters:
message
- a message with processing errors- Returns:
- true if the message is not filtered out
-
submitIndexingErrors
Submits Elasticsearch indexing errors to the failure queue- Parameters:
indexingErrors
- a collection of indexing errors
-