use of com.navercorp.pinpoint.thrift.dto.command.TCmdActiveThreadLightDump in project pinpoint by naver.
the class ActiveThreadLightDumpServiceTest method basicFunctionTest3.
@Test
public void basicFunctionTest3() throws Exception {
List<WaitingJob> waitingJobList = createWaitingJobList(CREATE_SIZE);
try {
int targetThreadNameSize = 3;
List<ActiveTraceInfo> activeTraceInfoList = createMockActiveTraceInfoList(CREATE_SIZE, DEFAULT_TIME_MILLIS, TIME_DIFF_INTERVAL, waitingJobList);
List<String> threadNameList = extractThreadNameList(activeTraceInfoList, targetThreadNameSize);
TCmdActiveThreadLightDump tCmdActiveThreadDump = createRequest(0, threadNameList, null);
ActiveThreadLightDumpService service = createService(activeTraceInfoList);
TCmdActiveThreadLightDumpRes response = (TCmdActiveThreadLightDumpRes) service.requestCommandService(tCmdActiveThreadDump);
Assert.assertEquals(3, response.getThreadDumpsSize());
} finally {
clearResource(waitingJobList);
}
}
Aggregations