Class AbstractLuceneIndexerAndSearcherFactory.LuceneIndexBackupComponent

    • Constructor Detail

      • LuceneIndexBackupComponent

        public LuceneIndexBackupComponent()
        Default constructor
    • Method Detail

      • setCheckConfiguration

        public void setCheckConfiguration​(boolean checkConfiguration)
        If false do not check the index configuration.
        Parameters:
        checkConfiguration - boolean
      • setTransactionService

        public void setTransactionService​(TransactionService transactionService)
        Provides transactions in which to perform the work
        Parameters:
        transactionService - TransactionService
      • setFactories

        public void setFactories​(java.util.Set<LuceneIndexerAndSearcher> factories)
        Set the Lucene index factory that will be used to control the index locks
        Parameters:
        factories - the index factories
      • setNodeService

        public void setNodeService​(org.alfresco.service.cmr.repository.NodeService nodeService)
        Used to retrieve the stores
        Parameters:
        nodeService - the node service
      • setTargetLocation

        public void setTargetLocation​(java.lang.String targetLocation)
        Set the directory to which the backup will be copied
        Parameters:
        targetLocation - the backup directory
      • backup

        public void backup()
        Backup the Lucene indexes
      • afterPropertiesSetXXX

        public void afterPropertiesSetXXX()
                                   throws java.lang.Exception
        Throws:
        java.lang.Exception