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 int
id
static int
TRADITIONAL_BACKUP
-
Constructor Summary
Constructors Constructor Description BackupId(int id)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(BackupId o)
boolean
equals(Object o)
int
getId()
int
hashCode()
BackupId
nextBackupId()
static BackupId
traditionalBackup()
static BackupId
zero()
-
-
-
Field Detail
-
TRADITIONAL_BACKUP
public static final int TRADITIONAL_BACKUP
- See Also:
- Constant Field Values
-
id
public final int id
-
-