public class FullIndexRecoveryComponent extends AbstractReindexComponent
switched off
if the
server is required immediately.
FullIndexRecoveryComponent.RecoveryMode
Modifier and Type | Class and Description |
---|---|
static class |
FullIndexRecoveryComponent.RecoveryMode |
AbstractReindexComponent.InIndex, AbstractReindexComponent.ReindexNodeCallback, AbstractReindexComponent.ReindexTerminatedException
ftsIndexer, indexer, nodeDAO, nodeService, searcher, transactionService
Constructor and Description |
---|
FullIndexRecoveryComponent()
recoveryMode: VALIDATE
stopOnError: true
|
Modifier and Type | Method and Description |
---|---|
protected AbstractReindexComponent.InIndex |
areAllTxnsInEndSample(List<Transaction> txns) |
protected AbstractReindexComponent.InIndex |
areTxnsInStartSample(List<Transaction> txns) |
protected void |
reindexImpl()
Perform the actual work.
|
void |
reindexTransaction(long txnId)
Perform full reindexing of the given transaction.
|
void |
setIndexTracker(IndexTransactionTracker indexTracker)
Set the tracker that will be used for AUTO mode.
|
void |
setLockServer(boolean lockServer)
Set this on to put the server into READ-ONLY mode for the duration of the index recovery.
|
void |
setMaxTransactionsPerLuceneCommit(int maxTransactionsPerLuceneCommit)
Set the number of transactions to process per Lucene write.
|
void |
setRecoveryMode(String recoveryMode)
Set the type of recovery to perform.
|
void |
setStopOnError(boolean stopOnError)
Set whether a full rebuild should stop in the event of encoutering an error.
|
doInRetryingTransaction, getIndexerWriteLock, isIgnorableStore, isShuttingDown, isTxnPresentInIndex, isTxnPresentInIndex, reindex, reindexTransaction, reindexTransaction, reindexTransactionAsynchronously, requireTransaction, setAuthenticationComponent, setFtsIndexer, setIndexer, setNodeDAO, setNodeService, setSearcher, setShutdown, setStoreProtocolsToIgnore, setStoresToIgnore, setTenantService, setThreadPoolExecutor, setTransactionService, waitForAsynchronousReindexing
public FullIndexRecoveryComponent()
public void setRecoveryMode(String recoveryMode)
to validate
the indexes only.recoveryMode
- one of the FullIndexRecoveryComponent.RecoveryMode
valuespublic void setMaxTransactionsPerLuceneCommit(int maxTransactionsPerLuceneCommit)
public void setLockServer(boolean lockServer)
lockServer
- true to force the server to be read-onlypublic void setIndexTracker(IndexTransactionTracker indexTracker)
indexTracker
- an index tracker componentpublic void setStopOnError(boolean stopOnError)
stopOnError
- true to stop reindexing when an error is encountered.protected void reindexImpl()
AbstractReindexComponent
reindexImpl
in class AbstractReindexComponent
protected AbstractReindexComponent.InIndex areAllTxnsInEndSample(List<Transaction> txns)
protected AbstractReindexComponent.InIndex areTxnsInStartSample(List<Transaction> txns)
public void reindexTransaction(long txnId)
txnId
- the transaction identifierCopyright © 2005–2017 Alfresco Software. All rights reserved.