Package io.envoyproxy.envoy.admin.v3
Enum ServerInfo.State
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<ServerInfo.State>,java.lang.constant.Constable
- Enclosing class:
- ServerInfo
public static enum ServerInfo.State
extends Enum<ServerInfo.State>
implements com.google.protobuf.ProtocolMessageEnum
Protobuf enum
envoy.admin.v3.ServerInfo.State-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionServer is draining listeners in response to external health checks failing.Server is running the cluster manager initialization callbacks (e.g., RDS).Server is live and serving traffic.Server has not yet completed cluster manager initialization. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intServer is draining listeners in response to external health checks failing.static final intServer is running the cluster manager initialization callbacks (e.g., RDS).static final intServer is live and serving traffic.static final intServer has not yet completed cluster manager initialization. -
Method Summary
Modifier and TypeMethodDescriptionstatic ServerInfo.StateforNumber(int value) static final com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<ServerInfo.State>static ServerInfo.StatevalueOf(int value) Deprecated.static ServerInfo.StatevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static ServerInfo.StateReturns the enum constant of this type with the specified name.static ServerInfo.State[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
LIVE
Server is live and serving traffic.
LIVE = 0; -
DRAINING
Server is draining listeners in response to external health checks failing.
DRAINING = 1; -
PRE_INITIALIZING
Server has not yet completed cluster manager initialization.
PRE_INITIALIZING = 2; -
INITIALIZING
Server is running the cluster manager initialization callbacks (e.g., RDS).
INITIALIZING = 3; -
UNRECOGNIZED
-
-
Field Details
-
LIVE_VALUE
public static final int LIVE_VALUEServer is live and serving traffic.
LIVE = 0;- See Also:
-
DRAINING_VALUE
public static final int DRAINING_VALUEServer is draining listeners in response to external health checks failing.
DRAINING = 1;- See Also:
-
PRE_INITIALIZING_VALUE
public static final int PRE_INITIALIZING_VALUEServer has not yet completed cluster manager initialization.
PRE_INITIALIZING = 2;- See Also:
-
INITIALIZING_VALUE
public static final int INITIALIZING_VALUEServer is running the cluster manager initialization callbacks (e.g., RDS).
INITIALIZING = 3;- See Also:
-
-
Method Details
-
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
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 nameNullPointerException- 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.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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
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
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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-