|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.alfresco.repo.node.index.AbstractReindexComponent
org.alfresco.repo.node.index.FullIndexRecoveryComponent
public class FullIndexRecoveryComponent
Component to check and recover the indexes. By default, the server is
put into read-only mode during the reindex process in order to prevent metadata changes.
This is not critical and can be switched off if the
server is required immediately.
FullIndexRecoveryComponent.RecoveryMode| Nested Class Summary | |
|---|---|
static class |
FullIndexRecoveryComponent.RecoveryMode
|
| Nested classes/interfaces inherited from class org.alfresco.repo.node.index.AbstractReindexComponent |
|---|
AbstractReindexComponent.InIndex, AbstractReindexComponent.ReindexNodeCallback, AbstractReindexComponent.ReindexTerminatedException |
| Field Summary |
|---|
| Fields inherited from class org.alfresco.repo.node.index.AbstractReindexComponent |
|---|
ftsIndexer, indexer, nodeDAO, nodeService, searcher, transactionService |
| Constructor Summary | |
|---|---|
FullIndexRecoveryComponent()
recoveryMode: VALIDATE stopOnError: true |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FullIndexRecoveryComponent()
| Method Detail |
|---|
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()
AbstractReindexComponent
reindexImpl 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 identifier
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||