public class RAMDirectoryProvider extends Object implements DirectoryProvider<RAMDirectory>
Constructor and Description |
---|
RAMDirectoryProvider() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
RAMDirectory |
getDirectory()
Give access to the initialized Lucene Directory.
|
int |
hashCode() |
void |
initialize(String directoryProviderName,
Properties properties,
BuildContext context)
get the information to initialize the directory and build its hashCode/equals method
|
protected RAMDirectory |
makeRAMDirectory(LockFactory lockFactory)
To allow extensions to create different RAMDirectory flavours:
|
void |
start(DirectoryBasedIndexManager indexManager)
Executed after initialize, this method set up the heavy process of starting up the DirectoryProvider
IO processing as well as background processing are expected to be set up here
|
void |
stop()
Executed when the search factory is closed.
|
public void initialize(String directoryProviderName, Properties properties, BuildContext context)
DirectoryProvider
initialize
in interface DirectoryProvider<RAMDirectory>
directoryProviderName
- the name of the index (directory) to createproperties
- the configuration propertiescontext
- provide access to some services at initializationpublic void start(DirectoryBasedIndexManager indexManager)
DirectoryProvider
start
in interface DirectoryProvider<RAMDirectory>
indexManager
- the index managerpublic RAMDirectory getDirectory()
DirectoryProvider
getDirectory
in interface DirectoryProvider<RAMDirectory>
public void stop()
DirectoryProvider
stop
in interface DirectoryProvider<RAMDirectory>
protected RAMDirectory makeRAMDirectory(LockFactory lockFactory)
lockFactory
- provides the locking strategyCopyright © 2006-2017 Red Hat, Inc. All Rights Reserved