Package org.graylog.failure
Class ProcessingFailure
java.lang.Object
org.graylog.failure.ProcessingFailure
- All Implemented Interfaces:
Failure
-
Constructor Summary
ConstructorDescriptionProcessingFailure
(FailureCause failureCause, String message, String failureDetails, org.joda.time.DateTime failureTimestamp, Indexable failedMessage, boolean requiresAcknowledgement) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns 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.DateTime
Returns a timestamp of this failureReturns a type of this failureint
hashCode()
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?boolean
Returns true if the failed message must be acknowledged upon failure handlingReturns an ElasticSearch index name targeted by the failed message.
-
Constructor Details
-
ProcessingFailure
public ProcessingFailure(FailureCause failureCause, String message, String failureDetails, org.joda.time.DateTime failureTimestamp, Indexable failedMessage, boolean requiresAcknowledgement)
-
-
Method Details
-
failureType
Description copied from interface:Failure
Returns a type of this failure- Specified by:
failureType
in interfaceFailure
-
failureCause
Description copied from interface:Failure
Returns a cause of this failure- Specified by:
failureCause
in interfaceFailure
-
message
Description copied from interface:Failure
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? -
failureDetails
Description copied from interface:Failure
Returns further failure details, which are supposed to answer the question "WHY this failure has happened?"- Specified by:
failureDetails
in interfaceFailure
-
failureTimestamp
public org.joda.time.DateTime failureTimestamp()Description copied from interface:Failure
Returns a timestamp of this failure- Specified by:
failureTimestamp
in interfaceFailure
-
failedMessage
Description copied from interface:Failure
Returns a failed message- Specified by:
failedMessage
in interfaceFailure
-
targetIndex
Description copied from interface:Failure
Returns an ElasticSearch index name targeted by the failed message. For non-indexing failures the value might be null.- Specified by:
targetIndex
in interfaceFailure
-
requiresAcknowledgement
public boolean requiresAcknowledgement()Description copied from interface:Failure
Returns true if the failed message must be acknowledged upon failure handling- Specified by:
requiresAcknowledgement
in interfaceFailure
-
equals
-
hashCode
public int hashCode()
-