Package org.apache.bookkeeper.bookie
Class LedgerDirsMonitor
- java.lang.Object
-
- org.apache.bookkeeper.bookie.LedgerDirsMonitor
-
class LedgerDirsMonitor extends java.lang.Object
Thread to monitor the disk space periodically.
-
-
Constructor Summary
Constructors Constructor Description LedgerDirsMonitor(ServerConfiguration conf, DiskChecker diskChecker, java.util.List<LedgerDirsManager> dirsManagers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
init()
Sweep through all the directories to check disk errors or disk full.void
shutdown()
void
start()
-
-
-
Constructor Detail
-
LedgerDirsMonitor
public LedgerDirsMonitor(ServerConfiguration conf, DiskChecker diskChecker, java.util.List<LedgerDirsManager> dirsManagers)
-
-
Method Detail
-
init
public void init() throws DiskChecker.DiskErrorException, LedgerDirsManager.NoWritableLedgerDirException
Sweep through all the directories to check disk errors or disk full.- Throws:
DiskChecker.DiskErrorException
- If disk having errorsLedgerDirsManager.NoWritableLedgerDirException
- If all the configured ledger directories are full or having less space than threshold
-
start
public void start()
-
shutdown
public void shutdown()
-
-