|
|
@ -212,8 +212,10 @@ public class ThreadCommand extends AnnotatedCommand {
|
|
|
|
List<BusyThreadInfo> busyThreadInfos = new ArrayList<BusyThreadInfo>(topNThreads.size());
|
|
|
|
List<BusyThreadInfo> busyThreadInfos = new ArrayList<BusyThreadInfo>(topNThreads.size());
|
|
|
|
for (ThreadVO thread : topNThreads) {
|
|
|
|
for (ThreadVO thread : topNThreads) {
|
|
|
|
ThreadInfo threadInfo = findThreadInfoById(threadInfos, thread.getId());
|
|
|
|
ThreadInfo threadInfo = findThreadInfoById(threadInfos, thread.getId());
|
|
|
|
BusyThreadInfo busyThread = new BusyThreadInfo(thread, threadInfo);
|
|
|
|
if (threadInfo != null) {
|
|
|
|
busyThreadInfos.add(busyThread);
|
|
|
|
BusyThreadInfo busyThread = new BusyThreadInfo(thread, threadInfo);
|
|
|
|
|
|
|
|
busyThreadInfos.add(busyThread);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
process.appendResult(new ThreadModel(busyThreadInfos));
|
|
|
|
process.appendResult(new ThreadModel(busyThreadInfos));
|
|
|
|
return ExitStatus.success();
|
|
|
|
return ExitStatus.success();
|
|
|
|