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

Examples of com.netflix.exhibitor.core.config.none.NoneConfigProvider


        {
            log.error(NONE_CONFIG_DIRECTORY + " is required when configtype is \"none\"");
            return null;
        }

        return new NoneConfigProvider(commandLine.getOptionValue(NONE_CONFIG_DIRECTORY), defaultProperties);
    }
View Full Code Here


            "initLimit=30\n" +
            "syncLimit=30\n" +
            "tickTime=2000\n" +
            "aaa=test";
        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

Related Classes of com.netflix.exhibitor.core.config.none.NoneConfigProvider

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.