use of com.navercorp.pinpoint.thrift.dto.command.TThreadLightDump in project pinpoint by naver.
the class ActiveThreadLightDumpService method createThreadDump.
private TThreadLightDump createThreadDump(Thread thread) {
TThreadLightDump threadDump = new TThreadLightDump();
threadDump.setThreadName(thread.getName());
threadDump.setThreadId(thread.getId());
threadDump.setThreadState(ThreadDumpUtils.toTThreadState(thread.getState()));
return threadDump;
}
use of com.navercorp.pinpoint.thrift.dto.command.TThreadLightDump in project pinpoint by naver.
the class ActiveThreadLightDumpService method createActiveThreadDump.
private TActiveThreadLightDump createActiveThreadDump(ThreadDump threadDump) {
final ActiveTraceSnapshot activeTraceInfo = threadDump.getActiveTraceSnapshot();
final ThreadInfo threadInfo = threadDump.getThreadInfo();
TThreadLightDump tThreadLightDump = createTThreadLightDump(threadInfo);
TActiveThreadLightDump activeThreadDump = new TActiveThreadLightDump();
activeThreadDump.setStartTime(activeTraceInfo.getStartTime());
activeThreadDump.setLocalTraceId(activeTraceInfo.getLocalTransactionId());
activeThreadDump.setThreadDump(tThreadLightDump);
if (activeTraceInfo.isSampled()) {
activeThreadDump.setSampled(true);
activeThreadDump.setTransactionId(activeTraceInfo.getTransactionId());
activeThreadDump.setEntryPoint(activeTraceInfo.getEntryPoint());
}
return activeThreadDump;
}
use of com.navercorp.pinpoint.thrift.dto.command.TThreadLightDump in project pinpoint by naver.
the class AgentActiveThreadDumpListTest method createTThreadLightDump.
private TThreadLightDump createTThreadLightDump(Thread thread) {
TThreadLightDump threadDump = new TThreadLightDump();
threadDump.setThreadName(thread.getName());
threadDump.setThreadId(thread.getId());
final TThreadState threadState = this.threadStateThriftMessageConverter.toMessage(thread.getState());
threadDump.setThreadState(threadState);
return threadDump;
}
use of com.navercorp.pinpoint.thrift.dto.command.TThreadLightDump in project pinpoint by naver.
the class ActiveThreadLightDumpService method createActiveLightThreadDump.
private TActiveThreadLightDump createActiveLightThreadDump(ActiveTraceInfo activeTraceInfo) {
Thread thread = activeTraceInfo.getThread();
if (thread == null) {
return null;
}
TThreadLightDump threadDump = createThreadDump(thread);
return createActiveThreadDump(activeTraceInfo, threadDump);
}
use of com.navercorp.pinpoint.thrift.dto.command.TThreadLightDump in project pinpoint by naver.
the class ActiveThreadLightDumpService method createTThreadLightDump.
private TThreadLightDump createTThreadLightDump(ThreadInfo threadInfo) {
TThreadLightDump threadDump = new TThreadLightDump();
threadDump.setThreadName(threadInfo.getThreadName());
threadDump.setThreadId(threadInfo.getThreadId());
final TThreadState threadState = this.threadStateThriftMessageConverter.toMessage(threadInfo.getThreadState());
threadDump.setThreadState(threadState);
return threadDump;
}
Aggregations