public class BackupProperties extends Object
Modifier and Type | Method and Description |
---|---|
void |
countIndexFiles(int numFiles,
double sizeMB) |
static BackupProperties |
create(String backupName,
String collectionName,
String extCollectionName,
String configName) |
List<String> |
getAllShardBackupMetadataFiles() |
String |
getBackupName() |
String |
getCollection() |
String |
getCollectionAlias() |
String |
getConfigName() |
Map<Object,Object> |
getDetails() |
String |
getIndexVersion() |
Optional<ShardBackupId> |
getShardBackupIdFor(String shardName) |
String |
getStartTime() |
String |
getStateFormat() |
ShardBackupId |
putAndGetShardBackupIdFor(String shardName,
int backupId) |
static BackupProperties |
readFrom(BackupRepository repository,
URI backupPath,
String fileName) |
static Optional<BackupProperties> |
readFromLatest(BackupRepository repository,
URI backupPath) |
void |
store(Writer propsWriter) |
public static BackupProperties create(String backupName, String collectionName, String extCollectionName, String configName)
public static Optional<BackupProperties> readFromLatest(BackupRepository repository, URI backupPath) throws IOException
IOException
public static BackupProperties readFrom(BackupRepository repository, URI backupPath, String fileName) throws IOException
IOException
public void countIndexFiles(int numFiles, double sizeMB)
public Optional<ShardBackupId> getShardBackupIdFor(String shardName)
public ShardBackupId putAndGetShardBackupIdFor(String shardName, int backupId)
public void store(Writer propsWriter) throws IOException
IOException
public String getCollection()
public String getCollectionAlias()
public String getConfigName()
public String getStartTime()
public String getIndexVersion()
public String getStateFormat()
public String getBackupName()
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.