Record Class HotBackupScheduler.HotBackupSchedulerStats

java.lang.Object
java.lang.Record
com.loomcache.server.persistence.HotBackupScheduler.HotBackupSchedulerStats
Enclosing class:
HotBackupScheduler

public static record HotBackupScheduler.HotBackupSchedulerStats(long backupsTaken, long failedBackups, long lastBackupTimeMillis, long lastFailureTimeMillis, @Nullable Path lastManifestPath, @Nullable String lastFailureMessage) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    HotBackupSchedulerStats(long backupsTaken, long failedBackups, long lastBackupTimeMillis, long lastFailureTimeMillis, @Nullable Path lastManifestPath, @Nullable String lastFailureMessage)
    Creates an instance of a HotBackupSchedulerStats record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Returns the value of the backupsTaken record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    long
    Returns the value of the failedBackups record component.
    final int
    Returns a hash code value for this object.
    long
    Returns the value of the lastBackupTimeMillis record component.
    @Nullable String
    Returns the value of the lastFailureMessage record component.
    long
    Returns the value of the lastFailureTimeMillis record component.
    @Nullable Path
    Returns the value of the lastManifestPath record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • HotBackupSchedulerStats

      public HotBackupSchedulerStats(long backupsTaken, long failedBackups, long lastBackupTimeMillis, long lastFailureTimeMillis, @Nullable Path lastManifestPath, @Nullable String lastFailureMessage)
      Creates an instance of a HotBackupSchedulerStats record class.
      Parameters:
      backupsTaken - the value for the backupsTaken record component
      failedBackups - the value for the failedBackups record component
      lastBackupTimeMillis - the value for the lastBackupTimeMillis record component
      lastFailureTimeMillis - the value for the lastFailureTimeMillis record component
      lastManifestPath - the value for the lastManifestPath record component
      lastFailureMessage - the value for the lastFailureMessage record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • backupsTaken

      public long backupsTaken()
      Returns the value of the backupsTaken record component.
      Returns:
      the value of the backupsTaken record component
    • failedBackups

      public long failedBackups()
      Returns the value of the failedBackups record component.
      Returns:
      the value of the failedBackups record component
    • lastBackupTimeMillis

      public long lastBackupTimeMillis()
      Returns the value of the lastBackupTimeMillis record component.
      Returns:
      the value of the lastBackupTimeMillis record component
    • lastFailureTimeMillis

      public long lastFailureTimeMillis()
      Returns the value of the lastFailureTimeMillis record component.
      Returns:
      the value of the lastFailureTimeMillis record component
    • lastManifestPath

      public @Nullable Path lastManifestPath()
      Returns the value of the lastManifestPath record component.
      Returns:
      the value of the lastManifestPath record component
    • lastFailureMessage

      public @Nullable String lastFailureMessage()
      Returns the value of the lastFailureMessage record component.
      Returns:
      the value of the lastFailureMessage record component