Class BackupFileProcessInfo
- java.lang.Object
-
- jetbrains.buildServer.serverSide.maintenance.BackupFileProcessInfo
-
- All Implemented Interfaces:
Serializable,BackupProcessInfo
public final class BackupFileProcessInfo extends Object implements BackupProcessInfo, Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BackupFileProcessInfo(BackupBriefProcessInfo briefInfo, File file, boolean fileExists, String downloadUrl)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanequals(Object o)StringgetDownloadUrl()StringgetFileName()Path and name of the backup file, the same asBackupConfig.getFileName().LonggetFileSize()Size of file in bytes.DategetFinishTimestamp()Time when the process finished.StringgetFinishTimestampFriendly()StringgetFinishTimestampFull()StringgetFormattedSize()intgetId()The internal maintenance process identifier.StringgetName()StringgetPathAndName()longgetSize()DategetStartTimestamp()Time when the process started.StringgetStartTimestampFriendly()StringgetStartTimestampFull()ProgressStatusgetStatus()The process status.inthashCode()booleanisCancelledOrCancelling()booleanisFault()booleanisFileExists()booleanisFinished()booleanisHasFinishTimestamp()booleanisInProgress()booleannameEquals(String name)Deprecated.
-
-
-
Constructor Detail
-
BackupFileProcessInfo
public BackupFileProcessInfo(@NotNull BackupBriefProcessInfo briefInfo, @NotNull File file, boolean fileExists, @NotNull String downloadUrl)
-
-
Method Detail
-
getId
public int getId()
Description copied from interface:BackupProcessInfoThe internal maintenance process identifier.- Specified by:
getIdin interfaceBackupProcessInfo- Returns:
- see above.
-
getFileName
@NotNull public String getFileName()
Description copied from interface:BackupProcessInfoPath and name of the backup file, the same asBackupConfig.getFileName().- Specified by:
getFileNamein interfaceBackupProcessInfo- Returns:
- see above.
-
getFileSize
@Nullable public Long getFileSize()
Description copied from interface:BackupProcessInfoSize of file in bytes.- Specified by:
getFileSizein interfaceBackupProcessInfo- Returns:
- see above.
-
getStatus
@Nullable public ProgressStatus getStatus()
Description copied from interface:BackupProcessInfoThe process status.- Specified by:
getStatusin interfaceBackupProcessInfo- Returns:
- see above.
-
getStartTimestamp
@NotNull public Date getStartTimestamp()
Description copied from interface:BackupProcessInfoTime when the process started. Not null.- Specified by:
getStartTimestampin interfaceBackupProcessInfo- Returns:
- see above.
-
getFinishTimestamp
@Nullable public Date getFinishTimestamp()
Description copied from interface:BackupProcessInfoTime when the process finished. Can be null.- Specified by:
getFinishTimestampin interfaceBackupProcessInfo- Returns:
- see above.
-
nameEquals
@Deprecated public boolean nameEquals(@NotNull String name)
Deprecated.Checks whether this entry's name equals to the given one, case sensitive.- Parameters:
name- name to compare with.- Returns:
- true when equals
-
getName
@NotNull public String getName()
-
getPathAndName
@NotNull public String getPathAndName()
-
getSize
public long getSize()
-
getFormattedSize
public String getFormattedSize()
-
getStartTimestampFriendly
public String getStartTimestampFriendly()
-
getStartTimestampFull
public String getStartTimestampFull()
-
getFinishTimestampFriendly
public String getFinishTimestampFriendly()
-
getFinishTimestampFull
public String getFinishTimestampFull()
-
isHasFinishTimestamp
public boolean isHasFinishTimestamp()
-
isFinished
public boolean isFinished()
-
isInProgress
public boolean isInProgress()
-
isCancelledOrCancelling
public boolean isCancelledOrCancelling()
-
isFault
public boolean isFault()
-
isFileExists
public boolean isFileExists()
-
getDownloadUrl
@NotNull public String getDownloadUrl()
-
-