public static class TestWALActionsListener.DummyWALActionsListener extends WALActionsListener.Base
WALActionsListener.Base
Modifier and Type | Field and Description |
---|---|
int |
closedCount |
int |
postLogRollCounter |
int |
preLogRollCounter |
Constructor and Description |
---|
DummyWALActionsListener() |
Modifier and Type | Method and Description |
---|---|
void |
logCloseRequested()
The WAL is about to close.
|
void |
postLogRoll(Path oldFile,
Path newFile)
The WAL has been rolled.
|
void |
preLogRoll(Path oldFile,
Path newFile)
The WAL is going to be rolled.
|
logRollRequested, postAppend, postLogArchive, postSync, preLogArchive, visitLogEntryBeforeWrite, visitLogEntryBeforeWrite
public int preLogRollCounter
public int postLogRollCounter
public int closedCount
public void preLogRoll(Path oldFile, Path newFile)
WALActionsListener
preLogRoll
in interface WALActionsListener
preLogRoll
in class WALActionsListener.Base
oldFile
- the path to the old walnewFile
- the path to the new walpublic void postLogRoll(Path oldFile, Path newFile)
WALActionsListener
postLogRoll
in interface WALActionsListener
postLogRoll
in class WALActionsListener.Base
oldFile
- the path to the old walnewFile
- the path to the new walpublic void logCloseRequested()
WALActionsListener
logCloseRequested
in interface WALActionsListener
logCloseRequested
in class WALActionsListener.Base