Package org.apache.solr.core
Class TrackingBackupRepository
- java.lang.Object
-
- org.apache.solr.core.backup.repository.DelegatingBackupRepository
-
- org.apache.solr.core.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
-
-
Constructor Summary
Constructors Constructor Description TrackingBackupRepository()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
clear()
Clear all tracking datastatic List<URI>
copiedFiles()
void
copyIndexFileFrom(org.apache.lucene.store.Directory sourceDir, String sourceFileName, URI destDir, String destFileName)
void
createDirectory(URI path)
OutputStream
createOutput(URI path)
static List<URI>
directoriesCreated()
static List<URI>
outputsCreated()
-
Methods inherited from class org.apache.solr.core.backup.repository.DelegatingBackupRepository
checksum, close, copyFileFrom, copyFileTo, copyIndexFileFrom, copyIndexFileTo, createDirectoryURI, createURI, delete, deleteDirectory, exists, getBackupLocation, getConfigProperty, getDelegateInitArgs, 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
-
createOutput
public OutputStream createOutput(URI path) throws IOException
- Specified by:
createOutput
in interfaceorg.apache.solr.core.backup.repository.BackupRepository
- Overrides:
createOutput
in classorg.apache.solr.core.backup.repository.DelegatingBackupRepository
- Throws:
IOException
-
createDirectory
public void createDirectory(URI path) throws IOException
- Specified by:
createDirectory
in interfaceorg.apache.solr.core.backup.repository.BackupRepository
- Overrides:
createDirectory
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
-
copiedFiles
public static List<URI> copiedFiles()
- Returns:
- list of files were copied by using
DelegatingBackupRepository.copyFileFrom(Directory, String, URI)
-
clear
public static void clear()
Clear all tracking data
-
-