public class InfinispanDirectoryProvider extends Object implements DirectoryProvider<Directory>
EmbeddedCacheManager
.Constructor and Description |
---|
InfinispanDirectoryProvider() |
Modifier and Type | Method and Description |
---|---|
EmbeddedCacheManager |
getCacheManager() |
Directory |
getDirectory()
Returns an initialized Lucene Directory.
|
void |
initialize(String directoryProviderName,
Properties properties,
BuildContext context) |
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)
initialize
in interface DirectoryProvider<Directory>
context
- get the information to initialize the directory and build its hashCode/equals methodpublic void start(DirectoryBasedIndexManager indexManager)
DirectoryProvider
start
in interface DirectoryProvider<Directory>
public void stop()
DirectoryProvider
stop
in interface DirectoryProvider<Directory>
public Directory getDirectory()
DirectoryProvider
getDirectory
in interface DirectoryProvider<Directory>
public EmbeddedCacheManager getCacheManager()
Copyright © 2006-2015 Red Hat, Inc. All Rights Reserved