Package org.apache.hadoop.hbase.wal
Class AbstractWALRoller.RollController
java.lang.Object
org.apache.hadoop.hbase.wal.AbstractWALRoller.RollController
- Enclosing class:
- AbstractWALRoller<T extends Abortable>
Independently control the roll of each wal. When use multiwal, can avoid all wal roll together.
see HBASE-24665 for detail
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
needsPeriodicRoll
(long now) boolean
needsRoll
(long now) void
rollWal
(long now)
-
Field Details
-
wal
-
rollRequest
-
lastRollTime
-
-
Constructor Details
-
RollController
RollController(WAL wal)
-
-
Method Details
-
requestRoll
-
rollWal
- Throws:
IOException
-
isRollRequested
-
needsPeriodicRoll
-
needsRoll
-