Enum Class MetasyncResult

java.lang.Object
java.lang.Enum<MetasyncResult>
org.gbif.api.model.registry.metasync.MetasyncResult
All Implemented Interfaces:
Serializable, Comparable<MetasyncResult>, Constable

public enum MetasyncResult extends Enum<MetasyncResult>
Enumeration of all the different categories of results we want to report on during metadata synchronisation.
  • Enum Constant Details

    • OK

      public static final MetasyncResult OK
      The synchronization was successful.
    • IO_EXCEPTION

      public static final MetasyncResult IO_EXCEPTION
      Is any kind of error establishing a connection or during a connection that's usually on the network level (connection refused, timeouts etc.).
    • HTTP_ERROR

      public static final MetasyncResult HTTP_ERROR
      Any kind of HTTP error (e.g. a non 200 response code).
    • PROTOCOL_ERROR

      public static final MetasyncResult PROTOCOL_ERROR
      This means that we got a reply from the endpoint but it does not conform to what we expected (e.g. HTML instead of XML).
    • OTHER_ERROR

      public static final MetasyncResult OTHER_ERROR
      Anything that doesn't fit in the former categories (e.g. invalid URI stored in our Registry).
  • Method Details

    • values

      public static MetasyncResult[] 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 MetasyncResult 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