Class IndexingFailure

java.lang.Object
org.graylog.failure.IndexingFailure
All Implemented Interfaces:
Failure

public class IndexingFailure extends Object implements Failure
  • Constructor Details

    • IndexingFailure

      public IndexingFailure(FailureCause failureCause, String message, String failureDetails, org.joda.time.DateTime failureTimestamp, Indexable failedMessage, String targetIndex)
  • Method Details

    • failureType

      public FailureType failureType()
      Description copied from interface: Failure
      Returns a type of this failure
      Specified by:
      failureType in interface Failure
    • failureCause

      public FailureCause failureCause()
      Description copied from interface: Failure
      Returns a cause of this failure
      Specified by:
      failureCause in interface Failure
    • message

      public String 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?
      Specified by:
      message in interface Failure
    • failureDetails

      public String 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 interface Failure
    • failureTimestamp

      public org.joda.time.DateTime failureTimestamp()
      Description copied from interface: Failure
      Returns a timestamp of this failure
      Specified by:
      failureTimestamp in interface Failure
    • failedMessage

      public Indexable failedMessage()
      Description copied from interface: Failure
      Returns a failed message
      Specified by:
      failedMessage in interface Failure
    • targetIndex

      @Nullable public String 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 interface Failure
    • 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 interface Failure
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object