Package com.netflix.staash.cassandra.discovery

Examples of com.netflix.staash.cassandra.discovery.EurekaAstyanaxHostSupplier


            // Create the injector
            Injector injector = LifecycleInjector.builder()
                .withModules(modules)
                .createInjector();

            EurekaAstyanaxHostSupplier supplier = injector.getInstance(EurekaAstyanaxHostSupplier.class);
//        EurekaAstyanaxHostSupplier supplier = new EurekaAstyanaxHostSupplier();
            Supplier<List<Host>> list1 = supplier.getSupplier("c_sandbox");
            List<Host> hosts = list1.get();
            LOG.info("cass_sandbox");
            for (Host host:hosts) {
                LOG.info(host.getHostName());
            }
//            Supplier<List<Host>> list2 = supplier.getSupplier("ABCLOUD");
//            hosts = list2.get();
//            LOG.info("ABCLOUD");
//            for (Host host:hosts) {
//                LOG.info(host.getHostName());
//            }
           
            Supplier<List<Host>> list3 = supplier.getSupplier("C_PAAS");
            hosts = list3.get();
            LOG.info("c_paas");
            for (Host host:hosts) {
                LOG.info(host.getHostName());
            }
View Full Code Here

TOP

Related Classes of com.netflix.staash.cassandra.discovery.EurekaAstyanaxHostSupplier

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.