Package org.apache.solr.core
Class TrackingBackupRepository
- java.lang.Object
-
- org.apache.solr.core.backup.repository.AbstractBackupRepository
-
- 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 voidclear()Clear all tracking datastatic List<URI>copiedFiles()voidcopyIndexFileFrom(org.apache.lucene.store.Directory sourceDir, String sourceFileName, URI destDir, String destFileName)voidcreateDirectory(URI path)OutputStreamcreateOutput(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 org.apache.solr.core.backup.repository.AbstractBackupRepository
getBooleanConfig, init
-
-
-
-
Method Detail
-
createOutput
public OutputStream createOutput(URI path) throws IOException
- Specified by:
createOutputin interfaceorg.apache.solr.core.backup.repository.BackupRepository- Overrides:
createOutputin classorg.apache.solr.core.backup.repository.DelegatingBackupRepository- Throws:
IOException
-
createDirectory
public void createDirectory(URI path) throws IOException
- Specified by:
createDirectoryin interfaceorg.apache.solr.core.backup.repository.BackupRepository- Overrides:
createDirectoryin 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:
copyIndexFileFromin interfaceorg.apache.solr.core.backup.repository.BackupRepository- Overrides:
copyIndexFileFromin 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
-
-