public class FullIndexRecoveryComponent extends AbstractReindexComponent
switched off if the
server is required immediately.
| Modifier and Type | Class and Description |
|---|---|
static class |
FullIndexRecoveryComponent.RecoveryMode |
AbstractReindexComponent.InIndex, AbstractReindexComponent.ReindexNodeCallback, AbstractReindexComponent.ReindexTerminatedExceptionftsIndexer, indexer, nodeDAO, nodeService, searcher, transactionService| Constructor and Description |
|---|
FullIndexRecoveryComponent()
recoveryMode: VALIDATE
stopOnError: true
|
| Modifier and Type | Method and Description |
|---|---|
protected AbstractReindexComponent.InIndex |
areAllTxnsInEndSample(java.util.List txns) |
protected AbstractReindexComponent.InIndex |
areTxnsInStartSample(java.util.List 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(java.lang.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, waitForAsynchronousReindexingpublic FullIndexRecoveryComponent()
public void setRecoveryMode(java.lang.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()
AbstractReindexComponentreindexImpl in class AbstractReindexComponentprotected AbstractReindexComponent.InIndex areAllTxnsInEndSample(java.util.List txns)
protected AbstractReindexComponent.InIndex areTxnsInStartSample(java.util.List txns)
public void reindexTransaction(long txnId)
txnId - the transaction identifierCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.