Package org.opends.server.backup
Class Backup
java.lang.Object
org.opends.server.backup.Backup
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 like
verified
and errors
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Return all the errors found after verifying this backup.getId()
Returns the backup ID.Returns the ID of the DS instance that created this backup.boolean
Returns whether this backup cannot be restored because it has errors.int
hashCode()
boolean
Returns whether this backup has been verified.toString()
-
Constructor Details
-
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 Details
-
equals
-
hashCode
public int hashCode() -
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
Return all the errors found after verifying this backup.- Returns:
- all the errors found after verifying this backup.
-
getId
Returns the backup ID.- Returns:
- the backup ID.
-
toString
-