Class BackupDescriptor


  • public class BackupDescriptor
    extends Object
    Class used to describe a backup.
    • Constructor Detail

      • BackupDescriptor

        public BackupDescriptor​(File path,
                                Date creationDate,
                                BackupDescriptor.Type type,
                                String id)
        The BackupDescriptor constructor.
        Parameters:
        path - the directory where the backup is located.
        creationDate - the date of creation of the backup.
        type - the type of backup.
        id - the backup id.
      • BackupDescriptor

        public BackupDescriptor​(BackupInfo info)
        The BackupDescriptor generated using a BackupInfo object.
        Parameters:
        info - the BackupInfo object that contains all the information about the backup.
    • Method Detail

      • getCreationDate

        public Date getCreationDate()
        Returns the creation date of the backup.
        Returns:
        the creation date of the backup.
      • getPath

        public File getPath()
        Returns the directory where the backup is located.
        Returns:
        the directory where the backup is located.
      • getType

        public BackupDescriptor.Type getType()
        Returns the type of the backup.
        Returns:
        the type of the backup.
      • getID

        public String getID()
        Returns the backup ID.
        Returns:
        the backup ID.
      • getBackupInfo

        public BackupInfo getBackupInfo()
        Returns the BackupInfo object associated with this backup. It might be null.
        Returns:
        the BackupInfo object associated with this backup.