从broker中获取系统topic列表AdminBrokerProcessor#getSystemTopicListFromBroker
AdminBrokerProcessor#processRequest#this.getSystemTopicListFromBroker(ctx, request)
private RemotingCommand getSystemTopicListFromBroker(ChannelHandlerContext ctx, RemotingCommand request)
throws RemotingCommandException {
final RemotingCommand response = RemotingCommand.createResponseCommand(null);
Set<String> topics = this.brokerController.getTopicConfigManager().getSystemTopic();
TopicList topicList = new TopicList();
topicList.setTopicList(topics);
response.setBody(topicList.encode());
response.setCode(ResponseCode.SUCCESS);
response.setRemark(null);
return response;
}
TopicConfigManager#getSystemTopic
public Set<String> getSystemTopic() {
return this.systemTopicList;
}
private final Set<String> systemTopicList = new HashSet<String>();