Search in sources :

Example 1 with AutoManageLockArguments

use of com.netflix.exhibitor.core.config.AutoManageLockArguments in project exhibitor by soabase.

the class ExhibitorCreator method getFileSystemProvider.

private ConfigProvider getFileSystemProvider(CommandLine commandLine, Properties defaultProperties) throws IOException {
    File directory = commandLine.hasOption(FILESYSTEM_CONFIG_DIRECTORY) ? new File(commandLine.getOptionValue(FILESYSTEM_CONFIG_DIRECTORY)) : new File(System.getProperty("user.dir"));
    String name = commandLine.hasOption(FILESYSTEM_CONFIG_NAME) ? commandLine.getOptionValue(FILESYSTEM_CONFIG_NAME) : DEFAULT_FILESYSTEMCONFIG_NAME;
    String lockPrefix = commandLine.hasOption(FILESYSTEM_CONFIG_LOCK_PREFIX) ? commandLine.getOptionValue(FILESYSTEM_CONFIG_LOCK_PREFIX) : DEFAULT_FILESYSTEMCONFIG_LOCK_PREFIX;
    return new FileSystemConfigProvider(directory, name, defaultProperties, new AutoManageLockArguments(lockPrefix));
}
Also used : FileSystemConfigProvider(com.netflix.exhibitor.core.config.filesystem.FileSystemConfigProvider) AutoManageLockArguments(com.netflix.exhibitor.core.config.AutoManageLockArguments) S3ConfigAutoManageLockArguments(com.netflix.exhibitor.core.config.s3.S3ConfigAutoManageLockArguments) File(java.io.File)

Aggregations

AutoManageLockArguments (com.netflix.exhibitor.core.config.AutoManageLockArguments)1 FileSystemConfigProvider (com.netflix.exhibitor.core.config.filesystem.FileSystemConfigProvider)1 S3ConfigAutoManageLockArguments (com.netflix.exhibitor.core.config.s3.S3ConfigAutoManageLockArguments)1 File (java.io.File)1