Package io.deephaven.envoysupport.xds
Class AbstractEnvoyDiscoveryService
java.lang.Object
io.deephaven.envoysupport.xds.AbstractEnvoyDiscoveryService
- All Implemented Interfaces:
EnvoyDiscoveryService
- Direct Known Subclasses:
EnvoyV3DiscoveryService
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final io.deephaven.shadow.envoyproxy.io.envoyproxy.controlplane.cache.NodeGroup<String>protected static final Stringprotected final com.fishlib.io.logger.Loggerprotected final WorkerStreamProviderA view of this discovery service as a WorkerStreamProviderprotected final List<WorkerStreamProvider>Actual WorkerStreamProviders that will be concatenated into a single stream for the discovery service.protected final int -
Constructor Summary
ConstructorsConstructorDescriptionAbstractEnvoyDiscoveryService(@NotNull com.fishlib.io.logger.Logger log, @NotNull String envoyFrontProxyUrl, int xdsPort) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddWorkerStreamSource(WorkerStreamProvider workerStreamProvider) Add a WorkerStreamProvider to be used in dynamic route configureation.static StringclusterPrefix(@NotNull String[] hosts, int[] ports, long salt) static StringclusterPrefix(@NotNull String host, int port, long salt) static StringdoSha(Consumer<MessageDigest> body, long salt) static StringworkerPrefix(WorkerStreamProvider.WorkerInfo workerInfo) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.deephaven.envoysupport.xds.EnvoyDiscoveryService
addKnownRouteBuilders, init, update
-
Field Details
-
ENVOY_CACHE_KEY
- See Also:
-
DEFAULT_NODE_GROUP
protected static final io.deephaven.shadow.envoyproxy.io.envoyproxy.controlplane.cache.NodeGroup<String> DEFAULT_NODE_GROUP -
log
protected final com.fishlib.io.logger.Logger log -
xdsPort
protected final int xdsPort -
thisAsWorkerStreamProvider
A view of this discovery service as a WorkerStreamProvider -
workerStreamProviders
Actual WorkerStreamProviders that will be concatenated into a single stream for the discovery service.
-
-
Constructor Details
-
AbstractEnvoyDiscoveryService
public AbstractEnvoyDiscoveryService(@NotNull @NotNull com.fishlib.io.logger.Logger log, @NotNull @NotNull String envoyFrontProxyUrl, int xdsPort)
-
-
Method Details
-
workerPrefix
-
doSha
-
clusterPrefix
-
clusterPrefix
-
addWorkerStreamSource
Description copied from interface:EnvoyDiscoveryServiceAdd a WorkerStreamProvider to be used in dynamic route configureation.- Specified by:
addWorkerStreamSourcein interfaceEnvoyDiscoveryService- Parameters:
workerStreamProvider- the provider to add.
-