Search in sources :

Example 1 with PCmdEcho

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());
}
Also used : PCmdEchoResponse(com.navercorp.pinpoint.grpc.trace.PCmdEchoResponse) PCmdResponse(com.navercorp.pinpoint.grpc.trace.PCmdResponse) PCmdEcho(com.navercorp.pinpoint.grpc.trace.PCmdEcho)

Aggregations

PCmdEcho (com.navercorp.pinpoint.grpc.trace.PCmdEcho)1 PCmdEchoResponse (com.navercorp.pinpoint.grpc.trace.PCmdEchoResponse)1 PCmdResponse (com.navercorp.pinpoint.grpc.trace.PCmdResponse)1