org.compass.core.lucene.engine.store.wrapper
Class AsyncMemoryMirrorDirectoryWrapperProvider

java.lang.Object
  extended by 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

Constructor Summary
AsyncMemoryMirrorDirectoryWrapperProvider()
           
 
Method Summary
 void configure(CompassSettings settings)
          Configures AsyncMemoryMirrorDirectoryWrapper.
protected  ExecutorService doCreateExecutorService()
           
 Directory wrap(String subIndex, Directory dir)
          Wraps the given directory, and returns the wrapped directory instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AsyncMemoryMirrorDirectoryWrapperProvider

public AsyncMemoryMirrorDirectoryWrapperProvider()
Method Detail

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 with
dir - The directory to wrap
Returns:
The wrapped directory
Throws:
SearchEngineException

doCreateExecutorService

protected ExecutorService doCreateExecutorService()


Copyright (c) 2004-2009 The Compass Project.