public static class AbstractLuceneIndexerAndSearcherFactory.LuceneIndexBackupComponent extends Object
It can be run directly by calling the backup()
method, but the convenience AbstractLuceneIndexerAndSearcherFactory.LuceneIndexBackupJob
can be used to call it as well.
Constructor and Description |
---|
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(Set<LuceneIndexerAndSearcher> 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(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 LuceneIndexBackupComponent()
public void setCheckConfiguration(boolean checkConfiguration)
checkConfiguration
- booleanpublic void setTransactionService(TransactionService transactionService)
transactionService
- TransactionServicepublic void setFactories(Set<LuceneIndexerAndSearcher> factories)
factories
- the index factoriespublic void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
nodeService
- the node servicepublic void setTargetLocation(String targetLocation)
targetLocation
- the backup directorypublic void backup()
Copyright © 2005–2017 Alfresco Software. All rights reserved.