Package io.grpc.xds.client
Class Bootstrapper.AuthorityInfo
- java.lang.Object
-
- io.grpc.xds.client.Bootstrapper.AuthorityInfo
-
- Direct Known Subclasses:
AutoValue_Bootstrapper_AuthorityInfo
- Enclosing class:
- Bootstrapper
public abstract static class Bootstrapper.AuthorityInfo extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description AuthorityInfo()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract java.lang.String
clientListenerResourceNameTemplate()
A template for the name of the Listener resource to subscribe to for a gRPC client channel.static Bootstrapper.AuthorityInfo
create(java.lang.String clientListenerResourceNameTemplate, java.util.List<Bootstrapper.ServerInfo> xdsServers)
abstract com.google.common.collect.ImmutableList<Bootstrapper.ServerInfo>
xdsServers()
Ordered list of xDS servers to contact for this authority.
-
-
-
Method Detail
-
clientListenerResourceNameTemplate
public abstract java.lang.String clientListenerResourceNameTemplate()
A template for the name of the Listener resource to subscribe to for a gRPC client channel. Used only when the channel is created using an "xds:" URI with this authority name.The token "%s", if present in this string, will be replaced with %-encoded service authority (i.e., the path part of the target URI used to create the gRPC channel).
Return value must start with
"xdstp://<authority_name>/"
.
-
xdsServers
public abstract com.google.common.collect.ImmutableList<Bootstrapper.ServerInfo> xdsServers()
Ordered list of xDS servers to contact for this authority.If the same server is listed in multiple authorities, the entries will be de-duped (i.e., resources for both authorities will be fetched on the same ADS stream).
Defaults to the top-level server list
Bootstrapper.BootstrapInfo.servers()
. Must not be empty.
-
create
public static Bootstrapper.AuthorityInfo create(java.lang.String clientListenerResourceNameTemplate, java.util.List<Bootstrapper.ServerInfo> xdsServers)
-
-