Package org.fcrepo.persistence.ocfl.impl
Class ReindexWorker
java.lang.Object
org.fcrepo.persistence.ocfl.impl.ReindexWorker
- All Implemented Interfaces:
Runnable
A reindexing worker thread.
- Author:
- whikloj
-
Constructor Summary
ConstructorsConstructorDescriptionReindexWorker(String name, ReindexManager reindexManager, ReindexService reindexService, org.fcrepo.kernel.api.TransactionManager transactionManager, org.fcrepo.common.db.DbTransactionExecutor dbTransactionExecutor, boolean failOnError) Basic Constructor -
Method Summary
-
Constructor Details
-
ReindexWorker
public ReindexWorker(String name, ReindexManager reindexManager, ReindexService reindexService, org.fcrepo.kernel.api.TransactionManager transactionManager, org.fcrepo.common.db.DbTransactionExecutor dbTransactionExecutor, boolean failOnError) Basic Constructor- Parameters:
name- the name of the worker -- used in loggingreindexManager- the manager service.reindexService- the reindexing service.transactionManager- a transaction manager to generatedbTransactionExecutor- manages db transactionsfailOnError- whether the thread should fail on an error or log and continue.
-
-
Method Details
-
join
Join the thread.- Throws:
InterruptedException- if the current thread is interrupted.
-
start
Start the thread with this Runnable -
run
-
stopThread
Stop this thread from running once it has completed its current batch.
-