Package com.dianping.cat.configuration.client.entity

Examples of com.dianping.cat.configuration.client.entity.ClientConfig.accept()


    ClientConfig clientConfig = loadConfig("client-config.xml");
    ClientConfig globalConfig = loadConfig("global-config.xml");

    Assert.assertEquals("client", clientConfig.getMode());

    globalConfig.accept(new ClientConfigMerger(clientConfig));
    clientConfig.accept(new ClientConfigValidator());

    List<Server> servers = clientConfig.getServers();

    Assert.assertEquals(3, servers.size());
View Full Code Here


    if (globalConfig != null && clientConfig != null) {
      globalConfig.accept(new ClientConfigMerger(clientConfig));
    }

    if (clientConfig != null) {
      clientConfig.accept(new ClientConfigValidator());
    }

    m_config = clientConfig;
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.