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() |
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)
public Collection<IndexManagerType> getIndexManagerTypes()
Copyright © 2006–2017 Hibernate. All rights reserved.