in src/main/java/org/apache/rocketmq/dashboard/task/DashboardCollectTask.java [68:90]
public void collectTopic() {
if (!rmqConfigure.isEnableDashBoardCollect()) {
return;
}
try {
TopicList topicList = mqAdminExt.fetchAllTopicList();
Set<String> topicSet = topicList.getTopicList();
this.addSystemTopic();
for (String topic : topicSet) {
if (topic.startsWith(MixAll.RETRY_GROUP_TOPIC_PREFIX)
|| topic.startsWith(MixAll.DLQ_GROUP_TOPIC_PREFIX)
|| TopicValidator.isSystemTopic(topic)) {
continue;
}
CollectTaskRunnble collectTask = new CollectTaskRunnble(topic, mqAdminExt, dashboardCollectService);
collectExecutor.submit(collectTask);
}
}
catch (Exception err) {
Throwables.throwIfUnchecked(err);
throw new RuntimeException(err);
}
}