Package org.apache.bookkeeper.proto
Enum BookkeeperProtocol.StatusCode
- java.lang.Object
-
- java.lang.Enum<BookkeeperProtocol.StatusCode>
-
- org.apache.bookkeeper.proto.BookkeeperProtocol.StatusCode
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,java.io.Serializable,java.lang.Comparable<BookkeeperProtocol.StatusCode>
- Enclosing class:
- BookkeeperProtocol
public static enum BookkeeperProtocol.StatusCode extends java.lang.Enum<BookkeeperProtocol.StatusCode> implements com.google.protobuf.ProtocolMessageEnum
Status codes.
Protobuf enumStatusCode
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EBADREQEBADREQ = 404;EBADVERSIONEBADVERSION = 503;EFENCEDEFENCED = 504;EIOIO/access errors 5xxENOENTRYENOENTRY = 403;ENOLEDGERServer side Errors 4xxEOKEOK = 0;EREADONLYEREADONLY = 505;ETOOMANYREQUESTSETOOMANYREQUESTS = 506;EUAEUA = 502;EUNKNOWNLEDGERSTATEEUNKNOWNLEDGERSTATE = 507;
-
Field Summary
Fields Modifier and Type Field Description static intEBADREQ_VALUEEBADREQ = 404;static intEBADVERSION_VALUEEBADVERSION = 503;static intEFENCED_VALUEEFENCED = 504;static intEIO_VALUEIO/access errors 5xxstatic intENOENTRY_VALUEENOENTRY = 403;static intENOLEDGER_VALUEServer side Errors 4xxstatic intEOK_VALUEEOK = 0;static intEREADONLY_VALUEEREADONLY = 505;static intETOOMANYREQUESTS_VALUEETOOMANYREQUESTS = 506;static intEUA_VALUEEUA = 502;static intEUNKNOWNLEDGERSTATE_VALUEEUNKNOWNLEDGERSTATE = 507;
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static BookkeeperProtocol.StatusCodeforNumber(int value)static com.google.protobuf.Descriptors.EnumDescriptorgetDescriptor()com.google.protobuf.Descriptors.EnumDescriptorgetDescriptorForType()intgetNumber()com.google.protobuf.Descriptors.EnumValueDescriptorgetValueDescriptor()static com.google.protobuf.Internal.EnumLiteMap<BookkeeperProtocol.StatusCode>internalGetValueMap()static BookkeeperProtocol.StatusCodevalueOf(int value)Deprecated.static BookkeeperProtocol.StatusCodevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static BookkeeperProtocol.StatusCodevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static BookkeeperProtocol.StatusCode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EOK
public static final BookkeeperProtocol.StatusCode EOK
EOK = 0;
-
ENOLEDGER
public static final BookkeeperProtocol.StatusCode ENOLEDGER
Server side Errors 4xx
ENOLEDGER = 402;
-
ENOENTRY
public static final BookkeeperProtocol.StatusCode ENOENTRY
ENOENTRY = 403;
-
EBADREQ
public static final BookkeeperProtocol.StatusCode EBADREQ
EBADREQ = 404;
-
EIO
public static final BookkeeperProtocol.StatusCode EIO
IO/access errors 5xx
EIO = 501;
-
EUA
public static final BookkeeperProtocol.StatusCode EUA
EUA = 502;
-
EBADVERSION
public static final BookkeeperProtocol.StatusCode EBADVERSION
EBADVERSION = 503;
-
EFENCED
public static final BookkeeperProtocol.StatusCode EFENCED
EFENCED = 504;
-
EREADONLY
public static final BookkeeperProtocol.StatusCode EREADONLY
EREADONLY = 505;
-
ETOOMANYREQUESTS
public static final BookkeeperProtocol.StatusCode ETOOMANYREQUESTS
ETOOMANYREQUESTS = 506;
-
EUNKNOWNLEDGERSTATE
public static final BookkeeperProtocol.StatusCode EUNKNOWNLEDGERSTATE
EUNKNOWNLEDGERSTATE = 507;
-
-
Field Detail
-
EOK_VALUE
public static final int EOK_VALUE
EOK = 0;- See Also:
- Constant Field Values
-
ENOLEDGER_VALUE
public static final int ENOLEDGER_VALUE
Server side Errors 4xx
ENOLEDGER = 402;- See Also:
- Constant Field Values
-
ENOENTRY_VALUE
public static final int ENOENTRY_VALUE
ENOENTRY = 403;- See Also:
- Constant Field Values
-
EBADREQ_VALUE
public static final int EBADREQ_VALUE
EBADREQ = 404;- See Also:
- Constant Field Values
-
EIO_VALUE
public static final int EIO_VALUE
IO/access errors 5xx
EIO = 501;- See Also:
- Constant Field Values
-
EUA_VALUE
public static final int EUA_VALUE
EUA = 502;- See Also:
- Constant Field Values
-
EBADVERSION_VALUE
public static final int EBADVERSION_VALUE
EBADVERSION = 503;- See Also:
- Constant Field Values
-
EFENCED_VALUE
public static final int EFENCED_VALUE
EFENCED = 504;- See Also:
- Constant Field Values
-
EREADONLY_VALUE
public static final int EREADONLY_VALUE
EREADONLY = 505;- See Also:
- Constant Field Values
-
ETOOMANYREQUESTS_VALUE
public static final int ETOOMANYREQUESTS_VALUE
ETOOMANYREQUESTS = 506;- See Also:
- Constant Field Values
-
EUNKNOWNLEDGERSTATE_VALUE
public static final int EUNKNOWNLEDGERSTATE_VALUE
EUNKNOWNLEDGERSTATE = 507;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static BookkeeperProtocol.StatusCode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (BookkeeperProtocol.StatusCode c : BookkeeperProtocol.StatusCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BookkeeperProtocol.StatusCode valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getNumber
public final int getNumber()
- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
@Deprecated public static BookkeeperProtocol.StatusCode valueOf(int value)
Deprecated.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:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
forNumber
public static BookkeeperProtocol.StatusCode forNumber(int value)
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<BookkeeperProtocol.StatusCode> internalGetValueMap()
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static BookkeeperProtocol.StatusCode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
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:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-