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) |
IndexManagerGroupHolder |
getGroupHolderByIndexManager(IndexManager indexManager) |
IndexManager |
getIndexManager(String targetIndexName) |
Collection<IndexManager> |
getIndexManagers() |
IndexManagerType |
getIndexManagerType(String indexName,
Properties[] indexProperties,
SearchConfiguration cfg,
WorkerBuildContext buildContext) |
Collection<IndexManagerType> |
getIndexManagerTypes() |
void |
setActiveSearchIntegrator(ExtendedSearchIntegrator integrator)
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 Collection<IndexManager> getIndexManagers()
public void setActiveSearchIntegrator(ExtendedSearchIntegrator integrator)
integrator - 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 IndexManagerGroupHolder getGroupHolderByIndexManager(IndexManager indexManager)
public IndexManagerType getIndexManagerType(String indexName, Properties[] indexProperties, SearchConfiguration cfg, WorkerBuildContext buildContext)
public Collection<IndexManagerType> getIndexManagerTypes()
Copyright © 2006–2017 Hibernate. All rights reserved.