use of org.apache.geode.cache.lucene.internal.LuceneIndexFactorySpy in project geode by apache.
the class LuceneQueriesAccessorBase method addCallbackToMovePrimaryOnQuery.
protected void addCallbackToMovePrimaryOnQuery(VM vm, final DistributedMember destination) {
vm.invoke(() -> {
LuceneIndexFactorySpy factorySpy = LuceneIndexFactorySpy.injectSpy();
factorySpy.setGetRespositoryConsumer(doOnce(key -> moveBucket(destination, key)));
});
}
Aggregations