public TopicRouteData cloneTopicRouteData() { TopicRouteData topicRouteData = new TopicRouteData(); topicRouteData.setQueueDatas(new ArrayList<QueueData>()); topicRouteData.setBrokerDatas(new ArrayList<BrokerData>()); topicRouteData.setFilterServerTable(new HashMap<String, List<String>>()); topicRouteData.setOrderTopicConf(this.orderTopicConf); if (this.queueDatas != null) { topicRouteData.getQueueDatas().addAll(this.queueDatas); } if (this.brokerDatas != null) { topicRouteData.getBrokerDatas().addAll(this.brokerDatas); } if (this.filterServerTable != null) { topicRouteData.getFilterServerTable().putAll(this.filterServerTable); } return topicRouteData; }
public TopicRouteData cloneTopicRouteData() { TopicRouteData topicRouteData = new TopicRouteData(); topicRouteData.setQueueDatas(new ArrayList<QueueData>()); topicRouteData.setBrokerDatas(new ArrayList<BrokerData>()); topicRouteData.setFilterServerTable(new HashMap<String, List<String>>()); topicRouteData.setOrderTopicConf(this.orderTopicConf); if (this.queueDatas != null) { topicRouteData.getQueueDatas().addAll(this.queueDatas); } if (this.brokerDatas != null) { topicRouteData.getBrokerDatas().addAll(this.brokerDatas); } if (this.filterServerTable != null) { topicRouteData.getFilterServerTable().putAll(this.filterServerTable); } return topicRouteData; }
public TopicRouteData cloneTopicRouteData() { TopicRouteData topicRouteData = new TopicRouteData(); topicRouteData.setQueueDatas(new ArrayList<QueueData>()); topicRouteData.setBrokerDatas(new ArrayList<BrokerData>()); topicRouteData.setFilterServerTable(new HashMap<String, List<String>>()); topicRouteData.setOrderTopicConf(this.orderTopicConf); if (this.queueDatas != null) { topicRouteData.getQueueDatas().addAll(this.queueDatas); } if (this.brokerDatas != null) { topicRouteData.getBrokerDatas().addAll(this.brokerDatas); } if (this.filterServerTable != null) { topicRouteData.getFilterServerTable().putAll(this.filterServerTable); } return topicRouteData; }
Set<String> brokerNameSet = new HashSet<String>(); List<BrokerData> brokerDataList = new LinkedList<BrokerData>(); topicRouteData.setBrokerDatas(brokerDataList);