public static final class ConfigurationDiscoveryServiceGrpc.ConfigurationDiscoveryServiceFutureStub extends io.grpc.stub.AbstractFutureStub<ConfigurationDiscoveryServiceGrpc.ConfigurationDiscoveryServiceFutureStub>
Fetch the latest dynamic configurations of the service.
| Modifier and Type | Method and Description |
|---|---|
protected ConfigurationDiscoveryServiceGrpc.ConfigurationDiscoveryServiceFutureStub |
build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) |
com.google.common.util.concurrent.ListenableFuture<Commands> |
fetchConfigurations(ConfigurationSyncRequest request)
fetchConfigurations service requests the latest configuration.
|
protected ConfigurationDiscoveryServiceGrpc.ConfigurationDiscoveryServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
build in class io.grpc.stub.AbstractStub<ConfigurationDiscoveryServiceGrpc.ConfigurationDiscoveryServiceFutureStub>public com.google.common.util.concurrent.ListenableFuture<Commands> fetchConfigurations(ConfigurationSyncRequest request)
fetchConfigurations service requests the latest configuration.
Expect command of Commands is:
command: CDS # meaning ConfigurationDiscoveryService's response
args: Include string key and string value pair.
The key depends on the agent implementation.
The value is the latest value in String value. The watcher of key owner takes the responsibility to convert it to the correct type or format.
One reserved key is `UUID`. The value would help reducing the traffic load between agent and OAP if there is no change.
Commands could be empty if no change detected based on ConfigurationSyncRequest.
Copyright © 2022 The Apache Software Foundation. All rights reserved.