Package com.netflix.appinfo

Examples of com.netflix.appinfo.CloudInstanceConfig


    @Override
    protected void configure() {
        LOG.info("Configuring EurekaModule");
       
                DiscoveryManager.getInstance().initComponent(
                new CloudInstanceConfig(),
                new DefaultEurekaClientConfig());

        // Eureka - Astyanax integration
        MapBinder<String, HostSupplierProvider> hostSuppliers = MapBinder.newMapBinder(binder(), String.class, HostSupplierProvider.class);
        hostSuppliers.addBinding("eureka").to(EurekaAstyanaxHostSupplier.class).asEagerSingleton();
View Full Code Here


        LOG.info("Configuring EurekaModule");
       
        // Initialize eureka
        // TODO: Move this to a bootstrap thingy
        DiscoveryManager.getInstance().initComponent(
                new CloudInstanceConfig(),
                new DefaultEurekaClientConfig());

        // Eureka - Astyanax integration
        MapBinder<String, HostSupplierProvider> hostSuppliers = MapBinder.newMapBinder(binder(), String.class, HostSupplierProvider.class);
        hostSuppliers.addBinding("eureka").to(EurekaAstyanaxHostSupplier.class);
View Full Code Here

            logger.info("Eureka environment value eureka.environment is not set, defaulting to test");
        }
        EurekaInstanceConfig config;
        if (CLOUD.equals(ConfigurationManager.getDeploymentContext()
                .getDeploymentDatacenter())) {
            config = new CloudInstanceConfig();
        } else {
            config = new MyDataCenterInstanceConfig();
        }
        logger.info("Initializing the eureka client...");
View Full Code Here

   
    @Override
    public synchronized CloudInstanceConfig get() {
        if (config == null) {
            if (namespace == null) {
                config = new CloudInstanceConfig();
            } else {
                config = new CloudInstanceConfig(namespace);
            }
   
            // TODO: Remove this when DiscoveryManager is finally no longer used
            DiscoveryManager.getInstance().setEurekaInstanceConfig(config);
        }
View Full Code Here

            ConfigurationManager.install(props);

            Injector injector = LifecycleInjector.builder().createInjector();
            injector.getInstance(LifecycleManager.class).start();

            final EurekaInstanceConfig config = new CloudInstanceConfig("netflix.appinfo.");
            final EurekaClientConfig clientConfig = new DefaultEurekaClientConfig("netflix.discovery.");
            log.info("initializing Eureka");
            DiscoveryManager.getInstance().initComponent(config, clientConfig);

            log.info("initializing EVCache");
View Full Code Here

        }

        final EurekaInstanceConfig config;
        if (CLOUD.equals(ConfigurationManager.getDeploymentContext()
                .getDeploymentDatacenter())) {
            config = new CloudInstanceConfig();
        } else {
            config = new MyDataCenterInstanceConfig();
        }
        DiscoveryManager.getInstance().initComponent(config,
                new DefaultEurekaClientConfig());
View Full Code Here

TOP

Related Classes of com.netflix.appinfo.CloudInstanceConfig

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.