public class IndexManagerHolder extends Object
IndexManager instances, and starts or stops them.
Starting IndexManagers happens by creating new EntityIndexBinding 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 buildContext) |
BackendQueueProcessor |
getBackendQueueProcessor(String indexName) |
IndexManager |
getIndexManager(String targetIndexName) |
Collection<IndexManager> |
getIndexManagers() |
IndexManagerType |
getIndexManagerType(org.hibernate.annotations.common.reflection.XClass entity,
SearchConfiguration cfg,
WorkerBuildContext buildContext) |
IndexManager |
getOrCreateIndexManager(String indexBaseName,
String shardName,
DynamicShardingEntityIndexBinding entityIndexBinding) |
void |
setActiveSearchIntegrator(ExtendedSearchIntegratorWithShareableState factory)
Useful for MutableSearchFactory, this haves all managed IndexManagers
switch over to the new SearchIntegrator.
|
void |
stop()
Stops all IndexManager instances
|
public MutableEntityIndexBinding buildEntityIndexBinding(org.hibernate.annotations.common.reflection.XClass entity, Class mappedClass, SearchConfiguration cfg, WorkerBuildContext buildContext)
public IndexManager getOrCreateIndexManager(String indexBaseName, String shardName, DynamicShardingEntityIndexBinding entityIndexBinding)
public Collection<IndexManager> getIndexManagers()
public void setActiveSearchIntegrator(ExtendedSearchIntegratorWithShareableState factory)
factory - the new SearchIntegrator to set on each IndexManager.public void stop()
public IndexManager getIndexManager(String targetIndexName)
targetIndexName - the name of the IndexManager to look uppublic BackendQueueProcessor getBackendQueueProcessor(String indexName)
public IndexManagerType getIndexManagerType(org.hibernate.annotations.common.reflection.XClass entity, SearchConfiguration cfg, WorkerBuildContext buildContext)
Copyright © 2006–2016 Hibernate. All rights reserved.