use of com.navercorp.pinpoint.grpc.trace.PCmdEcho in project pinpoint by naver.
the class GrpcEchoService method handle.
@Override
public void handle(PCmdRequest request, ProfilerCommandServiceGrpc.ProfilerCommandServiceStub profilerCommandServiceStub) {
logger.info("simpleCommandService:{}", request);
PCmdEcho commandEcho = request.getCommandEcho();
PCmdEchoResponse.Builder responseBuilder = PCmdEchoResponse.newBuilder();
responseBuilder.setMessage(commandEcho.getMessage());
PCmdResponse commonResponse = PCmdResponse.newBuilder().setResponseId(request.getRequestId()).build();
responseBuilder.setCommonResponse(commonResponse);
profilerCommandServiceStub.commandEcho(responseBuilder.build(), EmptyStreamObserver.create());
}
Aggregations