Class BackupDescriptor
- java.lang.Object
-
- org.opends.guitools.controlpanel.datamodel.BackupDescriptor
-
public class BackupDescriptor extends Object
Class used to describe a backup.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBackupDescriptor.TypeThe different types of backups.
-
Constructor Summary
Constructors Constructor Description BackupDescriptor(File path, Date creationDate, BackupDescriptor.Type type, String id)The BackupDescriptor constructor.BackupDescriptor(BackupInfo info)The BackupDescriptor generated using a BackupInfo object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BackupInfogetBackupInfo()Returns the BackupInfo object associated with this backup.DategetCreationDate()Returns the creation date of the backup.StringgetID()Returns the backup ID.FilegetPath()Returns the directory where the backup is located.BackupDescriptor.TypegetType()Returns the type of the 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 benull.- Returns:
- the BackupInfo object associated with this backup.
-
-