View details of Web thread pool, replace with sequential call

pull/246/head
chen.ma 2 years ago
parent ed59f1c7d0
commit 86969282cd

@ -96,8 +96,8 @@ public class ThreadPoolAdapterService {
.map(each -> each.get(requestParameter.getThreadPoolKey()))
.orElse(Lists.newArrayList());
List<String> addressList = actual.stream().map(ThreadPoolAdapterState::getClientAddress).collect(Collectors.toList());
List<ThreadPoolAdapterRespDTO> result = Lists.newCopyOnWriteArrayList();
addressList.parallelStream().forEach(each -> {
List<ThreadPoolAdapterRespDTO> result = new ArrayList<>(addressList.size());
addressList.forEach(each -> {
String urlString = StrBuilder.create("http://", each, "/adapter/thread-pool/info").toString();
Map<String, Object> param = Maps.newHashMap();
param.put("mark", requestParameter.getMark());

Loading…
Cancel
Save