Search in sources :

Example 1 with TCommandThreadDump

use of com.navercorp.pinpoint.thrift.dto.command.TCommandThreadDump in project pinpoint by naver.

the class ThreadDumpService method requestCommandService.

@Override
public TBase<?, ?> requestCommandService(TBase<?, ?> tbase) {
    logger.info("{} execute {}.", this, tbase);
    TCommandThreadDump param = (TCommandThreadDump) tbase;
    TThreadDumpType type = param.getType();
    final List<ThreadInfo> threadInfoList = getThreadInfos(type, param);
    final List<TThreadDump> threadDumpList = getTThreadDumpList(threadInfoList);
    TCommandThreadDumpResponse response = new TCommandThreadDumpResponse();
    response.setThreadDumps(threadDumpList);
    return response;
}
Also used : TCommandThreadDumpResponse(com.navercorp.pinpoint.thrift.dto.command.TCommandThreadDumpResponse) TCommandThreadDump(com.navercorp.pinpoint.thrift.dto.command.TCommandThreadDump) ThreadInfo(java.lang.management.ThreadInfo) TThreadDump(com.navercorp.pinpoint.thrift.dto.command.TThreadDump) TThreadDumpType(com.navercorp.pinpoint.thrift.dto.command.TThreadDumpType)

Aggregations

TCommandThreadDump (com.navercorp.pinpoint.thrift.dto.command.TCommandThreadDump)1 TCommandThreadDumpResponse (com.navercorp.pinpoint.thrift.dto.command.TCommandThreadDumpResponse)1 TThreadDump (com.navercorp.pinpoint.thrift.dto.command.TThreadDump)1 TThreadDumpType (com.navercorp.pinpoint.thrift.dto.command.TThreadDumpType)1 ThreadInfo (java.lang.management.ThreadInfo)1