|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hibernate.search.indexes.impl.IndexManagerHolder
public class IndexManagerHolder
Stores references to IndexManager instances, and starts/stops them. Starting IndexManagers happens by creating new EntityIndexBinder instances, while creating the binders if we hit the need for a new IndexManager, or several according to a sharding strategy, the new IndexManagers are started incrementally. Stopping IndexManager can not currently happen decrementally: to stop the IndexManagers all of them are stopped.
| Constructor Summary | |
|---|---|
IndexManagerHolder()
|
|
| Method Summary | |
|---|---|
MutableEntityIndexBinding |
buildEntityIndexBinding(org.hibernate.annotations.common.reflection.XClass entity,
Class mappedClass,
SearchConfiguration cfg,
WorkerBuildContext context)
Multiple IndexManager might be built for the same entity to implement Sharding. |
IndexManager |
getIndexManager(String targetIndexName)
|
Collection<IndexManager> |
getIndexManagers()
|
void |
setActiveSearchFactory(SearchFactoryImplementorWithShareableState factory)
Useful for MutableSearchFactory, this haves all managed IndexManagers switch over to the new SearchFactory. |
void |
stop()
Stops all IndexManager instances |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IndexManagerHolder()
| Method Detail |
|---|
public MutableEntityIndexBinding buildEntityIndexBinding(org.hibernate.annotations.common.reflection.XClass entity,
Class mappedClass,
SearchConfiguration cfg,
WorkerBuildContext context)
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 up
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||