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();
}
Aggregations