Class ConfigurationDiscoveryServiceGrpc.ConfigurationDiscoveryServiceStub

java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractAsyncStub<ConfigurationDiscoveryServiceGrpc.ConfigurationDiscoveryServiceStub>
org.apache.skywalking.apm.network.language.agent.v3.ConfigurationDiscoveryServiceGrpc.ConfigurationDiscoveryServiceStub
Enclosing class:
ConfigurationDiscoveryServiceGrpc

public static final class ConfigurationDiscoveryServiceGrpc.ConfigurationDiscoveryServiceStub extends io.grpc.stub.AbstractAsyncStub<ConfigurationDiscoveryServiceGrpc.ConfigurationDiscoveryServiceStub>
 Fetch the latest dynamic configurations of the service.
 
  • Nested Class Summary

    Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub

    io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>>
  • Method Summary

    Modifier and Type
    Method
    Description
    build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
     
    void
    fetchConfigurations(ConfigurationSyncRequest request, io.grpc.stub.StreamObserver<Commands> responseObserver)
    fetchConfigurations service requests the latest configuration.

    Methods inherited from class io.grpc.stub.AbstractAsyncStub

    newStub, newStub

    Methods inherited from class io.grpc.stub.AbstractStub

    getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOption, withWaitForReady

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • build

      protected ConfigurationDiscoveryServiceGrpc.ConfigurationDiscoveryServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
      Specified by:
      build in class io.grpc.stub.AbstractStub<ConfigurationDiscoveryServiceGrpc.ConfigurationDiscoveryServiceStub>
    • fetchConfigurations

      public void fetchConfigurations(ConfigurationSyncRequest request, io.grpc.stub.StreamObserver<Commands> responseObserver)
       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.