Class AutoValue_Bootstrapper_BootstrapInfo
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static final class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final com.google.common.collect.ImmutableMap
<String, Bootstrapper.AuthorityInfo> private final com.google.common.collect.ImmutableMap
<String, Bootstrapper.CertificateProviderInfo> private final String
private final EnvoyProtoData.Node
private final String
private final com.google.common.collect.ImmutableList
<Bootstrapper.ServerInfo> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
AutoValue_Bootstrapper_BootstrapInfo
(com.google.common.collect.ImmutableList<Bootstrapper.ServerInfo> servers, EnvoyProtoData.Node node, com.google.common.collect.ImmutableMap<String, Bootstrapper.CertificateProviderInfo> certProviders, String serverListenerResourceNameTemplate, String clientDefaultListenerResourceNameTemplate, com.google.common.collect.ImmutableMap<String, Bootstrapper.AuthorityInfo> authorities) -
Method Summary
Modifier and TypeMethodDescriptioncom.google.common.collect.ImmutableMap
<String, Bootstrapper.AuthorityInfo> A map of authority name to corresponding configuration.com.google.common.collect.ImmutableMap
<String, Bootstrapper.CertificateProviderInfo> Returns the cert-providers config map.A template for the name of the Listener resource to subscribe to for a gRPC client channel.boolean
int
hashCode()
node()
Returns the node identifier to be included in xDS requests.A template for the name of the Listener resource to subscribe to for a gRPC server.com.google.common.collect.ImmutableList
<Bootstrapper.ServerInfo> servers()
Returns the list of xDS servers to be connected to.toString()
Methods inherited from class io.grpc.xds.client.Bootstrapper.BootstrapInfo
builder
-
Field Details
-
servers
-
node
-
certProviders
private final com.google.common.collect.ImmutableMap<String,Bootstrapper.CertificateProviderInfo> certProviders -
serverListenerResourceNameTemplate
-
clientDefaultListenerResourceNameTemplate
-
authorities
-
-
Constructor Details
-
AutoValue_Bootstrapper_BootstrapInfo
private AutoValue_Bootstrapper_BootstrapInfo(com.google.common.collect.ImmutableList<Bootstrapper.ServerInfo> servers, EnvoyProtoData.Node node, @Nullable com.google.common.collect.ImmutableMap<String, Bootstrapper.CertificateProviderInfo> certProviders, @Nullable String serverListenerResourceNameTemplate, String clientDefaultListenerResourceNameTemplate, com.google.common.collect.ImmutableMap<String, Bootstrapper.AuthorityInfo> authorities)
-
-
Method Details
-
servers
Description copied from class:Bootstrapper.BootstrapInfo
Returns the list of xDS servers to be connected to. Must not be empty.- Specified by:
servers
in classBootstrapper.BootstrapInfo
-
node
Description copied from class:Bootstrapper.BootstrapInfo
Returns the node identifier to be included in xDS requests.- Specified by:
node
in classBootstrapper.BootstrapInfo
-
certProviders
@Nullable public com.google.common.collect.ImmutableMap<String,Bootstrapper.CertificateProviderInfo> certProviders()Description copied from class:Bootstrapper.BootstrapInfo
Returns the cert-providers config map.- Specified by:
certProviders
in classBootstrapper.BootstrapInfo
-
serverListenerResourceNameTemplate
Description copied from class:Bootstrapper.BootstrapInfo
A template for the name of the Listener resource to subscribe to for a gRPC server.If starts with "xdstp:", will be interpreted as a new-style name, in which case the authority of the URI will be used to select the relevant configuration in the "authorities" map. The token "%s", if present in this string, will be replaced with the IP and port on which the server is listening. If the template starts with "xdstp:", the replaced string will be %-encoded.
There is no default; if unset, xDS-based server creation fails.
- Specified by:
serverListenerResourceNameTemplate
in classBootstrapper.BootstrapInfo
-
clientDefaultListenerResourceNameTemplate
Description copied from class:Bootstrapper.BootstrapInfo
A template for the name of the Listener resource to subscribe to for a gRPC client channel. Used only when the channel is created with an "xds:" URI with no authority.If starts with "xdstp:", will be interpreted as a new-style name, in which case the authority of the URI will be used to select the relevant configuration in the "authorities" map.
The token "%s", if present in this string, will be replaced with the service authority (i.e., the path part of the target URI used to create the gRPC channel). If the template starts with "xdstp:", the replaced string will be %-encoded.
Defaults to
"%s"
.- Specified by:
clientDefaultListenerResourceNameTemplate
in classBootstrapper.BootstrapInfo
-
authorities
Description copied from class:Bootstrapper.BootstrapInfo
A map of authority name to corresponding configuration.This is used in the following cases:
- A gRPC client channel is created using an "xds:" URI that includes an authority.
- A gRPC client channel is created using an "xds:" URI with no authority, but the "client_default_listener_resource_name_template" field above turns it into an "xdstp:" URI.
- A gRPC server is created and the "server_listener_resource_name_template" field is an "xdstp:" URI.
In any of those cases, it is an error if the specified authority is not present in this map.
Defaults to an empty map.
- Specified by:
authorities
in classBootstrapper.BootstrapInfo
-
toString
-
equals
-
hashCode
public int hashCode()
-