Class PojoMassIndexingBatchCoordinator
java.lang.Object
org.hibernate.search.mapper.pojo.massindexing.impl.PojoMassIndexingFailureHandledRunnable
org.hibernate.search.mapper.pojo.massindexing.impl.PojoMassIndexingBatchCoordinator
- All Implemented Interfaces:
Runnable
Makes sure that several different BatchIndexingWorkspace(s)
can be started concurrently, sharing the same batch-backend
and IndexWriters.
- Author:
- Sanne Grinovero
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionPojoMassIndexingBatchCoordinator(PojoMassIndexingMappingContext mappingContext, PojoMassIndexingNotifier notifier, List<PojoMassIndexingIndexedTypeGroup<?>> typeGroupsToIndex, PojoMassIndexingContext massIndexingContext, PojoScopeSchemaManager scopeSchemaManager, PojoScopeDelegate<?, ?, ?> pojoScopeDelegate, MassIndexingEnvironment environment, int typesToIndexInParallel, int documentBuilderThreads, Boolean mergeSegmentsOnFinish, boolean dropAndCreateSchemaOnStart, Boolean purgeAtStart, Boolean mergeSegmentsAfterPurge) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidprotected voidnotifyFailure(RuntimeException exception) protected voidnotifyInterrupted(InterruptedException exception) protected voidvoidMethods inherited from class org.hibernate.search.mapper.pojo.massindexing.impl.PojoMassIndexingFailureHandledRunnable
afterExecution, beforeExecution, createMassIndexingEnvironmentContext, getMassIndexingEnvironment, getNotifier, notifyError, operationName, run, supportsThreadLifecycleHooks
-
Constructor Details
-
PojoMassIndexingBatchCoordinator
public PojoMassIndexingBatchCoordinator(PojoMassIndexingMappingContext mappingContext, PojoMassIndexingNotifier notifier, List<PojoMassIndexingIndexedTypeGroup<?>> typeGroupsToIndex, PojoMassIndexingContext massIndexingContext, PojoScopeSchemaManager scopeSchemaManager, PojoScopeDelegate<?, ?, ?> pojoScopeDelegate, MassIndexingEnvironment environment, int typesToIndexInParallel, int documentBuilderThreads, Boolean mergeSegmentsOnFinish, boolean dropAndCreateSchemaOnStart, Boolean purgeAtStart, Boolean mergeSegmentsAfterPurge)
-
-
Method Details
-
runWithFailureHandler
- Specified by:
runWithFailureHandlerin classPojoMassIndexingFailureHandledRunnable- Throws:
InterruptedException
-
cleanUpOnInterruption
- Specified by:
cleanUpOnInterruptionin classPojoMassIndexingFailureHandledRunnable- Throws:
InterruptedException
-
cleanUpOnFailure
protected void cleanUpOnFailure()- Specified by:
cleanUpOnFailurein classPojoMassIndexingFailureHandledRunnable
-
notifySuccess
protected void notifySuccess()- Overrides:
notifySuccessin classPojoMassIndexingFailureHandledRunnable
-
notifyInterrupted
- Overrides:
notifyInterruptedin classPojoMassIndexingFailureHandledRunnable
-
notifyFailure
- Overrides:
notifyFailurein classPojoMassIndexingFailureHandledRunnable
-