Class HostStatus
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- io.envoyproxy.envoy.admin.v2alpha.HostStatus
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,HostStatusOrBuilder,Serializable
public final class HostStatus extends com.google.protobuf.GeneratedMessageV3 implements HostStatusOrBuilder
Current state of a particular host. [#next-free-field: 10]
Protobuf typeenvoy.admin.v2alpha.HostStatus- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHostStatus.BuilderCurrent state of a particular host.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intADDRESS_FIELD_NUMBERstatic intHEALTH_STATUS_FIELD_NUMBERstatic intHOSTNAME_FIELD_NUMBERstatic intLOCAL_ORIGIN_SUCCESS_RATE_FIELD_NUMBERstatic intLOCALITY_FIELD_NUMBERstatic intPRIORITY_FIELD_NUMBERstatic intSTATS_FIELD_NUMBERstatic intSUCCESS_RATE_FIELD_NUMBERstatic intWEIGHT_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)AddressgetAddress()Address of this host.AddressOrBuildergetAddressOrBuilder()Address of this host.static HostStatusgetDefaultInstance()HostStatusgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()HostHealthStatusgetHealthStatus()The host's current health status.HostHealthStatusOrBuildergetHealthStatusOrBuilder()The host's current health status.StringgetHostname()The hostname of the host, if applicable.com.google.protobuf.ByteStringgetHostnameBytes()The hostname of the host, if applicable.LocalitygetLocality()locality of the host.LocalityOrBuildergetLocalityOrBuilder()locality of the host.PercentgetLocalOriginSuccessRate()Request success rate for this host over the last calculated interval when only locally originated errors are taken into account and externally originated errors were treated as success.PercentOrBuildergetLocalOriginSuccessRateOrBuilder()Request success rate for this host over the last calculated interval when only locally originated errors are taken into account and externally originated errors were treated as success.com.google.protobuf.Parser<HostStatus>getParserForType()intgetPriority()The host's priority.intgetSerializedSize()SimpleMetricgetStats(int index)List of stats specific to this host.intgetStatsCount()List of stats specific to this host.List<SimpleMetric>getStatsList()List of stats specific to this host.SimpleMetricOrBuildergetStatsOrBuilder(int index)List of stats specific to this host.List<? extends SimpleMetricOrBuilder>getStatsOrBuilderList()List of stats specific to this host.PercentgetSuccessRate()Request success rate for this host over the last calculated interval.PercentOrBuildergetSuccessRateOrBuilder()Request success rate for this host over the last calculated interval.com.google.protobuf.UnknownFieldSetgetUnknownFields()intgetWeight()The host's weight.booleanhasAddress()Address of this host.inthashCode()booleanhasHealthStatus()The host's current health status.booleanhasLocality()locality of the host.booleanhasLocalOriginSuccessRate()Request success rate for this host over the last calculated interval when only locally originated errors are taken into account and externally originated errors were treated as success.booleanhasSuccessRate()Request success rate for this host over the last calculated interval.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static HostStatus.BuildernewBuilder()static HostStatus.BuildernewBuilder(HostStatus prototype)HostStatus.BuildernewBuilderForType()protected HostStatus.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static HostStatusparseDelimitedFrom(InputStream input)static HostStatusparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static HostStatusparseFrom(byte[] data)static HostStatusparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static HostStatusparseFrom(com.google.protobuf.ByteString data)static HostStatusparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static HostStatusparseFrom(com.google.protobuf.CodedInputStream input)static HostStatusparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static HostStatusparseFrom(InputStream input)static HostStatusparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static HostStatusparseFrom(ByteBuffer data)static HostStatusparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<HostStatus>parser()HostStatus.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
ADDRESS_FIELD_NUMBER
public static final int ADDRESS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STATS_FIELD_NUMBER
public static final int STATS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
HEALTH_STATUS_FIELD_NUMBER
public static final int HEALTH_STATUS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SUCCESS_RATE_FIELD_NUMBER
public static final int SUCCESS_RATE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
WEIGHT_FIELD_NUMBER
public static final int WEIGHT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
HOSTNAME_FIELD_NUMBER
public static final int HOSTNAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PRIORITY_FIELD_NUMBER
public static final int PRIORITY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LOCAL_ORIGIN_SUCCESS_RATE_FIELD_NUMBER
public static final int LOCAL_ORIGIN_SUCCESS_RATE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LOCALITY_FIELD_NUMBER
public static final int LOCALITY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
hasAddress
public boolean hasAddress()
Address of this host.
.envoy.api.v2.core.Address address = 1;- Specified by:
hasAddressin interfaceHostStatusOrBuilder- Returns:
- Whether the address field is set.
-
getAddress
public Address getAddress()
Address of this host.
.envoy.api.v2.core.Address address = 1;- Specified by:
getAddressin interfaceHostStatusOrBuilder- Returns:
- The address.
-
getAddressOrBuilder
public AddressOrBuilder getAddressOrBuilder()
Address of this host.
.envoy.api.v2.core.Address address = 1;- Specified by:
getAddressOrBuilderin interfaceHostStatusOrBuilder
-
getStatsList
public List<SimpleMetric> getStatsList()
List of stats specific to this host.
repeated .envoy.admin.v2alpha.SimpleMetric stats = 2;- Specified by:
getStatsListin interfaceHostStatusOrBuilder
-
getStatsOrBuilderList
public List<? extends SimpleMetricOrBuilder> getStatsOrBuilderList()
List of stats specific to this host.
repeated .envoy.admin.v2alpha.SimpleMetric stats = 2;- Specified by:
getStatsOrBuilderListin interfaceHostStatusOrBuilder
-
getStatsCount
public int getStatsCount()
List of stats specific to this host.
repeated .envoy.admin.v2alpha.SimpleMetric stats = 2;- Specified by:
getStatsCountin interfaceHostStatusOrBuilder
-
getStats
public SimpleMetric getStats(int index)
List of stats specific to this host.
repeated .envoy.admin.v2alpha.SimpleMetric stats = 2;- Specified by:
getStatsin interfaceHostStatusOrBuilder
-
getStatsOrBuilder
public SimpleMetricOrBuilder getStatsOrBuilder(int index)
List of stats specific to this host.
repeated .envoy.admin.v2alpha.SimpleMetric stats = 2;- Specified by:
getStatsOrBuilderin interfaceHostStatusOrBuilder
-
hasHealthStatus
public boolean hasHealthStatus()
The host's current health status.
.envoy.admin.v2alpha.HostHealthStatus health_status = 3;- Specified by:
hasHealthStatusin interfaceHostStatusOrBuilder- Returns:
- Whether the healthStatus field is set.
-
getHealthStatus
public HostHealthStatus getHealthStatus()
The host's current health status.
.envoy.admin.v2alpha.HostHealthStatus health_status = 3;- Specified by:
getHealthStatusin interfaceHostStatusOrBuilder- Returns:
- The healthStatus.
-
getHealthStatusOrBuilder
public HostHealthStatusOrBuilder getHealthStatusOrBuilder()
The host's current health status.
.envoy.admin.v2alpha.HostHealthStatus health_status = 3;- Specified by:
getHealthStatusOrBuilderin interfaceHostStatusOrBuilder
-
hasSuccessRate
public boolean hasSuccessRate()
Request success rate for this host over the last calculated interval. If :ref:`outlier_detection.split_external_local_origin_errors<envoy_api_field_cluster.OutlierDetection.split_external_local_origin_errors>` is *false*, all errors: externally and locally generated were used in success rate calculation. If :ref:`outlier_detection.split_external_local_origin_errors<envoy_api_field_cluster.OutlierDetection.split_external_local_origin_errors>` is *true*, only externally generated errors were used in success rate calculation. See :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for details. Note: the message will not be present if host did not have enough request volume to calculate success rate or the cluster did not have enough hosts to run through success rate outlier ejection.
.envoy.type.Percent success_rate = 4;- Specified by:
hasSuccessRatein interfaceHostStatusOrBuilder- Returns:
- Whether the successRate field is set.
-
getSuccessRate
public Percent getSuccessRate()
Request success rate for this host over the last calculated interval. If :ref:`outlier_detection.split_external_local_origin_errors<envoy_api_field_cluster.OutlierDetection.split_external_local_origin_errors>` is *false*, all errors: externally and locally generated were used in success rate calculation. If :ref:`outlier_detection.split_external_local_origin_errors<envoy_api_field_cluster.OutlierDetection.split_external_local_origin_errors>` is *true*, only externally generated errors were used in success rate calculation. See :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for details. Note: the message will not be present if host did not have enough request volume to calculate success rate or the cluster did not have enough hosts to run through success rate outlier ejection.
.envoy.type.Percent success_rate = 4;- Specified by:
getSuccessRatein interfaceHostStatusOrBuilder- Returns:
- The successRate.
-
getSuccessRateOrBuilder
public PercentOrBuilder getSuccessRateOrBuilder()
Request success rate for this host over the last calculated interval. If :ref:`outlier_detection.split_external_local_origin_errors<envoy_api_field_cluster.OutlierDetection.split_external_local_origin_errors>` is *false*, all errors: externally and locally generated were used in success rate calculation. If :ref:`outlier_detection.split_external_local_origin_errors<envoy_api_field_cluster.OutlierDetection.split_external_local_origin_errors>` is *true*, only externally generated errors were used in success rate calculation. See :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for details. Note: the message will not be present if host did not have enough request volume to calculate success rate or the cluster did not have enough hosts to run through success rate outlier ejection.
.envoy.type.Percent success_rate = 4;- Specified by:
getSuccessRateOrBuilderin interfaceHostStatusOrBuilder
-
getWeight
public int getWeight()
The host's weight. If not configured, the value defaults to 1.
uint32 weight = 5;- Specified by:
getWeightin interfaceHostStatusOrBuilder- Returns:
- The weight.
-
getHostname
public String getHostname()
The hostname of the host, if applicable.
string hostname = 6;- Specified by:
getHostnamein interfaceHostStatusOrBuilder- Returns:
- The hostname.
-
getHostnameBytes
public com.google.protobuf.ByteString getHostnameBytes()
The hostname of the host, if applicable.
string hostname = 6;- Specified by:
getHostnameBytesin interfaceHostStatusOrBuilder- Returns:
- The bytes for hostname.
-
getPriority
public int getPriority()
The host's priority. If not configured, the value defaults to 0 (highest priority).
uint32 priority = 7;- Specified by:
getPriorityin interfaceHostStatusOrBuilder- Returns:
- The priority.
-
hasLocalOriginSuccessRate
public boolean hasLocalOriginSuccessRate()
Request success rate for this host over the last calculated interval when only locally originated errors are taken into account and externally originated errors were treated as success. This field should be interpreted only when :ref:`outlier_detection.split_external_local_origin_errors<envoy_api_field_cluster.OutlierDetection.split_external_local_origin_errors>` is *true*. See :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for details. Note: the message will not be present if host did not have enough request volume to calculate success rate or the cluster did not have enough hosts to run through success rate outlier ejection.
.envoy.type.Percent local_origin_success_rate = 8;- Specified by:
hasLocalOriginSuccessRatein interfaceHostStatusOrBuilder- Returns:
- Whether the localOriginSuccessRate field is set.
-
getLocalOriginSuccessRate
public Percent getLocalOriginSuccessRate()
Request success rate for this host over the last calculated interval when only locally originated errors are taken into account and externally originated errors were treated as success. This field should be interpreted only when :ref:`outlier_detection.split_external_local_origin_errors<envoy_api_field_cluster.OutlierDetection.split_external_local_origin_errors>` is *true*. See :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for details. Note: the message will not be present if host did not have enough request volume to calculate success rate or the cluster did not have enough hosts to run through success rate outlier ejection.
.envoy.type.Percent local_origin_success_rate = 8;- Specified by:
getLocalOriginSuccessRatein interfaceHostStatusOrBuilder- Returns:
- The localOriginSuccessRate.
-
getLocalOriginSuccessRateOrBuilder
public PercentOrBuilder getLocalOriginSuccessRateOrBuilder()
Request success rate for this host over the last calculated interval when only locally originated errors are taken into account and externally originated errors were treated as success. This field should be interpreted only when :ref:`outlier_detection.split_external_local_origin_errors<envoy_api_field_cluster.OutlierDetection.split_external_local_origin_errors>` is *true*. See :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for details. Note: the message will not be present if host did not have enough request volume to calculate success rate or the cluster did not have enough hosts to run through success rate outlier ejection.
.envoy.type.Percent local_origin_success_rate = 8;- Specified by:
getLocalOriginSuccessRateOrBuilderin interfaceHostStatusOrBuilder
-
hasLocality
public boolean hasLocality()
locality of the host.
.envoy.api.v2.core.Locality locality = 9;- Specified by:
hasLocalityin interfaceHostStatusOrBuilder- Returns:
- Whether the locality field is set.
-
getLocality
public Locality getLocality()
locality of the host.
.envoy.api.v2.core.Locality locality = 9;- Specified by:
getLocalityin interfaceHostStatusOrBuilder- Returns:
- The locality.
-
getLocalityOrBuilder
public LocalityOrBuilder getLocalityOrBuilder()
locality of the host.
.envoy.api.v2.core.Locality locality = 9;- Specified by:
getLocalityOrBuilderin interfaceHostStatusOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static HostStatus parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HostStatus parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HostStatus parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HostStatus parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HostStatus parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HostStatus parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HostStatus parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static HostStatus parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static HostStatus parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static HostStatus parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static HostStatus parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static HostStatus parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public HostStatus.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static HostStatus.Builder newBuilder()
-
newBuilder
public static HostStatus.Builder newBuilder(HostStatus prototype)
-
toBuilder
public HostStatus.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected HostStatus.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static HostStatus getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<HostStatus> parser()
-
getParserForType
public com.google.protobuf.Parser<HostStatus> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public HostStatus getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-