Package com.netflix.config

Examples of com.netflix.config.DynamicWatchedConfiguration


        System.setProperty("test.key5", "test.value5-system");

        final ConcurrentMapConfiguration systemConfig = new ConcurrentMapConfiguration();
        systemConfig.loadProperties(System.getProperties());

        final DynamicWatchedConfiguration zkDynamicOverrideConfig = new DynamicWatchedConfiguration(zkConfigSource);

        mapConfig = new ConcurrentMapConfiguration();
        mapConfig.addProperty("test.key1", "test.value1-map");
        mapConfig.addProperty("test.key2", "test.value2-map");
        mapConfig.addProperty("test.key3", "test.value3-map");
View Full Code Here


       
      ZooKeeperConfigurationSource zookeeperConfigSource = new ZooKeeperConfigurationSource(
                client, zkConfigRootPath);
        zookeeperConfigSource.start();
       
        DynamicWatchedConfiguration zookeeperDynamicConfig = new DynamicWatchedConfiguration(
            zookeeperConfigSource);

        // insert ZK DynamicConfig into the 2nd spot
        ((ConcurrentCompositeConfiguration) ConfigurationManager.getConfigInstance()).addConfigurationAtIndex(
                zookeeperDynamicConfig, "zk dynamic override", 1);
View Full Code Here

TOP

Related Classes of com.netflix.config.DynamicWatchedConfiguration

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.