org.infinispan.query.backend
Class LocalQueryInterceptor

java.lang.Object
  extended by org.infinispan.commands.AbstractVisitor
      extended by org.infinispan.interceptors.base.CommandInterceptor
          extended by org.infinispan.query.backend.QueryInterceptor
              extended by org.infinispan.query.backend.LocalQueryInterceptor
All Implemented Interfaces:
Visitor

public class LocalQueryInterceptor
extends QueryInterceptor

This class is an interceptor that will index data only if it has come from a local source.

Currently, this is a property that is determined by setting "infinispan.query.indexLocalOnly" as a System property to "true".

Since:
4.0
Author:
Navin Surtani

Field Summary
 
Fields inherited from class org.infinispan.query.backend.QueryInterceptor
asyncExecutor, transactionManager, transactionSynchronizationRegistry
 
Fields inherited from class org.infinispan.interceptors.base.CommandInterceptor
configuration
 
Constructor Summary
LocalQueryInterceptor(org.hibernate.search.spi.SearchFactoryIntegrator searchFactory)
           
 
Method Summary
protected  Log getLog()
           
 void injectDependencies(TransactionManager transactionManager, TransactionSynchronizationRegistry transactionSynchronizationRegistry, ExecutorService e)
           
protected  boolean shouldModifyIndexes(InvocationContext ctx)
           
 
Methods inherited from class org.infinispan.query.backend.QueryInterceptor
enableClasses, getAsyncExecutor, getKeyTransformationHandler, injectDependencies, registerKeyTransformer, removeFromIndexes, updateIndexes, visitClearCommand, visitPutKeyValueCommand, visitPutMapCommand, visitRemoveCommand, visitReplaceCommand
 
Methods inherited from class org.infinispan.interceptors.base.CommandInterceptor
getNext, handleDefault, hasNext, invokeNextInterceptor, setNext
 
Methods inherited from class org.infinispan.commands.AbstractVisitor
visitApplyDeltaCommand, visitCollection, visitCommitCommand, visitDistributedExecuteCommand, visitEntrySetCommand, visitEvictCommand, visitGetKeyValueCommand, visitInvalidateCommand, visitInvalidateL1Command, visitKeySetCommand, visitLockControlCommand, visitPrepareCommand, visitRollbackCommand, visitSizeCommand, visitUnknownCommand, visitValuesCommand
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalQueryInterceptor

public LocalQueryInterceptor(org.hibernate.search.spi.SearchFactoryIntegrator searchFactory)
Method Detail

getLog

protected Log getLog()
Overrides:
getLog in class QueryInterceptor

injectDependencies

public void injectDependencies(TransactionManager transactionManager,
                               TransactionSynchronizationRegistry transactionSynchronizationRegistry,
                               ExecutorService e)

shouldModifyIndexes

protected boolean shouldModifyIndexes(InvocationContext ctx)
Overrides:
shouldModifyIndexes in class QueryInterceptor

-->

Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.