java.lang.Object
org.rrd4j.core.RrdSafeFileBackend.Counters
Enclosing class:
RrdSafeFileBackend

static class RrdSafeFileBackend.Countersextends Object
Internal counters for tracking file locking operations.

This class maintains statistics about file locking operations including total locks, quick locks, unlocks, currently locked files, and errors. These counters are used for monitoring and debugging the file locking behavior.

  • Field Details

  • Constructor Details

    • Counters

      Counters()
      All five counters start at zero and are raised only by the register methods below, so a fresh set describes an idle backend.
  • Method Details

    • registerQuickLock

      void registerQuickLock()
      Registers a quick lock operation.
    • registerDelayedLock

      void registerDelayedLock()
      Registers a delayed lock operation.
    • registerUnlock

      void registerUnlock()
      Registers an unlock operation.
    • registerError

      void registerError()
      Registers an error operation.
    • getInfo

      String getInfo()
      Gets formatted information about the counters.
      Returns:
      a formatted string with counter statistics