public class TrackingBackupRepository extends Object implements org.apache.solr.core.backup.repository.BackupRepository
| Constructor and Description |
|---|
TrackingBackupRepository() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.solr.core.backup.Checksum |
checksum(org.apache.lucene.store.Directory dir,
String fileName) |
static void |
clear()
Clear all tracking data
|
void |
close() |
static List<URI> |
copiedFiles() |
void |
copyIndexFileFrom(org.apache.lucene.store.Directory sourceDir,
String sourceFileName,
URI destDir,
String destFileName) |
void |
copyIndexFileTo(URI sourceRepo,
String sourceFileName,
org.apache.lucene.store.Directory dest,
String destFileName) |
void |
createDirectory(URI path) |
URI |
createDirectoryURI(String path) |
OutputStream |
createOutput(URI path) |
URI |
createURI(String path) |
void |
delete(URI path,
Collection<String> files,
boolean ignoreNoSuchFileException) |
void |
deleteDirectory(URI path) |
boolean |
exists(URI path) |
<T> T |
getConfigProperty(String name) |
org.apache.solr.core.backup.repository.BackupRepository.PathType |
getPathType(URI path) |
void |
init(org.apache.solr.common.util.NamedList args) |
String[] |
listAll(URI path) |
org.apache.lucene.store.IndexInput |
openInput(URI dirPath,
String fileName,
org.apache.lucene.store.IOContext ctx) |
URI |
resolve(URI baseUri,
String... pathComponents) |
URI |
resolveDirectory(URI baseUri,
String... pathComponents) |
public <T> T getConfigProperty(String name)
getConfigProperty in interface org.apache.solr.core.backup.repository.BackupRepositorypublic URI createURI(String path)
createURI in interface org.apache.solr.core.backup.repository.BackupRepositorypublic URI createDirectoryURI(String path)
createDirectoryURI in interface org.apache.solr.core.backup.repository.BackupRepositorypublic URI resolve(URI baseUri, String... pathComponents)
resolve in interface org.apache.solr.core.backup.repository.BackupRepositorypublic URI resolveDirectory(URI baseUri, String... pathComponents)
resolveDirectory in interface org.apache.solr.core.backup.repository.BackupRepositorypublic boolean exists(URI path) throws IOException
exists in interface org.apache.solr.core.backup.repository.BackupRepositoryIOExceptionpublic org.apache.solr.core.backup.repository.BackupRepository.PathType getPathType(URI path) throws IOException
getPathType in interface org.apache.solr.core.backup.repository.BackupRepositoryIOExceptionpublic String[] listAll(URI path) throws IOException
listAll in interface org.apache.solr.core.backup.repository.BackupRepositoryIOExceptionpublic org.apache.lucene.store.IndexInput openInput(URI dirPath, String fileName, org.apache.lucene.store.IOContext ctx) throws IOException
openInput in interface org.apache.solr.core.backup.repository.BackupRepositoryIOExceptionpublic OutputStream createOutput(URI path) throws IOException
createOutput in interface org.apache.solr.core.backup.repository.BackupRepositoryIOExceptionpublic void createDirectory(URI path) throws IOException
createDirectory in interface org.apache.solr.core.backup.repository.BackupRepositoryIOExceptionpublic void deleteDirectory(URI path) throws IOException
deleteDirectory in interface org.apache.solr.core.backup.repository.BackupRepositoryIOExceptionpublic void copyIndexFileFrom(org.apache.lucene.store.Directory sourceDir,
String sourceFileName,
URI destDir,
String destFileName)
throws IOException
copyIndexFileFrom in interface org.apache.solr.core.backup.repository.BackupRepositoryIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic void delete(URI path, Collection<String> files, boolean ignoreNoSuchFileException) throws IOException
delete in interface org.apache.solr.core.backup.repository.BackupRepositoryIOExceptionpublic org.apache.solr.core.backup.Checksum checksum(org.apache.lucene.store.Directory dir,
String fileName)
throws IOException
checksum in interface org.apache.solr.core.backup.repository.BackupRepositoryIOExceptionpublic void init(org.apache.solr.common.util.NamedList args)
init in interface org.apache.solr.util.plugin.NamedListInitializedPluginpublic static List<URI> copiedFiles()
BackupRepository.copyFileFrom(Directory, String, URI)public static void clear()
public void copyIndexFileTo(URI sourceRepo, String sourceFileName, org.apache.lucene.store.Directory dest, String destFileName) throws IOException
copyIndexFileTo in interface org.apache.solr.core.backup.repository.BackupRepositoryIOExceptionCopyright © 2000-2021 Apache Software Foundation. All Rights Reserved.