Examples of EurekaAstyanaxHostSupplier


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

//        TableDataResource  tableResource  = schemaResource.getTableSubresource  (tableName);
//        tableResource.listRows(null, 10, 10);

//        ClusterDiscoveryService discoveryService = injector.getInstance(ClusterDiscoveryService.class);
//        LOG.info("Clusters: " + discoveryService.getClusterNames());
        EurekaAstyanaxHostSupplier supplier = injector.getInstance(EurekaAstyanaxHostSupplier.class);
        Supplier<List<Host>> list1 = supplier.getSupplier("cass_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("CASSS_PAAS");
        hosts = list3.get();
        LOG.info("casss_paas");
        for (Host host:hosts) {
            LOG.info(host.getHostName());
        }
View Full Code Here

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

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

            EurekaAstyanaxHostSupplier supplier = injector.getInstance(EurekaAstyanaxHostSupplier.class);
            Supplier<List<Host>> list1 = supplier.getSupplier("cass_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("CASSS_PAAS");
            hosts = list3.get();
            LOG.info("casss_paas");
            for (Host host:hosts) {
                LOG.info(host.getHostName());
            }
View Full Code Here

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
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.