Package org.apache.solr.core.backup
Class BackupProperties
java.lang.Object
org.apache.solr.core.backup.BackupProperties
Represents a backup[-*].properties file, responsible for holding whole-collection and
whole-backup metadata.
These files live in a different location and hold different metadata depending on the backup format used. The (now deprecated) traditional 'full-snapshot' backup format places this file at $LOCATION/$NAME, while the preferred incremental backup format stores these files in $LOCATION/$NAME/$COLLECTION.
-
Method Summary
Modifier and TypeMethodDescriptionvoidcountIndexFiles(int numFiles, double sizeMB) static BackupPropertiescreate(String backupName, String collectionName, String extCollectionName, String configName, Map<String, String> extraProperties) getShardBackupIdFor(String shardName) putAndGetShardBackupIdFor(String shardName, int backupId) static BackupPropertiesreadFrom(BackupRepository repository, URI backupPath, String fileName) static Optional<BackupProperties> readFromLatest(BackupRepository repository, URI backupPath) void
-
Method Details
-
create
-
readFromLatest
public static Optional<BackupProperties> readFromLatest(BackupRepository repository, URI backupPath) throws IOException - Throws:
IOException
-
readFrom
public static BackupProperties readFrom(BackupRepository repository, URI backupPath, String fileName) throws IOException - Throws:
IOException
-
getAllShardBackupMetadataFiles
-
countIndexFiles
public void countIndexFiles(int numFiles, double sizeMB) -
getShardBackupIdFor
-
putAndGetShardBackupIdFor
-
store
- Throws:
IOException
-
getCollection
-
getCollectionAlias
-
getConfigName
-
getStartTime
-
getEndTime
-
getIndexVersion
-
getExtraProperties
-
getDetails
-
getBackupName
-