Record Class BackupStatus
java.lang.Object
java.lang.Record
io.camunda.zeebe.gateway.admin.backup.BackupStatus
- Record Components:
backupId- id of the backupstatus- aggregated status of backupfailureReason- If the status == FAILED, then provides a reason for failurepartitions- status of backup of all partitions
public record BackupStatus(long backupId, State status, Optional<String> failureReason, List<PartitionBackupStatus> partitions)
extends Record
Shows the aggregated status of the backup and status of backup of each partition.
COMPLETED => If all partitions have completed backup
FAILED => If backup of atleast one partition is failed
DOES_NOT_EXIST => If backup of atleast one partition does not exist.
IN_PROGRESS => Otherwise
Aggregates status is calculated as follows:
-
Constructor Summary
ConstructorsConstructorDescriptionBackupStatus(long backupId, State status, Optional<String> failureReason, List<PartitionBackupStatus> partitions) Creates an instance of aBackupStatusrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongbackupId()Returns the value of thebackupIdrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefailureReasonrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thepartitionsrecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BackupStatus
public BackupStatus(long backupId, State status, Optional<String> failureReason, List<PartitionBackupStatus> partitions) Creates an instance of aBackupStatusrecord class.- Parameters:
backupId- the value for thebackupIdrecord componentstatus- the value for thestatusrecord componentfailureReason- the value for thefailureReasonrecord componentpartitions- the value for thepartitionsrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
backupId
public long backupId()Returns the value of thebackupIdrecord component.- Returns:
- the value of the
backupIdrecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
failureReason
Returns the value of thefailureReasonrecord component.- Returns:
- the value of the
failureReasonrecord component
-
partitions
Returns the value of thepartitionsrecord component.- Returns:
- the value of the
partitionsrecord component
-