public final class ClusterLoadAssignment extends com.google.protobuf.GeneratedMessageV3 implements ClusterLoadAssignmentOrBuilder
Each route from RDS will map to a single cluster or traffic split across clusters using weights expressed in the RDS WeightedCluster. With EDS, each cluster is treated independently from a LB perspective, with LB taking place between the Localities within a cluster and at a finer granularity between the hosts within a locality. The percentage of traffic for each endpoint is determined by both its load_balancing_weight, and the load_balancing_weight of its locality. First, a locality will be selected, then an endpoint within that locality will be chose based on its weight. [#next-free-field: 6]Protobuf type
envoy.api.v2.ClusterLoadAssignment
Modifier and Type | Class and Description |
---|---|
static class |
ClusterLoadAssignment.Builder
Each route from RDS will map to a single cluster or traffic split across
clusters using weights expressed in the RDS WeightedCluster.
|
static class |
ClusterLoadAssignment.Policy
Load balancing policy settings.
|
static interface |
ClusterLoadAssignment.PolicyOrBuilder |
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
Modifier and Type | Field and Description |
---|---|
static int |
CLUSTER_NAME_FIELD_NUMBER |
static int |
ENDPOINTS_FIELD_NUMBER |
static int |
NAMED_ENDPOINTS_FIELD_NUMBER |
static int |
POLICY_FIELD_NUMBER |
Modifier and Type | Method and Description |
---|---|
boolean |
containsNamedEndpoints(String key)
Map of named endpoints that can be referenced in LocalityLbEndpoints.
|
boolean |
equals(Object obj) |
String |
getClusterName()
Name of the cluster.
|
com.google.protobuf.ByteString |
getClusterNameBytes()
Name of the cluster.
|
static ClusterLoadAssignment |
getDefaultInstance() |
ClusterLoadAssignment |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
LocalityLbEndpoints |
getEndpoints(int index)
List of endpoints to load balance to.
|
int |
getEndpointsCount()
List of endpoints to load balance to.
|
List<LocalityLbEndpoints> |
getEndpointsList()
List of endpoints to load balance to.
|
LocalityLbEndpointsOrBuilder |
getEndpointsOrBuilder(int index)
List of endpoints to load balance to.
|
List<? extends LocalityLbEndpointsOrBuilder> |
getEndpointsOrBuilderList()
List of endpoints to load balance to.
|
Map<String,Endpoint> |
getNamedEndpoints()
Deprecated.
|
int |
getNamedEndpointsCount()
Map of named endpoints that can be referenced in LocalityLbEndpoints.
|
Map<String,Endpoint> |
getNamedEndpointsMap()
Map of named endpoints that can be referenced in LocalityLbEndpoints.
|
Endpoint |
getNamedEndpointsOrDefault(String key,
Endpoint defaultValue)
Map of named endpoints that can be referenced in LocalityLbEndpoints.
|
Endpoint |
getNamedEndpointsOrThrow(String key)
Map of named endpoints that can be referenced in LocalityLbEndpoints.
|
com.google.protobuf.Parser<ClusterLoadAssignment> |
getParserForType() |
ClusterLoadAssignment.Policy |
getPolicy()
Load balancing policy settings.
|
ClusterLoadAssignment.PolicyOrBuilder |
getPolicyOrBuilder()
Load balancing policy settings.
|
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
boolean |
hasPolicy()
Load balancing policy settings.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static ClusterLoadAssignment.Builder |
newBuilder() |
static ClusterLoadAssignment.Builder |
newBuilder(ClusterLoadAssignment prototype) |
ClusterLoadAssignment.Builder |
newBuilderForType() |
protected ClusterLoadAssignment.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static ClusterLoadAssignment |
parseDelimitedFrom(InputStream input) |
static ClusterLoadAssignment |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ClusterLoadAssignment |
parseFrom(byte[] data) |
static ClusterLoadAssignment |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ClusterLoadAssignment |
parseFrom(ByteBuffer data) |
static ClusterLoadAssignment |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ClusterLoadAssignment |
parseFrom(com.google.protobuf.ByteString data) |
static ClusterLoadAssignment |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ClusterLoadAssignment |
parseFrom(com.google.protobuf.CodedInputStream input) |
static ClusterLoadAssignment |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ClusterLoadAssignment |
parseFrom(InputStream input) |
static ClusterLoadAssignment |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<ClusterLoadAssignment> |
parser() |
ClusterLoadAssignment.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, 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
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public static final int CLUSTER_NAME_FIELD_NUMBER
public static final int ENDPOINTS_FIELD_NUMBER
public static final int NAMED_ENDPOINTS_FIELD_NUMBER
public static final int POLICY_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance
in class com.google.protobuf.GeneratedMessageV3
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields
in interface com.google.protobuf.MessageOrBuilder
getUnknownFields
in class com.google.protobuf.GeneratedMessageV3
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField
in class com.google.protobuf.GeneratedMessageV3
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3
public String getClusterName()
Name of the cluster. This will be the :ref:`service_name <envoy_api_field_Cluster.EdsClusterConfig.service_name>` value if specified in the cluster :ref:`EdsClusterConfig <envoy_api_msg_Cluster.EdsClusterConfig>`.
string cluster_name = 1 [(.validate.rules) = { ... }
getClusterName
in interface ClusterLoadAssignmentOrBuilder
public com.google.protobuf.ByteString getClusterNameBytes()
Name of the cluster. This will be the :ref:`service_name <envoy_api_field_Cluster.EdsClusterConfig.service_name>` value if specified in the cluster :ref:`EdsClusterConfig <envoy_api_msg_Cluster.EdsClusterConfig>`.
string cluster_name = 1 [(.validate.rules) = { ... }
getClusterNameBytes
in interface ClusterLoadAssignmentOrBuilder
public List<LocalityLbEndpoints> getEndpointsList()
List of endpoints to load balance to.
repeated .envoy.api.v2.endpoint.LocalityLbEndpoints endpoints = 2;
getEndpointsList
in interface ClusterLoadAssignmentOrBuilder
public List<? extends LocalityLbEndpointsOrBuilder> getEndpointsOrBuilderList()
List of endpoints to load balance to.
repeated .envoy.api.v2.endpoint.LocalityLbEndpoints endpoints = 2;
getEndpointsOrBuilderList
in interface ClusterLoadAssignmentOrBuilder
public int getEndpointsCount()
List of endpoints to load balance to.
repeated .envoy.api.v2.endpoint.LocalityLbEndpoints endpoints = 2;
getEndpointsCount
in interface ClusterLoadAssignmentOrBuilder
public LocalityLbEndpoints getEndpoints(int index)
List of endpoints to load balance to.
repeated .envoy.api.v2.endpoint.LocalityLbEndpoints endpoints = 2;
getEndpoints
in interface ClusterLoadAssignmentOrBuilder
public LocalityLbEndpointsOrBuilder getEndpointsOrBuilder(int index)
List of endpoints to load balance to.
repeated .envoy.api.v2.endpoint.LocalityLbEndpoints endpoints = 2;
getEndpointsOrBuilder
in interface ClusterLoadAssignmentOrBuilder
public int getNamedEndpointsCount()
ClusterLoadAssignmentOrBuilder
Map of named endpoints that can be referenced in LocalityLbEndpoints. [#not-implemented-hide:]
map<string, .envoy.api.v2.endpoint.Endpoint> named_endpoints = 5;
getNamedEndpointsCount
in interface ClusterLoadAssignmentOrBuilder
public boolean containsNamedEndpoints(String key)
Map of named endpoints that can be referenced in LocalityLbEndpoints. [#not-implemented-hide:]
map<string, .envoy.api.v2.endpoint.Endpoint> named_endpoints = 5;
containsNamedEndpoints
in interface ClusterLoadAssignmentOrBuilder
@Deprecated public Map<String,Endpoint> getNamedEndpoints()
getNamedEndpointsMap()
instead.getNamedEndpoints
in interface ClusterLoadAssignmentOrBuilder
public Map<String,Endpoint> getNamedEndpointsMap()
Map of named endpoints that can be referenced in LocalityLbEndpoints. [#not-implemented-hide:]
map<string, .envoy.api.v2.endpoint.Endpoint> named_endpoints = 5;
getNamedEndpointsMap
in interface ClusterLoadAssignmentOrBuilder
public Endpoint getNamedEndpointsOrDefault(String key, Endpoint defaultValue)
Map of named endpoints that can be referenced in LocalityLbEndpoints. [#not-implemented-hide:]
map<string, .envoy.api.v2.endpoint.Endpoint> named_endpoints = 5;
getNamedEndpointsOrDefault
in interface ClusterLoadAssignmentOrBuilder
public Endpoint getNamedEndpointsOrThrow(String key)
Map of named endpoints that can be referenced in LocalityLbEndpoints. [#not-implemented-hide:]
map<string, .envoy.api.v2.endpoint.Endpoint> named_endpoints = 5;
getNamedEndpointsOrThrow
in interface ClusterLoadAssignmentOrBuilder
public boolean hasPolicy()
Load balancing policy settings.
.envoy.api.v2.ClusterLoadAssignment.Policy policy = 4;
hasPolicy
in interface ClusterLoadAssignmentOrBuilder
public ClusterLoadAssignment.Policy getPolicy()
Load balancing policy settings.
.envoy.api.v2.ClusterLoadAssignment.Policy policy = 4;
getPolicy
in interface ClusterLoadAssignmentOrBuilder
public ClusterLoadAssignment.PolicyOrBuilder getPolicyOrBuilder()
Load balancing policy settings.
.envoy.api.v2.ClusterLoadAssignment.Policy policy = 4;
getPolicyOrBuilder
in interface ClusterLoadAssignmentOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface com.google.protobuf.Message
equals
in class com.google.protobuf.AbstractMessage
public int hashCode()
hashCode
in interface com.google.protobuf.Message
hashCode
in class com.google.protobuf.AbstractMessage
public static ClusterLoadAssignment parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ClusterLoadAssignment parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ClusterLoadAssignment parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ClusterLoadAssignment parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ClusterLoadAssignment parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ClusterLoadAssignment parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ClusterLoadAssignment parseFrom(InputStream input) throws IOException
IOException
public static ClusterLoadAssignment parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static ClusterLoadAssignment parseDelimitedFrom(InputStream input) throws IOException
IOException
public static ClusterLoadAssignment parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static ClusterLoadAssignment parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static ClusterLoadAssignment parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public ClusterLoadAssignment.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static ClusterLoadAssignment.Builder newBuilder()
public static ClusterLoadAssignment.Builder newBuilder(ClusterLoadAssignment prototype)
public ClusterLoadAssignment.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected ClusterLoadAssignment.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessageV3
public static ClusterLoadAssignment getDefaultInstance()
public static com.google.protobuf.Parser<ClusterLoadAssignment> parser()
public com.google.protobuf.Parser<ClusterLoadAssignment> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessageV3
public ClusterLoadAssignment getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
Copyright © 2018–2021 The Envoy Project. All rights reserved.