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.BackupRepository
public URI createURI(String path)
createURI
in interface org.apache.solr.core.backup.repository.BackupRepository
public URI createDirectoryURI(String path)
createDirectoryURI
in interface org.apache.solr.core.backup.repository.BackupRepository
public URI resolve(URI baseUri, String... pathComponents)
resolve
in interface org.apache.solr.core.backup.repository.BackupRepository
public URI resolveDirectory(URI baseUri, String... pathComponents)
resolveDirectory
in interface org.apache.solr.core.backup.repository.BackupRepository
public boolean exists(URI path) throws IOException
exists
in interface org.apache.solr.core.backup.repository.BackupRepository
IOException
public org.apache.solr.core.backup.repository.BackupRepository.PathType getPathType(URI path) throws IOException
getPathType
in interface org.apache.solr.core.backup.repository.BackupRepository
IOException
public String[] listAll(URI path) throws IOException
listAll
in interface org.apache.solr.core.backup.repository.BackupRepository
IOException
public 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.BackupRepository
IOException
public OutputStream createOutput(URI path) throws IOException
createOutput
in interface org.apache.solr.core.backup.repository.BackupRepository
IOException
public void createDirectory(URI path) throws IOException
createDirectory
in interface org.apache.solr.core.backup.repository.BackupRepository
IOException
public void deleteDirectory(URI path) throws IOException
deleteDirectory
in interface org.apache.solr.core.backup.repository.BackupRepository
IOException
public 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.BackupRepository
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public void delete(URI path, Collection<String> files, boolean ignoreNoSuchFileException) throws IOException
delete
in interface org.apache.solr.core.backup.repository.BackupRepository
IOException
public 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.BackupRepository
IOException
public void init(org.apache.solr.common.util.NamedList args)
init
in interface org.apache.solr.util.plugin.NamedListInitializedPlugin
public 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.BackupRepository
IOException
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.