Package com.taobao.metamorphosis.tools.domain

Examples of com.taobao.metamorphosis.tools.domain.MetaServer


    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();
View Full Code Here

TOP

Related Classes of com.taobao.metamorphosis.tools.domain.MetaServer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.