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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic 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.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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 ClusterLoadAssignmentOrBuilderpublic 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 ClusterLoadAssignmentOrBuilderpublic List<LocalityLbEndpoints> getEndpointsList()
List of endpoints to load balance to.
repeated .envoy.api.v2.endpoint.LocalityLbEndpoints endpoints = 2;getEndpointsList in interface ClusterLoadAssignmentOrBuilderpublic List<? extends LocalityLbEndpointsOrBuilder> getEndpointsOrBuilderList()
List of endpoints to load balance to.
repeated .envoy.api.v2.endpoint.LocalityLbEndpoints endpoints = 2;getEndpointsOrBuilderList in interface ClusterLoadAssignmentOrBuilderpublic int getEndpointsCount()
List of endpoints to load balance to.
repeated .envoy.api.v2.endpoint.LocalityLbEndpoints endpoints = 2;getEndpointsCount in interface ClusterLoadAssignmentOrBuilderpublic LocalityLbEndpoints getEndpoints(int index)
List of endpoints to load balance to.
repeated .envoy.api.v2.endpoint.LocalityLbEndpoints endpoints = 2;getEndpoints in interface ClusterLoadAssignmentOrBuilderpublic LocalityLbEndpointsOrBuilder getEndpointsOrBuilder(int index)
List of endpoints to load balance to.
repeated .envoy.api.v2.endpoint.LocalityLbEndpoints endpoints = 2;getEndpointsOrBuilder in interface ClusterLoadAssignmentOrBuilderpublic int getNamedEndpointsCount()
ClusterLoadAssignmentOrBuilderMap 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 ClusterLoadAssignmentOrBuilderpublic 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 ClusterLoadAssignmentOrBuilderpublic 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 ClusterLoadAssignmentOrBuilderpublic 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 ClusterLoadAssignmentOrBuilderpublic 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 ClusterLoadAssignmentOrBuilderpublic boolean hasPolicy()
Load balancing policy settings.
.envoy.api.v2.ClusterLoadAssignment.Policy policy = 4;hasPolicy in interface ClusterLoadAssignmentOrBuilderpublic ClusterLoadAssignment.Policy getPolicy()
Load balancing policy settings.
.envoy.api.v2.ClusterLoadAssignment.Policy policy = 4;getPolicy in interface ClusterLoadAssignmentOrBuilderpublic ClusterLoadAssignment.PolicyOrBuilder getPolicyOrBuilder()
Load balancing policy settings.
.envoy.api.v2.ClusterLoadAssignment.Policy policy = 4;getPolicyOrBuilder in interface ClusterLoadAssignmentOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static ClusterLoadAssignment parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ClusterLoadAssignment parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ClusterLoadAssignment parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ClusterLoadAssignment parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ClusterLoadAssignment parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ClusterLoadAssignment parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ClusterLoadAssignment parseFrom(InputStream input) throws IOException
IOExceptionpublic static ClusterLoadAssignment parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ClusterLoadAssignment parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static ClusterLoadAssignment parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ClusterLoadAssignment parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static ClusterLoadAssignment parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic ClusterLoadAssignment.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static ClusterLoadAssignment.Builder newBuilder()
public static ClusterLoadAssignment.Builder newBuilder(ClusterLoadAssignment prototype)
public ClusterLoadAssignment.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected ClusterLoadAssignment.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static ClusterLoadAssignment getDefaultInstance()
public static com.google.protobuf.Parser<ClusterLoadAssignment> parser()
public com.google.protobuf.Parser<ClusterLoadAssignment> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public ClusterLoadAssignment getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2018–2021 The Envoy Project. All rights reserved.