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 Modifier and Type Field Description (package private) CompactionEntryLog
compactionLog
-
Constructor Summary
Constructors Constructor Description FlushCompactionLogPhase(CompactionEntryLog compactionLog)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
abort()
(package private) boolean
complete()
(package private) void
start()
-
Methods inherited from class org.apache.bookkeeper.bookie.TransactionalEntryLogCompactor.CompactionPhase
run
-
-
-
-
Field Detail
-
compactionLog
final CompactionEntryLog compactionLog
-
-
Constructor Detail
-
FlushCompactionLogPhase
FlushCompactionLogPhase(CompactionEntryLog compactionLog)
-
-
Method Detail
-
start
void start() throws java.io.IOException
- Specified by:
start
in classTransactionalEntryLogCompactor.CompactionPhase
- Throws:
java.io.IOException
-
complete
boolean complete() throws java.io.IOException
- Specified by:
complete
in classTransactionalEntryLogCompactor.CompactionPhase
- Throws:
java.io.IOException
-
abort
void abort()
- Specified by:
abort
in classTransactionalEntryLogCompactor.CompactionPhase
-
-