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 booleanequals(Object o)StringgetFileName()Path and name of the backup file, the same asBackupConfig.getFileName().LonggetFileSize()Size of file in bytes, or null.longgetFileSizeOrZero()Size of file in bytes.DategetFinishTimestamp()Time when the process finished.intgetId()The internal maintenance process identifier.DategetStartTimestamp()Time when the process started.ProgressStatusgetStatus()The process status.inthashCode()
-
-
-
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:
getIdin interfaceBackupProcessInfo- Returns:
- see above.
-
getFileName
@NotNull public final String getFileName()
Path and name of the backup file, the same asBackupConfig.getFileName().- Specified by:
getFileNamein interfaceBackupProcessInfo- Returns:
- see above.
-
getFileSize
@Nullable public final Long getFileSize()
Size of file in bytes, or null.- Specified by:
getFileSizein 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:
getStatusin interfaceBackupProcessInfo- Returns:
- see above.
-
getStartTimestamp
@NotNull public final Date getStartTimestamp()
Time when the process started. Not null.- Specified by:
getStartTimestampin interfaceBackupProcessInfo- Returns:
- see above.
-
getFinishTimestamp
@Nullable public final Date getFinishTimestamp()
Time when the process finished. Can be null.- Specified by:
getFinishTimestampin interfaceBackupProcessInfo- Returns:
- see above.
-
-