Package org.apache.commons.configuration

Examples of org.apache.commons.configuration.BaseConfiguration.addProperty()


    @Override
    public void cleanUp() throws StorageException {
        synchronized (openDirs) {
            for (String dir : openDirs) {
                BaseConfiguration config = new BaseConfiguration();
                config.addProperty(GraphDatabaseConfiguration.STORAGE_DIRECTORY_KEY, dir);
                BerkeleyJEStoreManager s = new BerkeleyJEStoreManager(config);
                s.clearStorage();
                File dirFile = new File(dir);
                Assert.assertFalse(dirFile.exists() && dirFile.listFiles().length > 0);
            }
View Full Code Here


public class PersistitStorageSetup extends StorageSetup {

    public static Configuration getPersistitStorageConfig() {
        BaseConfiguration config = new BaseConfiguration();
        config.addProperty(GraphDatabaseConfiguration.STORAGE_DIRECTORY_KEY, getHomeDir());
        return config;
    }

    public static Configuration getPersistitGraphConfig() {
        BaseConfiguration config = new BaseConfiguration();
View Full Code Here

    @Parameterized.Parameters
    public static Collection<Object[]> configs() {
        List<Object[]> configurations = new ArrayList<Object[]>();

        BaseConfiguration c = new BaseConfiguration();
        c.addProperty(IDAUTHORITY_RETRY_COUNT_KEY, 50);
        c.addProperty(IDAUTHORITY_WAIT_MS_KEY, 100);
        configurations.add(new Object[]{c});


        c = new BaseConfiguration();
View Full Code Here

    public static Collection<Object[]> configs() {
        List<Object[]> configurations = new ArrayList<Object[]>();

        BaseConfiguration c = new BaseConfiguration();
        c.addProperty(IDAUTHORITY_RETRY_COUNT_KEY, 50);
        c.addProperty(IDAUTHORITY_WAIT_MS_KEY, 100);
        configurations.add(new Object[]{c});


        c = new BaseConfiguration();
        c.addProperty(IDAUTHORITY_RETRY_COUNT_KEY, 50);
View Full Code Here

        c.addProperty(IDAUTHORITY_WAIT_MS_KEY, 100);
        configurations.add(new Object[]{c});


        c = new BaseConfiguration();
        c.addProperty(IDAUTHORITY_RETRY_COUNT_KEY, 50);
        c.addProperty(IDAUTHORITY_WAIT_MS_KEY, 100);
        c.addProperty(IDAUTHORITY_UNIQUE_ID_BITS_KEY,9);
        c.addProperty(IDAUTHORITY_UNIQUE_ID_KEY,511);
        configurations.add(new Object[]{c});
View Full Code Here

        configurations.add(new Object[]{c});


        c = new BaseConfiguration();
        c.addProperty(IDAUTHORITY_RETRY_COUNT_KEY, 50);
        c.addProperty(IDAUTHORITY_WAIT_MS_KEY, 100);
        c.addProperty(IDAUTHORITY_UNIQUE_ID_BITS_KEY,9);
        c.addProperty(IDAUTHORITY_UNIQUE_ID_KEY,511);
        configurations.add(new Object[]{c});

        c = new BaseConfiguration();
View Full Code Here


        c = new BaseConfiguration();
        c.addProperty(IDAUTHORITY_RETRY_COUNT_KEY, 50);
        c.addProperty(IDAUTHORITY_WAIT_MS_KEY, 100);
        c.addProperty(IDAUTHORITY_UNIQUE_ID_BITS_KEY,9);
        c.addProperty(IDAUTHORITY_UNIQUE_ID_KEY,511);
        configurations.add(new Object[]{c});

        c = new BaseConfiguration();
        c.addProperty(IDAUTHORITY_RETRY_COUNT_KEY, 10);
View Full Code Here

        c = new BaseConfiguration();
        c.addProperty(IDAUTHORITY_RETRY_COUNT_KEY, 50);
        c.addProperty(IDAUTHORITY_WAIT_MS_KEY, 100);
        c.addProperty(IDAUTHORITY_UNIQUE_ID_BITS_KEY,9);
        c.addProperty(IDAUTHORITY_UNIQUE_ID_KEY,511);
        configurations.add(new Object[]{c});

        c = new BaseConfiguration();
        c.addProperty(IDAUTHORITY_RETRY_COUNT_KEY, 10);
        c.addProperty(IDAUTHORITY_WAIT_MS_KEY, 100);
View Full Code Here

        c.addProperty(IDAUTHORITY_UNIQUE_ID_BITS_KEY,9);
        c.addProperty(IDAUTHORITY_UNIQUE_ID_KEY,511);
        configurations.add(new Object[]{c});

        c = new BaseConfiguration();
        c.addProperty(IDAUTHORITY_RETRY_COUNT_KEY, 10);
        c.addProperty(IDAUTHORITY_WAIT_MS_KEY, 100);
        c.addProperty(IDAUTHORITY_UNIQUE_ID_BITS_KEY,7);
        c.addProperty(IDAUTHORITY_RANDOMIZE_UNIQUE_ID_KEY,true);
        configurations.add(new Object[]{c});
View Full Code Here

        c.addProperty(IDAUTHORITY_UNIQUE_ID_KEY,511);
        configurations.add(new Object[]{c});

        c = new BaseConfiguration();
        c.addProperty(IDAUTHORITY_RETRY_COUNT_KEY, 10);
        c.addProperty(IDAUTHORITY_WAIT_MS_KEY, 100);
        c.addProperty(IDAUTHORITY_UNIQUE_ID_BITS_KEY,7);
        c.addProperty(IDAUTHORITY_RANDOMIZE_UNIQUE_ID_KEY,true);
        configurations.add(new Object[]{c});

        return configurations;
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.