Package org.infinispan.query.impl
Class LifecycleManager
java.lang.Object
org.infinispan.query.impl.LifecycleManager
- All Implemented Interfaces:
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
Modifier and TypeFieldDescriptionstatic final String
Optional integer system property that sets value ofBooleanQuery.setMaxClauseCount(int)
. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
cacheManagerStarting
(GlobalComponentRegistry gcr, GlobalConfiguration globalCfg) 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) void
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
cacheManagerStopped, cacheManagerStopping
-
Field Details
-
MAX_BOOLEAN_CLAUSES_SYS_PROP
Optional integer system property that sets value ofBooleanQuery.setMaxClauseCount(int)
.- See Also:
-
-
Constructor Details
-
LifecycleManager
public LifecycleManager()
-
-
Method Details
-
cacheStarting
Registers the Search interceptor in the cache before it gets started- Specified by:
cacheStarting
in interfaceModuleLifecycle
-
enableRemoteQuery
public void enableRemoteQuery() -
cacheStarted
- Specified by:
cacheStarted
in interfaceModuleLifecycle
-
cacheStopping
- Specified by:
cacheStopping
in interfaceModuleLifecycle
-
cacheStopped
- Specified by:
cacheStopped
in interfaceModuleLifecycle
-
cacheManagerStarting
- Specified by:
cacheManagerStarting
in interfaceModuleLifecycle
-
cacheManagerStarted
- Specified by:
cacheManagerStarted
in interfaceModuleLifecycle
-