Enum FlightStatusCode

java.lang.Object
java.lang.Enum<FlightStatusCode>
org.apache.arrow.flight.FlightStatusCode
All Implemented Interfaces:
Serializable, Comparable<FlightStatusCode>

public enum FlightStatusCode extends Enum<FlightStatusCode>
A status code describing the result of a Flight call.
  • Enum Constant Details

    • OK

      public static final FlightStatusCode OK
      The call completed successfully. Generally clients will not see this, but middleware may.
    • UNKNOWN

      public static final FlightStatusCode UNKNOWN
      An unknown error occurred. This may also be the result of an implementation error on the server-side; by default, unhandled server exceptions result in this code.
    • INTERNAL

      public static final FlightStatusCode INTERNAL
      An internal/implementation error occurred.
    • INVALID_ARGUMENT

      public static final FlightStatusCode INVALID_ARGUMENT
      One or more of the given arguments was invalid.
    • TIMED_OUT

      public static final FlightStatusCode TIMED_OUT
      The operation timed out.
    • NOT_FOUND

      public static final FlightStatusCode NOT_FOUND
      The operation describes a resource that does not exist.
    • ALREADY_EXISTS

      public static final FlightStatusCode ALREADY_EXISTS
      The operation creates a resource that already exists.
    • CANCELLED

      public static final FlightStatusCode CANCELLED
      The operation was cancelled.
    • UNAUTHENTICATED

      public static final FlightStatusCode UNAUTHENTICATED
      The client was not authenticated.
    • UNAUTHORIZED

      public static final FlightStatusCode UNAUTHORIZED
      The client did not have permission to make the call.
    • UNIMPLEMENTED

      public static final FlightStatusCode UNIMPLEMENTED
      The requested operation is not implemented.
    • UNAVAILABLE

      public static final FlightStatusCode UNAVAILABLE
      The server cannot currently handle the request. This should be used for retriable requests, i.e. the server should send this code only if it has not done any work.
    • RESOURCE_EXHAUSTED

      public static final FlightStatusCode RESOURCE_EXHAUSTED
      Some resource has been exhausted, perhaps a per-user quota, or perhaps the entire file system is out of space. (see: https://grpc.github.io/grpc/core/md_doc_statuscodes.html)
  • Method Details

    • values

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

      public static FlightStatusCode valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • toStatus

      public CallStatus toStatus()
      Create a blank CallStatus with this code.