Class TrackingBackupRepository

  • All Implemented Interfaces:
    Closeable, AutoCloseable, org.apache.solr.core.backup.repository.BackupRepository, org.apache.solr.util.plugin.NamedListInitializedPlugin

    public class TrackingBackupRepository
    extends org.apache.solr.core.backup.repository.DelegatingBackupRepository
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.apache.solr.core.backup.repository.BackupRepository

        org.apache.solr.core.backup.repository.BackupRepository.PathType
    • Field Summary

      • Fields inherited from class org.apache.solr.core.backup.repository.DelegatingBackupRepository

        delegate, PARAM_DELEGATE_REPOSITORY_NAME
    • Constructor Detail

      • TrackingBackupRepository

        public TrackingBackupRepository()
    • Method Detail

      • createOutput

        public OutputStream createOutput​(URI path)
                                  throws IOException
        Specified by:
        createOutput in interface org.apache.solr.core.backup.repository.BackupRepository
        Overrides:
        createOutput in class org.apache.solr.core.backup.repository.DelegatingBackupRepository
        Throws:
        IOException
      • createDirectory

        public void createDirectory​(URI path)
                             throws IOException
        Specified by:
        createDirectory in interface org.apache.solr.core.backup.repository.BackupRepository
        Overrides:
        createDirectory in class org.apache.solr.core.backup.repository.DelegatingBackupRepository
        Throws:
        IOException
      • copyIndexFileFrom

        public void copyIndexFileFrom​(org.apache.lucene.store.Directory sourceDir,
                                      String sourceFileName,
                                      URI destDir,
                                      String destFileName)
                               throws IOException
        Specified by:
        copyIndexFileFrom in interface org.apache.solr.core.backup.repository.BackupRepository
        Overrides:
        copyIndexFileFrom in class org.apache.solr.core.backup.repository.DelegatingBackupRepository
        Throws:
        IOException
      • copiedFiles

        public static List<URI> copiedFiles()
        Returns:
        list of files were copied by using DelegatingBackupRepository.copyFileFrom(Directory, String, URI)
      • directoriesCreated

        public static List<URI> directoriesCreated()
      • outputsCreated

        public static List<URI> outputsCreated()
      • clear

        public static void clear()
        Clear all tracking data