org.apache.lucene.gdata.storage.lucenestorage.configuration
Class StorageConfigurator
java.lang.Object
org.apache.lucene.gdata.storage.lucenestorage.configuration.StorageConfigurator
public class StorageConfigurator
- extends Object
This clas loads the Storage configuration file and sets all properties. If
the properties can not be loaded an Error
will be thrown.
The configuration file lucenestorage.properties.xml should be available in the classpath.
- Author:
- Simon Willnauer
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getStorageConfigurator
public static StorageConfigurator getStorageConfigurator()
- Returns:
- - the storage configurator
isKeepRecoveredFiles
public boolean isKeepRecoveredFiles()
- Keep recovering files. -- will use a lot of disk space
- Returns:
true
if the storage is supposed to keep the
recovering files.
isRecover
public boolean isRecover()
- Returns:
true
if the storage is supposed to use recovering.- See Also:
StorageModifier
getStorageBufferSize
public int getStorageBufferSize()
- Returns:
- - the configured storage buffer size
- See Also:
StorageBuffer
getStorageDirectory
public String getStorageDirectory()
- Returns:
- - the configured storage directory
- See Also:
StorageModifier
getStoragepersistFactor
public int getStoragepersistFactor()
- Returns:
- - the persist factor
- See Also:
StorageModifier
getIndexOptimizeInterval
public int getIndexOptimizeInterval()
- Returns:
- - the optimize interval
- See Also:
StorageModifier
isRamDirectory
public boolean isRamDirectory()
- Returns:
- Returns the ramDirectory.
Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.