org.alfresco.repo.node.index
Class AVMFullIndexRecoveryComponent
java.lang.Object
org.alfresco.repo.node.index.AbstractReindexComponent
org.alfresco.repo.node.index.AVMFullIndexRecoveryComponent
- All Implemented Interfaces:
- IndexRecovery
public class AVMFullIndexRecoveryComponent
- extends AbstractReindexComponent
Check and recover the indexes for AVM stores
Methods inherited from class org.alfresco.repo.node.index.AbstractReindexComponent |
getIndexerWriteLock, isIgnorableStore, isShuttingDown, isTxnPresentInIndex, isTxnPresentInIndex, reindex, reindexTransaction, reindexTransaction, reindexTransactionAsynchronously, requireTransaction, setAuthenticationComponent, setFtsIndexer, setIndexer, setNodeDAO, setNodeService, setSearcher, setShutdown, setStoreProtocolsToIgnore, setStoresToIgnore, setTenantService, setThreadPoolExecutor, setTransactionService, waitForAsynchronousReindexing |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AVMFullIndexRecoveryComponent
public AVMFullIndexRecoveryComponent()
setRecoveryMode
public void setRecoveryMode(java.lang.String recoveryMode)
- Set the type of recovery to perform. Default is
to validate
the indexes only.
- Parameters:
recoveryMode
- one of the FullIndexRecoveryComponent.RecoveryMode
values
setLockServer
public void setLockServer(boolean lockServer)
- Set this on to put the server into READ-ONLY mode for the duration of the index recovery. The default is
true, i.e. the server will be locked against further updates.
- Parameters:
lockServer
- true to force the server to be read-only
setAvmService
public void setAvmService(AVMService avmService)
setAvmSnapShotTriggeredIndexingMethodInterceptor
public void setAvmSnapShotTriggeredIndexingMethodInterceptor(AVMSnapShotTriggeredIndexingMethodInterceptor avmSnapShotTriggeredIndexingMethodInterceptor)
reindexImpl
protected void reindexImpl()
- Description copied from class:
AbstractReindexComponent
- Perform the actual work. This method will be called as the system user
and within an existing transaction. This thread will only ever be accessed
by a single thread per instance.
- Specified by:
reindexImpl
in class AbstractReindexComponent
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.