Class MeterReportServiceGrpc.MeterReportServiceStub

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

public static final class MeterReportServiceGrpc.MeterReportServiceStub extends io.grpc.stub.AbstractAsyncStub<MeterReportServiceGrpc.MeterReportServiceStub>
  • 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)
     
    io.grpc.stub.StreamObserver<MeterData>
    collect(io.grpc.stub.StreamObserver<Commands> responseObserver)
    Meter data is reported in a certain period.
    io.grpc.stub.StreamObserver<MeterDataCollection>
    collectBatch(io.grpc.stub.StreamObserver<Commands> responseObserver)
    Reporting meter data in bulk mode as MeterDataCollection.

    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 MeterReportServiceGrpc.MeterReportServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
      Specified by:
      build in class io.grpc.stub.AbstractStub<MeterReportServiceGrpc.MeterReportServiceStub>
    • collect

      public io.grpc.stub.StreamObserver<MeterData> collect(io.grpc.stub.StreamObserver<Commands> responseObserver)
       Meter data is reported in a certain period. The agent/SDK should report all collected metrics in this period through one stream.
       The whole stream is an input data set, client should onComplete the stream per report period.
       
    • collectBatch

      public io.grpc.stub.StreamObserver<MeterDataCollection> collectBatch(io.grpc.stub.StreamObserver<Commands> responseObserver)
       Reporting meter data in bulk mode as MeterDataCollection.
       By using this, each one in the stream would be treated as a complete input for MAL engine,
       comparing to `collect (stream MeterData)`, which is using one stream as an input data set.