mirror of
https://github.com/apache/rocketmq-dashboard.git
synced 2025-09-10 19:48:29 +08:00
This commit is contained in:
@@ -103,6 +103,8 @@ public class ConsumerServiceImpl extends AbstractCommonService implements Consum
|
||||
|
||||
private final List<GroupConsumeInfo> cacheConsumeInfoList = Collections.synchronizedList(new ArrayList<>());
|
||||
|
||||
private final HashMap<String, List<String>> consumerGroupMap = Maps.newHashMap();
|
||||
|
||||
@Override
|
||||
public void afterPropertiesSet() {
|
||||
Runtime runtime = Runtime.getRuntime();
|
||||
@@ -174,7 +176,6 @@ public class ConsumerServiceImpl extends AbstractCommonService implements Consum
|
||||
|
||||
|
||||
public void makeGroupListCache() {
|
||||
HashMap<String, List<String>> consumerGroupMap = Maps.newHashMap();
|
||||
SubscriptionGroupWrapper subscriptionGroupWrapper = null;
|
||||
try {
|
||||
ClusterInfo clusterInfo = clusterInfoService.get();
|
||||
@@ -530,6 +531,7 @@ public class ConsumerServiceImpl extends AbstractCommonService implements Consum
|
||||
GroupConsumeInfo updatedInfo = queryGroup(consumerGroup, "");
|
||||
updatedInfo.setUpdateTime(new Date());
|
||||
updatedInfo.setGroup(consumerGroup);
|
||||
updatedInfo.setAddress(consumerGroupMap.get(consumerGroup));
|
||||
cacheConsumeInfoList.set(i, updatedInfo);
|
||||
return updatedInfo;
|
||||
}
|
||||
@@ -541,6 +543,7 @@ public class ConsumerServiceImpl extends AbstractCommonService implements Consum
|
||||
@Override
|
||||
public List<GroupConsumeInfo> refreshAllGroup(String address) {
|
||||
cacheConsumeInfoList.clear();
|
||||
consumerGroupMap.clear();
|
||||
return queryGroupList(false, address);
|
||||
}
|
||||
}
|
||||
|
@@ -91,8 +91,6 @@ public class TopicServiceImpl extends AbstractCommonService implements TopicServ
|
||||
@Autowired
|
||||
private RMQConfigure configure;
|
||||
|
||||
private final ConcurrentMap<String, TopicConfig> topicConfigCache = new ConcurrentHashMap<>();
|
||||
|
||||
@Override
|
||||
public TopicList fetchAllTopicList(boolean skipSysProcess, boolean skipRetryAndDlq) {
|
||||
try {
|
||||
|
Reference in New Issue
Block a user