Package org.apache.bookkeeper.bookie
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 TypeMethodDescriptiondefault voidallDisksFull(boolean highPriorityWritesAllowed) This will be notified whenever all disks are detected as full.default voidThis 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(File disk) Notified when the disk usage warn threshold is exceeded on the drive.default voiddiskFailed(File disk) This will be notified on disk failure/disk error.default voidThis will be notified on disk detected as full.default voiddiskJustWritable(File disk) This will be notified on disk detected as writable but still in warn threshold.default voiddiskWritable(File disk) This will be notified on disk detected as writable and under warn threshold.default voidThis will notify the fatal errors.
-
Method Details
-
diskFailed
This will be notified on disk failure/disk error.- Parameters:
disk- Failed disk
-
diskAlmostFull
Notified when the disk usage warn threshold is exceeded on the drive.- Parameters:
disk-
-
diskFull
This will be notified on disk detected as full.- Parameters:
disk- Filled disk
-
diskWritable
This will be notified on disk detected as writable and under warn threshold.- Parameters:
disk- Writable disk
-
diskJustWritable
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.
-