Class AbstractBackupRepositoryTest.NoChecksumDelegatingBackupRepository
- java.lang.Object
-
- org.apache.solr.core.backup.repository.DelegatingBackupRepository
-
- org.apache.solr.cloud.api.collections.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 aDelegatingBackupRepository
that disables the checksum verification on its delegateBackupRepository
.This test class is public to be instantiated by the
BackupRepositoryFactory
.
-
-
Constructor Summary
Constructors Constructor Description NoChecksumDelegatingBackupRepository()
-
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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Method Detail
-
getDelegateInitArgs
protected org.apache.solr.common.util.NamedList<?> getDelegateInitArgs(org.apache.solr.common.util.NamedList<?> initArgs)
- Overrides:
getDelegateInitArgs
in classorg.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 interfaceorg.apache.solr.core.backup.repository.BackupRepository
- Overrides:
copyIndexFileFrom
in classorg.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 interfaceorg.apache.solr.core.backup.repository.BackupRepository
- Overrides:
copyIndexFileFrom
in classorg.apache.solr.core.backup.repository.DelegatingBackupRepository
- Throws:
IOException
-
-