|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.neeve.root.RootObject
com.neeve.rog.RogObject
com.neeve.rog.log.RogLogCompactionReader
public final class RogLogCompactionReader
Specialized reader of a log that read, compacts and dispatches compacted entries to the caller.
Nested Class Summary | |
---|---|
static interface |
RogLogCompactionReader.ReadHandler
Interface through which compacted reads and dispatched to caller |
static class |
RogLogCompactionReader.RunCompletionReason
Enumerates the various reasons why a run(int, long) invocation completes |
Method Summary | |
---|---|
void |
close()
Close a compaction reader This method will initiate a stop of a compaction run if in progress |
static RogLogCompactionReader |
create(RogLog log,
RogLogCompactionReader.ReadHandler handler)
Create a new log compaction reader. |
RogLog.Entry |
next()
Get next entry in log file |
RogLogCompactionReader.RunCompletionReason |
run()
Run the compaction reader This method runs the compaction reader until the last checkpoint in the file has been rolled over to a new log file |
RogLogCompactionReader.RunCompletionReason |
run(int logNumber,
long maxFilePointer)
Run the compaction reader |
Methods inherited from class com.neeve.root.RootObject |
---|
getChecked, getThreaded, getTracer, setChecked, setTracer |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static final RogLogCompactionReader create(RogLog log, RogLogCompactionReader.ReadHandler handler) throws Exception
log
- The transaction log to be readhandler
- The handler to dispatch compacted read events to.
Exception
public final RogLogCompactionReader.RunCompletionReason run(int logNumber, long maxFilePointer) throws Exception
logNumber
- The log number on which to run the compaction readermaxFilePointer
- The file pointer beyond which no entries should be read
This method runs the compaction reader until the supplied file pointer has been reached or the last checkpoint in the file has been rolled over to a new log file
Exception
public final RogLogCompactionReader.RunCompletionReason run() throws Exception
This method runs the compaction reader until the last checkpoint in the file has been rolled over to a new log file
Exception
public final RogLog.Entry next() throws Exception
Exception
public final void close()
This method will initiate a stop of a compaction run if in progress
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |