Package org.infinispan.query.impl
Class LifecycleManager
- java.lang.Object
-
- org.infinispan.query.impl.LifecycleManager
-
- All Implemented Interfaces:
org.infinispan.lifecycle.ModuleLifecycle
public class LifecycleManager extends Object implements org.infinispan.lifecycle.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 StringMAX_BOOLEAN_CLAUSES_SYS_PROPOptional 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 voidcacheManagerStarted(org.infinispan.factories.GlobalComponentRegistry gcr)voidcacheManagerStarting(org.infinispan.factories.GlobalComponentRegistry gcr, org.infinispan.configuration.global.GlobalConfiguration globalCfg)voidcacheStarted(org.infinispan.factories.ComponentRegistry cr, String cacheName)voidcacheStarting(org.infinispan.factories.ComponentRegistry cr, org.infinispan.configuration.cache.Configuration cfg, String cacheName)Registers the Search interceptor in the cache before it gets startedvoidcacheStopped(org.infinispan.factories.ComponentRegistry cr, String cacheName)voidcacheStopping(org.infinispan.factories.ComponentRegistry cr, String cacheName)voidenableRemoteQuery()
-
-
-
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(org.infinispan.factories.ComponentRegistry cr, org.infinispan.configuration.cache.Configuration cfg, String cacheName)Registers the Search interceptor in the cache before it gets started- Specified by:
cacheStartingin interfaceorg.infinispan.lifecycle.ModuleLifecycle
-
enableRemoteQuery
public void enableRemoteQuery()
-
cacheStarted
public void cacheStarted(org.infinispan.factories.ComponentRegistry cr, String cacheName)- Specified by:
cacheStartedin interfaceorg.infinispan.lifecycle.ModuleLifecycle
-
cacheStopping
public void cacheStopping(org.infinispan.factories.ComponentRegistry cr, String cacheName)- Specified by:
cacheStoppingin interfaceorg.infinispan.lifecycle.ModuleLifecycle
-
cacheStopped
public void cacheStopped(org.infinispan.factories.ComponentRegistry cr, String cacheName)- Specified by:
cacheStoppedin interfaceorg.infinispan.lifecycle.ModuleLifecycle
-
cacheManagerStarting
public void cacheManagerStarting(org.infinispan.factories.GlobalComponentRegistry gcr, org.infinispan.configuration.global.GlobalConfiguration globalCfg)- Specified by:
cacheManagerStartingin interfaceorg.infinispan.lifecycle.ModuleLifecycle
-
cacheManagerStarted
public void cacheManagerStarted(org.infinispan.factories.GlobalComponentRegistry gcr)
- Specified by:
cacheManagerStartedin interfaceorg.infinispan.lifecycle.ModuleLifecycle
-
-