Package org.infinispan.query.impl
Class LifecycleManager
- java.lang.Object
-
- org.infinispan.query.impl.LifecycleManager
-
- All Implemented Interfaces:
ModuleLifecycle
@MetaInfServices(ModuleLifecycle.class) public class LifecycleManager extends Object implements ModuleLifecycle
Lifecycle of the Query module: initializes the Hibernate Search engine and shuts it down at cache stop. Each cache manager has its own instance of this class during its lifetime.- Author:
- Sanne Grinovero <sanne@hibernate.org> (C) 2011 Red Hat Inc.
-
-
Field Summary
Fields Modifier and Type Field Description static String
MAX_BOOLEAN_CLAUSES_SYS_PROP
Optional integer system property that sets value ofBooleanQuery.setMaxClauseCount(int)
.
-
Constructor Summary
Constructors Constructor Description LifecycleManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cacheManagerStarting(GlobalComponentRegistry gcr, GlobalConfiguration globalCfg)
void
cacheManagerStopped(GlobalComponentRegistry gcr)
void
cacheStarted(ComponentRegistry cr, String cacheName)
void
cacheStarting(ComponentRegistry cr, Configuration cfg, String cacheName)
Registers the Search interceptor in the cache before it gets startedvoid
cacheStopped(ComponentRegistry cr, String cacheName)
void
cacheStopping(ComponentRegistry cr, String cacheName)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.infinispan.lifecycle.ModuleLifecycle
cacheManagerStarted, cacheManagerStopping
-
-
-
-
Field Detail
-
MAX_BOOLEAN_CLAUSES_SYS_PROP
public static final String MAX_BOOLEAN_CLAUSES_SYS_PROP
Optional integer system property that sets value ofBooleanQuery.setMaxClauseCount(int)
.- See Also:
- Constant Field Values
-
-
Method Detail
-
cacheStarting
public void cacheStarting(ComponentRegistry cr, Configuration cfg, String cacheName)
Registers the Search interceptor in the cache before it gets started- Specified by:
cacheStarting
in interfaceModuleLifecycle
-
cacheStarted
public void cacheStarted(ComponentRegistry cr, String cacheName)
- Specified by:
cacheStarted
in interfaceModuleLifecycle
-
cacheStopping
public void cacheStopping(ComponentRegistry cr, String cacheName)
- Specified by:
cacheStopping
in interfaceModuleLifecycle
-
cacheStopped
public void cacheStopped(ComponentRegistry cr, String cacheName)
- Specified by:
cacheStopped
in interfaceModuleLifecycle
-
cacheManagerStarting
public void cacheManagerStarting(GlobalComponentRegistry gcr, GlobalConfiguration globalCfg)
- Specified by:
cacheManagerStarting
in interfaceModuleLifecycle
-
cacheManagerStopped
public void cacheManagerStopped(GlobalComponentRegistry gcr)
- Specified by:
cacheManagerStopped
in interfaceModuleLifecycle
-
-