Package org.graylog.failure
Class IndexingFailure
java.lang.Object
org.graylog.failure.IndexingFailure
- All Implemented Interfaces:
Failure
-
Constructor Summary
ConstructorsConstructorDescriptionIndexingFailure(FailureCause failureCause, String message, String failureDetails, org.joda.time.DateTime failureTimestamp, Indexable failedMessage, String targetIndex) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns a failed messageReturns a cause of this failureReturns further failure details, which are supposed to answer the question "WHY this failure has happened?"org.joda.time.DateTimeReturns a timestamp of this failureReturns a type of this failureinthashCode()message()Returns a brief description of this failure, which is supposed to answer the following 2 questions: 1) WHAT has happened? 2) WHICH component has caused it?booleanReturns true if the failed message must be acknowledged upon failure handlingReturns an ElasticSearch index name targeted by the failed message.
-
Constructor Details
-
IndexingFailure
public IndexingFailure(FailureCause failureCause, String message, String failureDetails, org.joda.time.DateTime failureTimestamp, Indexable failedMessage, String targetIndex)
-
-
Method Details
-
failureType
Description copied from interface:FailureReturns a type of this failure- Specified by:
failureTypein interfaceFailure
-
failureCause
Description copied from interface:FailureReturns a cause of this failure- Specified by:
failureCausein interfaceFailure
-
message
Description copied from interface:FailureReturns a brief description of this failure, which is supposed to answer the following 2 questions: 1) WHAT has happened? 2) WHICH component has caused it? -
failureDetails
Description copied from interface:FailureReturns further failure details, which are supposed to answer the question "WHY this failure has happened?"- Specified by:
failureDetailsin interfaceFailure
-
failureTimestamp
public org.joda.time.DateTime failureTimestamp()Description copied from interface:FailureReturns a timestamp of this failure- Specified by:
failureTimestampin interfaceFailure
-
failedMessage
Description copied from interface:FailureReturns a failed message- Specified by:
failedMessagein interfaceFailure
-
targetIndex
Description copied from interface:FailureReturns an ElasticSearch index name targeted by the failed message. For non-indexing failures the value might be null.- Specified by:
targetIndexin interfaceFailure
-
requiresAcknowledgement
public boolean requiresAcknowledgement()Description copied from interface:FailureReturns true if the failed message must be acknowledged upon failure handling- Specified by:
requiresAcknowledgementin interfaceFailure
-
equals
-
hashCode
public int hashCode()
-