org.hibernate.search.indexes.impl
public class IndexManagerHolder extends Object
IndexManager instances, and starts or stops them.
Starting IndexManagers happens by creating new EntityIndexBinder instances. IndexManagers are
started successively as they are needed (for example based on the sharding strategy).
Stopping IndexManagers can currently only happen all at once.| Constructor and Description |
|---|
IndexManagerHolder() |
| Modifier and Type | Method and Description |
|---|---|
MutableEntityIndexBinding |
buildEntityIndexBinding(org.hibernate.annotations.common.reflection.XClass entity,
Class mappedClass,
SearchConfiguration cfg,
WorkerBuildContext context) |
IndexManager |
getIndexManager(String targetIndexName) |
Collection<IndexManager> |
getIndexManagers() |
IndexManager |
getOrCreateIndexManager(String indexBaseName,
DynamicShardingEntityIndexBinding entityIndexBinding) |
IndexManager |
getOrCreateIndexManager(String indexBaseName,
String shardName,
DynamicShardingEntityIndexBinding entityIndexBinding) |
void |
setActiveSearchFactory(SearchFactoryImplementorWithShareableState factory)
Useful for MutableSearchFactory, this haves all managed IndexManagers
switch over to the new SearchFactory.
|
void |
stop()
Stops all IndexManager instances
|
public MutableEntityIndexBinding buildEntityIndexBinding(org.hibernate.annotations.common.reflection.XClass entity, Class mappedClass, SearchConfiguration cfg, WorkerBuildContext context)
public IndexManager getOrCreateIndexManager(String indexBaseName, DynamicShardingEntityIndexBinding entityIndexBinding)
public IndexManager getOrCreateIndexManager(String indexBaseName, String shardName, DynamicShardingEntityIndexBinding entityIndexBinding)
public Collection<IndexManager> getIndexManagers()
public void setActiveSearchFactory(SearchFactoryImplementorWithShareableState factory)
factory - the new SearchFactory to set on each IndexManager.public void stop()
public IndexManager getIndexManager(String targetIndexName)
targetIndexName - the name of the IndexManager to look upCopyright © 2006-2015 Red Hat, Inc. All Rights Reserved