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 final String
    Optional integer system property that sets value of BooleanQuery.setMaxClauseCount(int).
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    cacheManagerStarted(org.infinispan.factories.GlobalComponentRegistry gcr)
     
    void
    cacheManagerStarting(org.infinispan.factories.GlobalComponentRegistry gcr, org.infinispan.configuration.global.GlobalConfiguration globalCfg)
     
    void
    cacheStarted(org.infinispan.factories.ComponentRegistry cr, String cacheName)
     
    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
    void
    cacheStopped(org.infinispan.factories.ComponentRegistry cr, String cacheName)
     
    void
    cacheStopping(org.infinispan.factories.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

      public static final String MAX_BOOLEAN_CLAUSES_SYS_PROP
      Optional integer system property that sets value of BooleanQuery.setMaxClauseCount(int).
      See Also:
  • Constructor Details

    • LifecycleManager

      public LifecycleManager()
  • Method Details

    • 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:
      cacheStarting in interface org.infinispan.lifecycle.ModuleLifecycle
    • enableRemoteQuery

      public void enableRemoteQuery()
    • cacheStarted

      public void cacheStarted(org.infinispan.factories.ComponentRegistry cr, String cacheName)
      Specified by:
      cacheStarted in interface org.infinispan.lifecycle.ModuleLifecycle
    • cacheStopping

      public void cacheStopping(org.infinispan.factories.ComponentRegistry cr, String cacheName)
      Specified by:
      cacheStopping in interface org.infinispan.lifecycle.ModuleLifecycle
    • cacheStopped

      public void cacheStopped(org.infinispan.factories.ComponentRegistry cr, String cacheName)
      Specified by:
      cacheStopped in interface org.infinispan.lifecycle.ModuleLifecycle
    • cacheManagerStarting

      public void cacheManagerStarting(org.infinispan.factories.GlobalComponentRegistry gcr, org.infinispan.configuration.global.GlobalConfiguration globalCfg)
      Specified by:
      cacheManagerStarting in interface org.infinispan.lifecycle.ModuleLifecycle
    • cacheManagerStarted

      public void cacheManagerStarted(org.infinispan.factories.GlobalComponentRegistry gcr)
      Specified by:
      cacheManagerStarted in interface org.infinispan.lifecycle.ModuleLifecycle