Package org.apache.solr.core.backup
Class BackupId
- java.lang.Object
-
- org.apache.solr.core.backup.BackupId
-
- All Implemented Interfaces:
Comparable<BackupId>
public class BackupId extends Object implements Comparable<BackupId>
Represents the ID of a particular backup.Backup IDs are used to track different backup points stored at the same backup-location under the same backup-name.
Incremental backups can have any non-negative integer as an ID, and ID's are expected to increase sequentially.
Traditional (now-deprecated) 'full-snapshot' backups only support a single backup point per name per location. So these all have the same ID value of
TRADITIONAL_BACKUP
-
-
Field Summary
Fields Modifier and Type Field Description intidstatic intTRADITIONAL_BACKUP
-
Constructor Summary
Constructors Constructor Description BackupId(int id)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(BackupId o)booleanequals(Object o)intgetId()inthashCode()BackupIdnextBackupId()static BackupIdtraditionalBackup()static BackupIdzero()
-
-
-
Field Detail
-
TRADITIONAL_BACKUP
public static final int TRADITIONAL_BACKUP
- See Also:
- Constant Field Values
-
id
public final int id
-
-