public static final class DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB extends com.google.protobuf.GeneratedMessageV3 implements DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLBOrBuilder
Consistent Hash-based load balancing can be used to provide soft session affinity based on HTTP headers, cookies or other properties. This load balancing policy is applicable only for HTTP connections. The affinity to a particular destination host will be lost when one or more hosts are added/removed from the destination service.Protobuf type
istio.networking.v1alpha3.LoadBalancerSettings.ConsistentHashLB| 限定符和类型 | 类和说明 |
|---|---|
static class |
DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder
Consistent Hash-based load balancing can be used to provide soft
session affinity based on HTTP headers, cookies or other
properties.
|
static class |
DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.HashKeyCase |
static class |
DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.HTTPCookie
Describes a HTTP cookie that will be used as the hash key for the
Consistent Hash load balancer.
|
static interface |
DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.HTTPCookieOrBuilder |
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| 限定符和类型 | 字段和说明 |
|---|---|
static int |
HTTP_COOKIE_FIELD_NUMBER |
static int |
HTTP_HEADER_NAME_FIELD_NUMBER |
static int |
HTTP_QUERY_PARAMETER_NAME_FIELD_NUMBER |
static int |
MINIMUM_RING_SIZE_FIELD_NUMBER |
static int |
USE_SOURCE_IP_FIELD_NUMBER |
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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTopublic static final int HTTP_HEADER_NAME_FIELD_NUMBER
public static final int HTTP_COOKIE_FIELD_NUMBER
public static final int USE_SOURCE_IP_FIELD_NUMBER
public static final int HTTP_QUERY_PARAMETER_NAME_FIELD_NUMBER
public static final int MINIMUM_RING_SIZE_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance 在类中 com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields 在接口中 com.google.protobuf.MessageOrBuildergetUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable 在类中 com.google.protobuf.GeneratedMessageV3public DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.HashKeyCase getHashKeyCase()
public boolean hasHttpHeaderName()
Hash based on a specific HTTP header.
string http_header_name = 1;hasHttpHeaderName 在接口中 DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLBOrBuilderpublic String getHttpHeaderName()
Hash based on a specific HTTP header.
string http_header_name = 1;getHttpHeaderName 在接口中 DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLBOrBuilderpublic com.google.protobuf.ByteString getHttpHeaderNameBytes()
Hash based on a specific HTTP header.
string http_header_name = 1;getHttpHeaderNameBytes 在接口中 DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLBOrBuilderpublic boolean hasHttpCookie()
Hash based on HTTP cookie.
.istio.networking.v1alpha3.LoadBalancerSettings.ConsistentHashLB.HTTPCookie http_cookie = 2;hasHttpCookie 在接口中 DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLBOrBuilderpublic DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.HTTPCookie getHttpCookie()
Hash based on HTTP cookie.
.istio.networking.v1alpha3.LoadBalancerSettings.ConsistentHashLB.HTTPCookie http_cookie = 2;getHttpCookie 在接口中 DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLBOrBuilderpublic DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.HTTPCookieOrBuilder getHttpCookieOrBuilder()
Hash based on HTTP cookie.
.istio.networking.v1alpha3.LoadBalancerSettings.ConsistentHashLB.HTTPCookie http_cookie = 2;public boolean hasUseSourceIp()
Hash based on the source IP address.
bool use_source_ip = 3;hasUseSourceIp 在接口中 DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLBOrBuilderpublic boolean getUseSourceIp()
Hash based on the source IP address.
bool use_source_ip = 3;getUseSourceIp 在接口中 DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLBOrBuilderpublic boolean hasHttpQueryParameterName()
Hash based on a specific HTTP query parameter.
string http_query_parameter_name = 5;hasHttpQueryParameterName 在接口中 DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLBOrBuilderpublic String getHttpQueryParameterName()
Hash based on a specific HTTP query parameter.
string http_query_parameter_name = 5;getHttpQueryParameterName 在接口中 DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLBOrBuilderpublic com.google.protobuf.ByteString getHttpQueryParameterNameBytes()
Hash based on a specific HTTP query parameter.
string http_query_parameter_name = 5;getHttpQueryParameterNameBytes 在接口中 DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLBOrBuilderpublic long getMinimumRingSize()
The minimum number of virtual nodes to use for the hash ring. Defaults to 1024. Larger ring sizes result in more granular load distributions. If the number of hosts in the load balancing pool is larger than the ring size, each host will be assigned a single virtual node.
uint64 minimum_ring_size = 4;getMinimumRingSize 在接口中 DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLBOrBuilderpublic final boolean isInitialized()
isInitialized 在接口中 com.google.protobuf.MessageLiteOrBuilderisInitialized 在类中 com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo 在接口中 com.google.protobuf.MessageLitewriteTo 在类中 com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize 在接口中 com.google.protobuf.MessageLitegetSerializedSize 在类中 com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals 在接口中 com.google.protobuf.Messageequals 在类中 com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode 在接口中 com.google.protobuf.MessagehashCode 在类中 com.google.protobuf.AbstractMessagepublic static DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB parseFrom(InputStream input) throws IOException
IOExceptionpublic static DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder newBuilderForType()
newBuilderForType 在接口中 com.google.protobuf.MessagenewBuilderForType 在接口中 com.google.protobuf.MessageLitepublic static DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder newBuilder()
public static DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder newBuilder(DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB prototype)
public DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder toBuilder()
toBuilder 在接口中 com.google.protobuf.MessagetoBuilder 在接口中 com.google.protobuf.MessageLiteprotected DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType 在类中 com.google.protobuf.GeneratedMessageV3public static DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB getDefaultInstance()
public static com.google.protobuf.Parser<DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB> parser()
public com.google.protobuf.Parser<DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB> getParserForType()
getParserForType 在接口中 com.google.protobuf.MessagegetParserForType 在接口中 com.google.protobuf.MessageLitegetParserForType 在类中 com.google.protobuf.GeneratedMessageV3public DestinationRuleOuterClass.LoadBalancerSettings.ConsistentHashLB getDefaultInstanceForType()
getDefaultInstanceForType 在接口中 com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType 在接口中 com.google.protobuf.MessageOrBuilderCopyright © 2018–2023 Alibaba Group. All rights reserved.