use of com.navercorp.pinpoint.grpc.trace.PCmdActiveThreadLightDump in project pinpoint by naver.
the class GrpcActiveThreadLightDumpService method handle.
@Override
public void handle(PCmdRequest request, ProfilerCommandServiceGrpc.ProfilerCommandServiceStub profilerCommandServiceStub) {
logger.info("simpleCommandService:{}", request);
PCmdActiveThreadLightDump commandActiveThreadLightDump = request.getCommandActiveThreadLightDump();
PCmdActiveThreadLightDumpRes.Builder builder = PCmdActiveThreadLightDumpRes.newBuilder();
PCmdResponse commonResponse = PCmdResponse.newBuilder().setResponseId(request.getRequestId()).build();
builder.setCommonResponse(commonResponse);
builder.setType(JAVA);
builder.setSubType(JvmUtils.getType().name());
builder.setVersion(JvmUtils.getVersion().name());
List<PActiveThreadLightDump> activeThreadDumpList = getActiveThreadDumpList(commandActiveThreadLightDump);
builder.addAllThreadDump(activeThreadDumpList);
profilerCommandServiceStub.commandActiveThreadLightDump(builder.build(), EmptyStreamObserver.create());
}
Aggregations