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 boolean
equals(Object o)
String
getDownloadUrl()
String
getFileName()
Path and name of the backup file, the same asBackupConfig.getFileName()
.Long
getFileSize()
Size of file in bytes.Date
getFinishTimestamp()
Time when the process finished.String
getFinishTimestampFriendly()
String
getFinishTimestampFull()
String
getFormattedSize()
int
getId()
The internal maintenance process identifier.String
getName()
String
getPathAndName()
long
getSize()
Date
getStartTimestamp()
Time when the process started.String
getStartTimestampFriendly()
String
getStartTimestampFull()
ProgressStatus
getStatus()
The process status.int
hashCode()
boolean
isCancelledOrCancelling()
boolean
isFault()
boolean
isFileExists()
boolean
isFinished()
boolean
isHasFinishTimestamp()
boolean
isInProgress()
boolean
nameEquals(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:BackupProcessInfo
The internal maintenance process identifier.- Specified by:
getId
in interfaceBackupProcessInfo
- Returns:
- see above.
-
getFileName
@NotNull public String getFileName()
Description copied from interface:BackupProcessInfo
Path and name of the backup file, the same asBackupConfig.getFileName()
.- Specified by:
getFileName
in interfaceBackupProcessInfo
- Returns:
- see above.
-
getFileSize
@Nullable public Long getFileSize()
Description copied from interface:BackupProcessInfo
Size of file in bytes.- Specified by:
getFileSize
in interfaceBackupProcessInfo
- Returns:
- see above.
-
getStatus
@Nullable public ProgressStatus getStatus()
Description copied from interface:BackupProcessInfo
The process status.- Specified by:
getStatus
in interfaceBackupProcessInfo
- Returns:
- see above.
-
getStartTimestamp
@NotNull public Date getStartTimestamp()
Description copied from interface:BackupProcessInfo
Time when the process started. Not null.- Specified by:
getStartTimestamp
in interfaceBackupProcessInfo
- Returns:
- see above.
-
getFinishTimestamp
@Nullable public Date getFinishTimestamp()
Description copied from interface:BackupProcessInfo
Time when the process finished. Can be null.- Specified by:
getFinishTimestamp
in 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()
-
-