org.alfresco.repo.node.index
Class AVMFullIndexRecoveryComponent

java.lang.Object
  extended by org.alfresco.repo.node.index.AbstractReindexComponent
      extended by org.alfresco.repo.node.index.AVMFullIndexRecoveryComponent
All Implemented Interfaces:
IndexRecovery

public class AVMFullIndexRecoveryComponent
extends AbstractReindexComponent

Check and recover the indexes for AVM stores


Nested Class Summary
 
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
AVMFullIndexRecoveryComponent()
           
 
Method Summary
protected  void reindexImpl()
          Perform the actual work.
 void setAvmService(AVMService avmService)
           
 void setAvmSnapShotTriggeredIndexingMethodInterceptor(AVMSnapShotTriggeredIndexingMethodInterceptor avmSnapShotTriggeredIndexingMethodInterceptor)
           
 void setLockServer(boolean lockServer)
          Set this on to put the server into READ-ONLY mode for the duration of the index recovery.
 void setRecoveryMode(java.lang.String recoveryMode)
          Set the type of recovery to perform.
 
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
 

Constructor Detail

AVMFullIndexRecoveryComponent

public AVMFullIndexRecoveryComponent()
Method Detail

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.