Examples of addHosts()


Examples of com.basho.riak.client.raw.pbc.PBClusterConfig.addHosts()

        // Riak Protocol Buffers client with supplied IP and Port
        PBClusterConfig riakClusterConfig = new PBClusterConfig(20);
        // See above examples for client config options
        PBClientConfig riakClientConfig = PBClientConfig.defaults();
        //riakClusterConfig.addHosts(riakClientConfig, "192.168.1.102", "192.168.1.104", "192.168.1.105");
        riakClusterConfig.addHosts(riakClientConfig, riakIps);
        riakClient = RiakFactory.newClient(riakClusterConfig);

        liveStatisticsDao = new RiakLiveStatisticsDao(riakClient, metricHourCache);
        alertDao = new RiakAlertDao(riakClient);
        accountDao = new RiakAccountDao(riakClient);
View Full Code Here

Examples of org.springframework.yarn.am.allocate.ContainerAllocateData.addHosts()

    while (countNeeded > 0) {
      Iterator<String> iterator = hostUnion.iterator();
      while (countNeeded > 0 && iterator.hasNext()) {
        String host = iterator.next();
        containerAllocateData.addHosts(host, 1);
        countNeeded--;
      }
    }

    if (log.isDebugEnabled()) {
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.