Interface LedgerDirsManager.LedgerDirsListener

Enclosing class:
LedgerDirsManager

public static interface LedgerDirsManager.LedgerDirsListener
Listener for the disk check events will be notified from the LedgerDirsManager whenever disk full/failure detected.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    allDisksFull(boolean highPriorityWritesAllowed)
    This will be notified whenever all disks are detected as full.
    default void
    This will be notified whenever all disks are detected as not full.
    default void
    anyDiskFull(boolean highPriorityWritesAllowed)
    This will be notified whenever any disks are detected as full.
    default void
    Notified when the disk usage warn threshold is exceeded on the drive.
    default void
    This will be notified on disk failure/disk error.
    default void
    diskFull(File disk)
    This will be notified on disk detected as full.
    default void
    This will be notified on disk detected as writable but still in warn threshold.
    default void
    This will be notified on disk detected as writable and under warn threshold.
    default void
    This will notify the fatal errors.
  • Method Details

    • diskFailed

      default void diskFailed(File disk)
      This will be notified on disk failure/disk error.
      Parameters:
      disk - Failed disk
    • diskAlmostFull

      default void diskAlmostFull(File disk)
      Notified when the disk usage warn threshold is exceeded on the drive.
      Parameters:
      disk -
    • diskFull

      default void diskFull(File disk)
      This will be notified on disk detected as full.
      Parameters:
      disk - Filled disk
    • diskWritable

      default void diskWritable(File disk)
      This will be notified on disk detected as writable and under warn threshold.
      Parameters:
      disk - Writable disk
    • diskJustWritable

      default void diskJustWritable(File disk)
      This will be notified on disk detected as writable but still in warn threshold.
      Parameters:
      disk - Writable disk
    • allDisksFull

      default void allDisksFull(boolean highPriorityWritesAllowed)
      This will be notified whenever all disks are detected as full.

      Normal writes will be rejected when disks are detected as "full". High priority writes such as ledger recovery writes can go through if disks are still available.

      Parameters:
      highPriorityWritesAllowed - the parameter indicates we are still have disk spaces for high priority writes even disks are detected as "full"
    • allDisksWritable

      default void allDisksWritable()
      This will be notified whenever all disks are detected as not full.
    • anyDiskFull

      default void anyDiskFull(boolean highPriorityWritesAllowed)
      This will be notified whenever any disks are detected as full.
      Parameters:
      highPriorityWritesAllowed - the parameter indicates we are still have disk spaces for high priority * writes even disks are detected as "full"
    • fatalError

      default void fatalError()
      This will notify the fatal errors.