Package com.linkedin.databus.client.pub.ServerInfo

Examples of com.linkedin.databus.client.pub.ServerInfo.ServerInfoSetBuilder


    static List<ServerInfo> parseServerInfoList(String serversList, List<ServerInfo> servers)
            throws InvalidConfigException
    {
      if (null == servers) servers = new ArrayList<ServerInfo>(10);
      ServerInfoSetBuilder builder = new ServerInfoSetBuilder();
      builder.setServers(serversList);
      servers.addAll(builder.build());

      return servers;
    }
View Full Code Here


                                                         "com.linkedin.events.source2",
                                                         "com.linkedin.events.source3");
      sib.setAddress(address3);
      ServerInfo si3 = sib.build();

      ServerInfoSetBuilder builder = new ServerInfoSetBuilder();
      builder.setServers(address1 + ServerInfoSetBuilder.SERVER_INFO_SEPARATOR + address2 +
                         ServerInfoSetBuilder.SERVER_INFO_SEPARATOR + address3);
      List<ServerInfo> res = builder.build();

      assertEquals(3, res.size());
      assertEquals(true, res.contains(si1));
      assertEquals(true, res.contains(si2));
      assertEquals(true, res.contains(si3));
View Full Code Here

TOP

Related Classes of com.linkedin.databus.client.pub.ServerInfo.ServerInfoSetBuilder

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.