Package com.netflix.exhibitor.core.config.none

Examples of com.netflix.exhibitor.core.config.none.NoneConfigProvider.storeConfig()


        File                  tempDirectory = Files.createTempDir();
        ConfigProvider        config = new NoneConfigProvider(tempDirectory.getPath());

        Properties properties = new Properties();
        properties.setProperty(PropertyBasedInstanceConfig.toName(StringConfigs.ZOO_CFG_EXTRA, PropertyBasedInstanceConfig.ROOT_PROPERTY_PREFIX), CFG_EXTRA);
        LoadedInstanceConfig        instanceConfig = config.storeConfig(new PropertyBasedInstanceConfig(properties, new Properties()), 0);

        String               string = instanceConfig.getConfig().getRootConfig().getString(StringConfigs.ZOO_CFG_EXTRA);
        Assert.assertEquals(CFG_EXTRA, string);

        EncodedConfigParser     parser = new EncodedConfigParser("s=10&d=dee&a=hey");
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.