public class InfinispanDirectoryProvider extends Object implements DirectoryProvider<org.apache.lucene.store.Directory>
EmbeddedCacheManager
.Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_INDEXESDATA_CACHENAME
Deprecated.
|
static String |
DEFAULT_INDEXESMETADATA_CACHENAME
Deprecated.
|
static String |
DEFAULT_LOCKING_CACHENAME
Deprecated.
|
Constructor and Description |
---|
InfinispanDirectoryProvider() |
Modifier and Type | Method and Description |
---|---|
org.infinispan.manager.EmbeddedCacheManager |
getCacheManager() |
org.apache.lucene.store.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.
|
@Deprecated public static final String DEFAULT_LOCKING_CACHENAME
InfinispanIntegration.DEFAULT_LOCKING_CACHENAME
instead.@Deprecated public static final String DEFAULT_INDEXESDATA_CACHENAME
InfinispanIntegration.DEFAULT_INDEXESDATA_CACHENAME
instead.@Deprecated public static final String DEFAULT_INDEXESMETADATA_CACHENAME
InfinispanIntegration.DEFAULT_LOCKING_CACHENAME
instead.public void initialize(String directoryProviderName, Properties properties, BuildContext context)
initialize
in interface DirectoryProvider<org.apache.lucene.store.Directory>
context
- get the information to initialize the directory and build its hashCode/equals methodpublic void start(DirectoryBasedIndexManager indexManager)
DirectoryProvider
start
in interface DirectoryProvider<org.apache.lucene.store.Directory>
public void stop()
DirectoryProvider
stop
in interface DirectoryProvider<org.apache.lucene.store.Directory>
public org.apache.lucene.store.Directory getDirectory()
DirectoryProvider
getDirectory
in interface DirectoryProvider<org.apache.lucene.store.Directory>
public org.infinispan.manager.EmbeddedCacheManager getCacheManager()
Copyright © 2006–2015 Hibernate. All rights reserved.