Class AbstractBackupRepositoryTest.NoChecksumDelegatingBackupRepository

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

    public static class AbstractBackupRepositoryTest.NoChecksumDelegatingBackupRepository
    extends org.apache.solr.core.backup.repository.DelegatingBackupRepository
    Test implementation of a DelegatingBackupRepository that disables the checksum verification on its delegate BackupRepository.

    This test class is public to be instantiated by the BackupRepositoryFactory.

    • 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void copyIndexFileFrom​(org.apache.lucene.store.Directory sourceDir, String sourceFileName, URI destDir, String destFileName)  
      void copyIndexFileFrom​(org.apache.lucene.store.Directory sourceDir, String sourceFileName, org.apache.lucene.store.Directory destDir, String destFileName)  
      protected org.apache.solr.common.util.NamedList<?> getDelegateInitArgs​(org.apache.solr.common.util.NamedList<?> initArgs)  
      • Methods inherited from class org.apache.solr.core.backup.repository.DelegatingBackupRepository

        checksum, close, copyFileFrom, copyFileTo, copyIndexFileTo, createDirectory, createDirectoryURI, createOutput, createURI, delete, deleteDirectory, exists, getBackupLocation, getConfigProperty, getPathType, listAll, listAllOrEmpty, openInput, resolve, resolveDirectory, setDelegate
      • Methods inherited from interface org.apache.solr.core.backup.repository.BackupRepository

        copyFileNoChecksum, delete
      • Methods inherited from interface org.apache.solr.util.plugin.NamedListInitializedPlugin

        init
    • Constructor Detail

      • NoChecksumDelegatingBackupRepository

        public NoChecksumDelegatingBackupRepository()
    • Method Detail

      • getDelegateInitArgs

        protected org.apache.solr.common.util.NamedList<?> getDelegateInitArgs​(org.apache.solr.common.util.NamedList<?> initArgs)
        Overrides:
        getDelegateInitArgs in class org.apache.solr.core.backup.repository.DelegatingBackupRepository
      • copyIndexFileFrom

        public void copyIndexFileFrom​(org.apache.lucene.store.Directory sourceDir,
                                      String sourceFileName,
                                      org.apache.lucene.store.Directory 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
      • 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