public class IndexManagerHolder extends Object
IndexManager
instances, and starts or stops them.
Starting IndexManager
s happens by creating new EntityIndexBinding
instances. IndexManager
s are
started successively as they are needed (for example based on the sharding strategy).
Stopping IndexManager
s 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) |
IndexManager |
getIndexManager(String targetIndexName) |
Collection<IndexManager> |
getIndexManagers() |
IndexManager |
getOrCreateIndexManager(String indexBaseName,
DynamicShardingEntityIndexBinding entityIndexBinding) |
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, DynamicShardingEntityIndexBinding entityIndexBinding)
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 upCopyright © 2006-2015 Red Hat, Inc. All Rights Reserved