Search in sources :

Example 6 with QueryInterceptor

use of org.infinispan.query.backend.QueryInterceptor in project infinispan by infinispan.

the class LifecycleManager method cacheStopping.

@Override
public void cacheStopping(ComponentRegistry cr, String cacheName) {
    QueryInterceptor queryInterceptor = cr.getComponent(QueryInterceptor.class);
    if (queryInterceptor != null) {
        queryInterceptor.prepareForStopping();
    }
    SearchMapping searchMapping = cr.getComponent(SearchMapping.class);
    if (searchMapping != null) {
        searchMapping.close();
    }
}
Also used : TxQueryInterceptor(org.infinispan.query.backend.TxQueryInterceptor) QueryInterceptor(org.infinispan.query.backend.QueryInterceptor) SearchMapping(org.infinispan.search.mapper.mapping.SearchMapping)

Aggregations

QueryInterceptor (org.infinispan.query.backend.QueryInterceptor)6 SearchMapping (org.infinispan.search.mapper.mapping.SearchMapping)3 Map (java.util.Map)2 ConcurrentHashMap (java.util.concurrent.ConcurrentHashMap)2 BasicComponentRegistry (org.infinispan.factories.impl.BasicComponentRegistry)2 TxQueryInterceptor (org.infinispan.query.backend.TxQueryInterceptor)2 HashMap (java.util.HashMap)1 ConcurrentMap (java.util.concurrent.ConcurrentMap)1 AdvancedCache (org.infinispan.AdvancedCache)1 MediaType (org.infinispan.commons.dataconversion.MediaType)1 APPLICATION_OBJECT (org.infinispan.commons.dataconversion.MediaType.APPLICATION_OBJECT)1 APPLICATION_PROTOSTREAM (org.infinispan.commons.dataconversion.MediaType.APPLICATION_PROTOSTREAM)1 ConfigurationBuilder (org.infinispan.configuration.cache.ConfigurationBuilder)1 ComponentRegistry (org.infinispan.factories.ComponentRegistry)1 AsyncInterceptorChain (org.infinispan.interceptors.AsyncInterceptorChain)1 EntryWrappingInterceptor (org.infinispan.interceptors.impl.EntryWrappingInterceptor)1 CacheContainer (org.infinispan.manager.CacheContainer)1 Matcher (org.infinispan.objectfilter.Matcher)1 ReflectionMatcher (org.infinispan.objectfilter.impl.ReflectionMatcher)1 EntityNameResolver (org.infinispan.objectfilter.impl.syntax.parser.EntityNameResolver)1