org.hibernate.search.batchindexing.impl
Class BatchCoordinator

java.lang.Object
  extended by org.hibernate.search.batchindexing.impl.BatchCoordinator
All Implemented Interfaces:
Runnable

public class BatchCoordinator
extends Object
implements Runnable

Makes sure that several different BatchIndexingWorkspace(s) can be started concurrently, sharing the same batch-backend and IndexWriters.

Author:
Sanne Grinovero

Constructor Summary
BatchCoordinator(Set<Class<?>> rootEntities, SearchFactoryImplementor searchFactoryImplementor, SessionFactory sessionFactory, int objectLoadingThreads, int collectionLoadingThreads, CacheMode cacheMode, int objectLoadingBatchSize, long objectsLimit, boolean optimizeAtEnd, boolean purgeAtStart, boolean optimizeAfterPurge, MassIndexerProgressMonitor monitor, int idFetchSize)
           
 
Method Summary
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BatchCoordinator

public BatchCoordinator(Set<Class<?>> rootEntities,
                        SearchFactoryImplementor searchFactoryImplementor,
                        SessionFactory sessionFactory,
                        int objectLoadingThreads,
                        int collectionLoadingThreads,
                        CacheMode cacheMode,
                        int objectLoadingBatchSize,
                        long objectsLimit,
                        boolean optimizeAtEnd,
                        boolean purgeAtStart,
                        boolean optimizeAfterPurge,
                        MassIndexerProgressMonitor monitor,
                        int idFetchSize)
Method Detail

run

public void run()
Specified by:
run in interface Runnable


Copyright © 2006-2012 Red Hat Middleware, LLC. All Rights Reserved