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

      All Methods Instance Methods Default Methods 
      Modifier and Type Method Description
      default void allDisksFull​(boolean highPriorityWritesAllowed)
      This will be notified whenever all disks are detected as full.
      default void allDisksWritable()
      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 diskAlmostFull​(java.io.File disk)
      Notified when the disk usage warn threshold is exceeded on the drive.
      default void diskFailed​(java.io.File disk)
      This will be notified on disk failure/disk error.
      default void diskFull​(java.io.File disk)
      This will be notified on disk detected as full.
      default void diskJustWritable​(java.io.File disk)
      This will be notified on disk detected as writable but still in warn threshold.
      default void diskWritable​(java.io.File disk)
      This will be notified on disk detected as writable and under warn threshold.
      default void fatalError()
      This will notify the fatal errors.
    • Method Detail

      • diskFailed

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

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

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

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

        default void diskJustWritable​(java.io.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.