Package org.opends.server.backup
Class Backup
- java.lang.Object
-
- org.opends.server.backup.Backup
-
public final class Backup extends Object
This class contains all the metadata associated with a backup. This includes various properties like the timestamp or backend name as well as the set of backend file IDs associated with this backup. Backup objects map the content of <backupId>.idx files and have additional fields likeverified
anderrors
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Set<LocalizableMessage>
getErrors()
Return all the errors found after verifying this backup.BackupId
getId()
Returns the backup ID.String
getServerId()
Returns the ID of the DS instance that created this backup.boolean
hasErrors()
Returns whether this backup cannot be restored because it has errors.int
hashCode()
boolean
isVerified()
Returns whether this backup has been verified.String
toString()
-
-
-
Constructor Detail
-
Backup
public Backup(Instant timestamp, String backendId, String serverId, Set<org.opends.server.backup.BackendFileId> backendFileIds)
Creates a new backup with the provided properties.- Parameters:
timestamp
- The timestamp.backendId
- The backend ID.serverId
- The server ID.backendFileIds
- the set of backend file IDs.
-
-
Method Detail
-
getServerId
public String getServerId()
Returns the ID of the DS instance that created this backup.- Returns:
- the ID of the DS instance that created this backup.
-
isVerified
public boolean isVerified()
Returns whether this backup has been verified.- Returns:
- whether this backup has been verified.
-
hasErrors
public boolean hasErrors()
Returns whether this backup cannot be restored because it has errors.- Returns:
- whether this backup has errors.
-
getErrors
public Set<LocalizableMessage> getErrors()
Return all the errors found after verifying this backup.- Returns:
- all the errors found after verifying this backup.
-
getId
public BackupId getId()
Returns the backup ID.- Returns:
- the backup ID.
-
-