org.compass.core.lucene.engine.store.wrapper
Class AsyncMemoryMirrorDirectoryWrapperProvider
java.lang.Object
org.compass.core.lucene.engine.store.wrapper.AsyncMemoryMirrorDirectoryWrapperProvider
- All Implemented Interfaces:
- CompassConfigurable, DirectoryWrapperProvider
public class AsyncMemoryMirrorDirectoryWrapperProvider
- extends Object
- implements DirectoryWrapperProvider, CompassConfigurable
Wraps a Lucene Directory with AsyncMemoryMirrorDirectoryWrapper.
- Author:
- kimchy
- See Also:
AsyncMemoryMirrorDirectoryWrapper
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AsyncMemoryMirrorDirectoryWrapperProvider
public AsyncMemoryMirrorDirectoryWrapperProvider()
configure
public void configure(CompassSettings settings)
throws CompassException
- Configures
AsyncMemoryMirrorDirectoryWrapper.
awaitTermination is the first setting, and defaults to 5 seconds.
- Specified by:
configure in interface CompassConfigurable
- Parameters:
settings - The settings for the configured object
- Throws:
CompassException
wrap
public Directory wrap(String subIndex,
Directory dir)
throws SearchEngineException
- Description copied from interface:
DirectoryWrapperProvider
- Wraps the given directory, and returns the wrapped directory instance.
- Specified by:
wrap in interface DirectoryWrapperProvider
- Parameters:
subIndex - The sub index the directory is associated withdir - The directory to wrap
- Returns:
- The wrapped directory
- Throws:
SearchEngineException
doCreateExecutorService
protected ExecutorService doCreateExecutorService()
Copyright (c) 2004-2008 The Compass Project.