Class PersistenceRecoveryMetrics

java.lang.Object
com.tangosol.persistence.PersistenceRecoveryMetrics

public final class PersistenceRecoveryMetrics extends Object
Aggregated persistence recovery metrics with a small, stable reporting surface.
Since:
26.04
Author:
rl 2026.04.01
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    Begin a new aggregated recovery summary.
    static String
    End the current aggregated recovery summary and return its formatted contents.
    static boolean
    Return true if aggregated recovery timing is enabled.
    static void
    recordSummary(long cRecoveries, long cKeys, long cbCheckpointBytes, long cNanosTotal, long cNanosCheckpoint, long cNanosJournalScan, long cNanosJournalReplay, long cNanosBackupRecovery)
    Record a recovery summary contribution.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • isEnabled

      public static boolean isEnabled()
      Return true if aggregated recovery timing is enabled.
      Returns:
      true if aggregated recovery timing is enabled
    • beginRecovery

      public static void beginRecovery()
      Begin a new aggregated recovery summary.
    • recordSummary

      public static void recordSummary(long cRecoveries, long cKeys, long cbCheckpointBytes, long cNanosTotal, long cNanosCheckpoint, long cNanosJournalScan, long cNanosJournalReplay, long cNanosBackupRecovery)
      Record a recovery summary contribution.
      Parameters:
      cRecoveries - number of recovery operations represented
      cKeys - number of recovered keys
      cbCheckpointBytes - checkpoint bytes loaded
      cNanosTotal - total recovery time
      cNanosCheckpoint - checkpoint-load time
      cNanosJournalScan - journal-scan time
      cNanosJournalReplay - journal-replay time
      cNanosBackupRecovery - backup-recovery time
    • endRecovery

      public static String endRecovery()
      End the current aggregated recovery summary and return its formatted contents.
      Returns:
      the formatted summary, or null if no metrics were recorded