public static class AbstractLuceneIndexerAndSearcherFactory.LuceneIndexBackupComponent
extends java.lang.Object
It can be run directly by calling the AbstractLuceneIndexerAndSearcherFactory.LuceneIndexBackupComponent.backup() method, but the convenience AbstractLuceneIndexerAndSearcherFactory.LuceneIndexBackupJob
can be used to call it as well.
| Constructor and Description |
|---|
AbstractLuceneIndexerAndSearcherFactory.LuceneIndexBackupComponent()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSetXXX() |
void |
backup()
Backup the Lucene indexes
|
void |
setCheckConfiguration(boolean checkConfiguration)
If false do not check the index configuration.
|
void |
setFactories(java.util.Set factories)
Set the Lucene index factory that will be used to control the index locks
|
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
Used to retrieve the stores
|
void |
setTargetLocation(java.lang.String targetLocation)
Set the directory to which the backup will be copied
|
void |
setTransactionService(TransactionService transactionService)
Provides transactions in which to perform the work
|
public AbstractLuceneIndexerAndSearcherFactory.LuceneIndexBackupComponent()
public void setCheckConfiguration(boolean checkConfiguration)
checkConfiguration - public void setTransactionService(TransactionService transactionService)
transactionService - public void setFactories(java.util.Set factories)
factories - the index factoriespublic void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
nodeService - the node servicepublic void setTargetLocation(java.lang.String targetLocation)
targetLocation - the backup directorypublic void backup()
public void afterPropertiesSetXXX()
throws java.lang.Exception
java.lang.ExceptionCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.