Package org.apache.bookkeeper.bookie
Interface LedgerDirsManager.LedgerDirsListener
-
- Enclosing class:
- LedgerDirsManager
public static interface LedgerDirsManager.LedgerDirsListenerListener for the disk check events will be notified from theLedgerDirsManagerwhenever disk full/failure detected.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default voidallDisksFull(boolean highPriorityWritesAllowed)This will be notified whenever all disks are detected as full.default voidallDisksWritable()This will be notified whenever all disks are detected as not full.default voidanyDiskFull(boolean highPriorityWritesAllowed)This will be notified whenever any disks are detected as full.default voiddiskAlmostFull(java.io.File disk)Notified when the disk usage warn threshold is exceeded on the drive.default voiddiskFailed(java.io.File disk)This will be notified on disk failure/disk error.default voiddiskFull(java.io.File disk)This will be notified on disk detected as full.default voiddiskJustWritable(java.io.File disk)This will be notified on disk detected as writable but still in warn threshold.default voiddiskWritable(java.io.File disk)This will be notified on disk detected as writable and under warn threshold.default voidfatalError()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.
-
-