Class 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 like verified and errors.
    • 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

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • 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.