Package org.apache.bookkeeper.bookie
Class TransactionalEntryLogCompactor.FlushCompactionLogPhase
java.lang.Object
org.apache.bookkeeper.bookie.TransactionalEntryLogCompactor.CompactionPhase
org.apache.bookkeeper.bookie.TransactionalEntryLogCompactor.FlushCompactionLogPhase
- Enclosing class:
- TransactionalEntryLogCompactor
class TransactionalEntryLogCompactor.FlushCompactionLogPhase
extends TransactionalEntryLogCompactor.CompactionPhase
Assume we're compacting log 1 to log 3.
This phase is to flush the compaction log.
When this phase starts, there should be a compaction log file like "3.log.compacting"
When compaction log is flushed, in order to indicate this phase is completed,
a hardlink file "3.log.1.compacted" should be created, and "3.log.compacting" should be deleted.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.bookkeeper.bookie.TransactionalEntryLogCompactor.CompactionPhase
run
-
Field Details
-
compactionLog
-
-
Constructor Details
-
FlushCompactionLogPhase
FlushCompactionLogPhase(CompactionEntryLog compactionLog)
-
-
Method Details
-
start
- Specified by:
startin classTransactionalEntryLogCompactor.CompactionPhase- Throws:
IOException
-
complete
- Specified by:
completein classTransactionalEntryLogCompactor.CompactionPhase- Throws:
IOException
-
abort
void abort()- Specified by:
abortin classTransactionalEntryLogCompactor.CompactionPhase
-