List<String> newServerUrlList = new LinkedList<String>();
List<MetaServer> newMetaServerList = new LinkedList<MetaServer>();
for (final String name : set) {
if (name != null && name.startsWith("server=")) {
final Section section = iniConfig.get(name);
MetaServer metaServer = new MetaServer();
metaServer.setUrl(name.substring("server=".length()));
newServerUrlList.add(metaServer.getUrl());
metaServer.setCluster(section.get("cluster"));
metaServer.setHostIp(section.get("hostIp"));
metaServer.setHostName(section.get("hostName"));
metaServer.setJmxPort(this.getInt(section, "jmxPort"));
metaServer.setServerPort(this.getInt(section,"serverPort"));
metaServer.setStatus(this.getInt(section,"status"));
metaServer.setBrokeId(this.getInt(section,"brokeId"));
newMetaServerList.add(metaServer);
}
}
if(!this.metaServerList.equals(newMetaServerList)){
this.metaServerList.clear();