Enum Class FinishReason

java.lang.Object
java.lang.Enum<FinishReason>
org.gbif.api.model.crawler.FinishReason
All Implemented Interfaces:
Serializable, Comparable<FinishReason>, Constable

public enum FinishReason extends Enum<FinishReason>
This enum lists the reasons why a crawl is finished.
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    This status means that we had to abort the crawl for any abnormal reason (endpoint down, not a valid archive, ...).
    This status means that we were able to finish the crawl without any fatal errors and without exhausting retries.
    Crawling has stopped because the source data was not modified since the last crawl.
    This status means that we don't know why the crawl aborted.
    This status means that the user requested an abort of the crawl and that is the reason this crawl is done.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the enum constant of this class with the specified name.
    static FinishReason[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Enum

    compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • NORMAL

      public static final FinishReason NORMAL
      This status means that we were able to finish the crawl without any fatal errors and without exhausting retries. There could still have been intermittent errors but we managed to reach the end of an endpoint or a DwC-A file.
    • USER_ABORT

      public static final FinishReason USER_ABORT
      This status means that the user requested an abort of the crawl and that is the reason this crawl is done.
    • ABORT

      public static final FinishReason ABORT
      This status means that we had to abort the crawl for any abnormal reason (endpoint down, not a valid archive, ...). To find the exact reason(s) you need to look at the logs to see past errors.
    • NOT_MODIFIED

      public static final FinishReason NOT_MODIFIED
      Crawling has stopped because the source data was not modified since the last crawl.
    • UNKNOWN

      public static final FinishReason UNKNOWN
      This status means that we don't know why the crawl aborted. This is a sign of a programming error and should be investigated.
  • Method Details

    • values

      public static FinishReason[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static FinishReason valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null