|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RedoLog
Defines a redo log for changes that have not been committed to disk. While nodes are added to and removed from the volatile index (held in memory) a redo log is maintained to keep track of the changes. In case the Jackrabbit process terminates unexpected the redo log is applied when Jackrabbit is restarted the next time.
Method Summary | |
---|---|
void |
append(MultiIndex.Action action)
Appends an action to the log. |
void |
close()
Flushes all pending writes to the redo log and closes it. |
void |
flush()
Flushes all pending writes to the redo log. |
List<MultiIndex.Action> |
getActions()
Returns a List with all MultiIndex.Action instances in the
redo log. |
int |
getSize()
Returns the number of entries in this redo log. |
boolean |
hasEntries()
Returns true if this redo log contains any entries,
false otherwise. |
Method Detail |
---|
boolean hasEntries()
true
if this redo log contains any entries,
false
otherwise.
true
if this redo log contains any entries,
false
otherwise.int getSize()
List<MultiIndex.Action> getActions() throws IOException
MultiIndex.Action
instances in the
redo log.
MultiIndex.Action
instances in the
redo log.
IOException
- if an error occurs while reading from the redo log.void append(MultiIndex.Action action) throws IOException
action
- the action to append.
IOException
- if the node cannot be written to the redo
log.void flush() throws IOException
IOException
- if an error occurs while writing.void close() throws IOException
IOException
- if an error occurs while writing.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |