Search in sources :

Example 11 with TActiveThreadLightDump

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;
}
Also used : TCmdActiveThreadLightDump(com.navercorp.pinpoint.thrift.dto.command.TCmdActiveThreadLightDump) TCmdActiveThreadLightDumpRes(com.navercorp.pinpoint.thrift.dto.command.TCmdActiveThreadLightDumpRes) TActiveThreadLightDump(com.navercorp.pinpoint.thrift.dto.command.TActiveThreadLightDump)

Example 12 with TActiveThreadLightDump

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;
}
Also used : TActiveThreadLightDump(com.navercorp.pinpoint.thrift.dto.command.TActiveThreadLightDump)

Aggregations

TActiveThreadLightDump (com.navercorp.pinpoint.thrift.dto.command.TActiveThreadLightDump)12 TCmdActiveThreadLightDump (com.navercorp.pinpoint.thrift.dto.command.TCmdActiveThreadLightDump)5 TCmdActiveThreadLightDumpRes (com.navercorp.pinpoint.thrift.dto.command.TCmdActiveThreadLightDumpRes)5 ArrayList (java.util.ArrayList)3 ActiveTraceSnapshot (com.navercorp.pinpoint.profiler.context.active.ActiveTraceSnapshot)2 PinpointRouteResponse (com.navercorp.pinpoint.web.cluster.PinpointRouteResponse)2 AgentActiveThreadDumpFactory (com.navercorp.pinpoint.web.vo.AgentActiveThreadDumpFactory)2 AgentActiveThreadDumpList (com.navercorp.pinpoint.web.vo.AgentActiveThreadDumpList)2 AgentInfo (com.navercorp.pinpoint.web.vo.AgentInfo)2 TException (org.apache.thrift.TException)2 ActiveTraceInfo (com.navercorp.pinpoint.profiler.context.active.ActiveTraceInfo)1 UnsampledActiveTraceSnapshot (com.navercorp.pinpoint.profiler.context.active.UnsampledActiveTraceSnapshot)1 TThreadLightDump (com.navercorp.pinpoint.thrift.dto.command.TThreadLightDump)1 CodeResult (com.navercorp.pinpoint.web.vo.CodeResult)1 ThreadInfo (java.lang.management.ThreadInfo)1 Test (org.junit.Test)1 GetMapping (org.springframework.web.bind.annotation.GetMapping)1 RequestMapping (org.springframework.web.bind.annotation.RequestMapping)1