Record Class HotBackupScheduler.HotBackupSchedulerStats
java.lang.Object
java.lang.Record
com.loomcache.server.persistence.HotBackupScheduler.HotBackupSchedulerStats
- Enclosing class:
HotBackupScheduler
-
Constructor Summary
ConstructorsConstructorDescriptionHotBackupSchedulerStats(long backupsTaken, long failedBackups, long lastBackupTimeMillis, long lastFailureTimeMillis, @Nullable Path lastManifestPath, @Nullable String lastFailureMessage) Creates an instance of aHotBackupSchedulerStatsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thebackupsTakenrecord component.final booleanIndicates whether some other object is "equal to" this one.longReturns the value of thefailedBackupsrecord component.final inthashCode()Returns a hash code value for this object.longReturns the value of thelastBackupTimeMillisrecord component.@Nullable StringReturns the value of thelastFailureMessagerecord component.longReturns the value of thelastFailureTimeMillisrecord component.@Nullable PathReturns the value of thelastManifestPathrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
HotBackupSchedulerStats
public HotBackupSchedulerStats(long backupsTaken, long failedBackups, long lastBackupTimeMillis, long lastFailureTimeMillis, @Nullable Path lastManifestPath, @Nullable String lastFailureMessage) Creates an instance of aHotBackupSchedulerStatsrecord class.- Parameters:
backupsTaken- the value for thebackupsTakenrecord componentfailedBackups- the value for thefailedBackupsrecord componentlastBackupTimeMillis- the value for thelastBackupTimeMillisrecord componentlastFailureTimeMillis- the value for thelastFailureTimeMillisrecord componentlastManifestPath- the value for thelastManifestPathrecord componentlastFailureMessage- the value for thelastFailureMessagerecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
backupsTaken
public long backupsTaken()Returns the value of thebackupsTakenrecord component.- Returns:
- the value of the
backupsTakenrecord component
-
failedBackups
public long failedBackups()Returns the value of thefailedBackupsrecord component.- Returns:
- the value of the
failedBackupsrecord component
-
lastBackupTimeMillis
public long lastBackupTimeMillis()Returns the value of thelastBackupTimeMillisrecord component.- Returns:
- the value of the
lastBackupTimeMillisrecord component
-
lastFailureTimeMillis
public long lastFailureTimeMillis()Returns the value of thelastFailureTimeMillisrecord component.- Returns:
- the value of the
lastFailureTimeMillisrecord component
-
lastManifestPath
Returns the value of thelastManifestPathrecord component.- Returns:
- the value of the
lastManifestPathrecord component
-
lastFailureMessage
Returns the value of thelastFailureMessagerecord component.- Returns:
- the value of the
lastFailureMessagerecord component
-