use of com.navercorp.pinpoint.thrift.dto.command.TActiveThreadLightDump in project pinpoint by naver.
the class ActiveThreadLightDumpService method requestCommandService.
@Override
public TBase<?, ?> requestCommandService(TBase<?, ?> tBase) {
TCmdActiveThreadLightDump request = (TCmdActiveThreadLightDump) tBase;
List<TActiveThreadLightDump> activeThreadDumpList = getActiveThreadDumpList(request);
TCmdActiveThreadLightDumpRes response = new TCmdActiveThreadLightDumpRes();
response.setType(ActiveThreadDumpService.JAVA);
response.setSubType(JvmUtils.getType().name());
response.setVersion(JvmUtils.getVersion().name());
response.setThreadDumps(activeThreadDumpList);
return response;
}
use of com.navercorp.pinpoint.thrift.dto.command.TActiveThreadLightDump in project pinpoint by naver.
the class CommandGrpcToThriftMessageConverter method buildTActiveThreadLightDump.
private TActiveThreadLightDump buildTActiveThreadLightDump(PActiveThreadLightDump pActiveThreadLightDump) {
TActiveThreadLightDump tActiveThreadLightDump = new TActiveThreadLightDump();
tActiveThreadLightDump.setStartTime(pActiveThreadLightDump.getStartTime());
tActiveThreadLightDump.setSampled(pActiveThreadLightDump.getSampled());
if (pActiveThreadLightDump.getSampled()) {
tActiveThreadLightDump.setLocalTraceId(pActiveThreadLightDump.getLocalTraceId());
tActiveThreadLightDump.setTransactionId(pActiveThreadLightDump.getTransactionId());
tActiveThreadLightDump.setEntryPoint(pActiveThreadLightDump.getEntryPoint());
}
tActiveThreadLightDump.setThreadDump(buildTThreadLightDump(pActiveThreadLightDump.getThreadDump()));
return tActiveThreadLightDump;
}
Aggregations