Package com.foundationdb.server.error

Examples of com.foundationdb.server.error.ConfigurationPropertiesLoadException


            properties = setupPersistitProperties(configService);
            dataVolumeName = configService.getProperty(DATA_VOLUME_PROP_NAME);
            maxTreeCacheSize = Integer.parseInt(configService.getProperty(MAX_TREE_CACHE_PROP_NAME));
            maxExchangeCacheSize = Integer.parseInt(configService.getProperty(MAX_EXCHANGE_CACHE_PROP_NAME));
        } catch (FileNotFoundException e) {
            throw new ConfigurationPropertiesLoadException ("Persistit Properties", e.getMessage());
        }

        Persistit tmpDB = new Persistit();
        tmpDB.setPersistitLogger(new Slf4jAdapter(LOG));
        try {
View Full Code Here


    private Properties loadResourceProperties(Properties defaults) {
        Properties resourceProps = chainProperties(defaults);
        try (InputStream resourceIs = ConfigurationServiceImpl.class.getResourceAsStream(CONFIG_DEFAULTS_RESOURCE)) {
            resourceProps.load(resourceIs);
        } catch (IOException e) {
            throw new ConfigurationPropertiesLoadException(CONFIG_DEFAULTS_RESOURCE, e.getMessage());
        }
        stripRequiredProperties(resourceProps, requiredKeys);
        return resourceProps;
    }
View Full Code Here

                throw new BadConfigDirectoryException(configDir.getAbsolutePath());
            }
            try {
                loadFromFile(combined, configDirPath, SERVER_PROPERTIES_FILE_NAME);
            } catch(IOException e) {
                throw new ConfigurationPropertiesLoadException(SERVER_PROPERTIES_FILE_NAME, e.getMessage());
            }
        }
        return combined;
    }
View Full Code Here

        if (dataDirectoryCounter > 0)
            name += dataDirectoryCounter;
        dataDirectory = new File(TESTDIR, name);
        if (dataDirectory.exists()) {
            if (!dataDirectory.isDirectory()) {
                throw new ConfigurationPropertiesLoadException(dataDirectory.getName(), " it exists but isn't a directory");
            }
        } else {
            if (!dataDirectory.mkdirs()) {
                throw new ConfigurationPropertiesLoadException(dataDirectory.getName(), " it couldn't be created");
            }
            dataDirectory.deleteOnExit();
        }
    }
View Full Code Here

TOP

Related Classes of com.foundationdb.server.error.ConfigurationPropertiesLoadException

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.