Search in sources :

Example 1 with PAgentStatBatch

use of com.navercorp.pinpoint.grpc.trace.PAgentStatBatch in project pinpoint by naver.

the class StatClientMock method agentStatBatch.

public void agentStatBatch(final int count) {
    StreamObserver<Empty> responseObserver = getResponseObserver();
    StreamObserver<PStatMessage> requestObserver = statStub.sendAgentStat(responseObserver);
    for (int i = 0; i < count; i++) {
        final PAgentStatBatch agentStatBatch = PAgentStatBatch.newBuilder().build();
        final PStatMessage statMessage = PStatMessage.newBuilder().setAgentStatBatch(agentStatBatch).build();
        requestObserver.onNext(statMessage);
    }
    requestObserver.onCompleted();
}
Also used : Empty(com.google.protobuf.Empty) PAgentStatBatch(com.navercorp.pinpoint.grpc.trace.PAgentStatBatch) PStatMessage(com.navercorp.pinpoint.grpc.trace.PStatMessage)

Aggregations

Empty (com.google.protobuf.Empty)1 PAgentStatBatch (com.navercorp.pinpoint.grpc.trace.PAgentStatBatch)1 PStatMessage (com.navercorp.pinpoint.grpc.trace.PStatMessage)1