Class BackupBriefProcessInfo
- java.lang.Object
-
- jetbrains.buildServer.serverSide.maintenance.BackupBriefProcessInfo
-
- All Implemented Interfaces:
Serializable
,BackupProcessInfo
public class BackupBriefProcessInfo extends Object implements BackupProcessInfo, Serializable
Backup brief info. Contains info about backup that can be get from database. Value object.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BackupBriefProcessInfo(int id, String fileName, Long fileSize, ProgressStatus status, Date startTimestamp, Date finishTimestamp)
Trivial constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getFileName()
Path and name of the backup file, the same asBackupConfig.getFileName()
.Long
getFileSize()
Size of file in bytes, or null.long
getFileSizeOrZero()
Size of file in bytes.Date
getFinishTimestamp()
Time when the process finished.int
getId()
The internal maintenance process identifier.Date
getStartTimestamp()
Time when the process started.ProgressStatus
getStatus()
The process status.int
hashCode()
-
-
-
Constructor Detail
-
BackupBriefProcessInfo
public BackupBriefProcessInfo(int id, @NotNull String fileName, @Nullable Long fileSize, @Nullable ProgressStatus status, @NotNull Date startTimestamp, @Nullable Date finishTimestamp)
Trivial constructor. Makes a datum object with given values.- Parameters:
id
- internal identified of a maintenance process.fileName
- file name, seegetFileName()
. Not null.fileSize
- size of the backup file, in bytes.status
- the backup process status.startTimestamp
- time when the backup process is started. Not null.finishTimestamp
- time when the backup process is finished. Nullable.
-
-
Method Detail
-
getId
public final int getId()
The internal maintenance process identifier.- Specified by:
getId
in interfaceBackupProcessInfo
- Returns:
- see above.
-
getFileName
@NotNull public final String getFileName()
Path and name of the backup file, the same asBackupConfig.getFileName()
.- Specified by:
getFileName
in interfaceBackupProcessInfo
- Returns:
- see above.
-
getFileSize
@Nullable public final Long getFileSize()
Size of file in bytes, or null.- Specified by:
getFileSize
in interfaceBackupProcessInfo
- Returns:
- see above.
-
getFileSizeOrZero
public final long getFileSizeOrZero()
Size of file in bytes.- Returns:
- see above.
-
getStatus
@Nullable public final ProgressStatus getStatus()
The process status.- Specified by:
getStatus
in interfaceBackupProcessInfo
- Returns:
- see above.
-
getStartTimestamp
@NotNull public final Date getStartTimestamp()
Time when the process started. Not null.- Specified by:
getStartTimestamp
in interfaceBackupProcessInfo
- Returns:
- see above.
-
getFinishTimestamp
@Nullable public final Date getFinishTimestamp()
Time when the process finished. Can be null.- Specified by:
getFinishTimestamp
in interfaceBackupProcessInfo
- Returns:
- see above.
-
-