public class MetricsWAL extends java.lang.Object implements WALActionsListener
| Constructor and Description |
|---|
MetricsWAL() |
| Modifier and Type | Method and Description |
|---|---|
void |
logRollRequested(boolean underReplicated)
A request was made that the WAL be rolled.
|
void |
postAppend(long size,
long time,
WALKey logkey,
WALEdit logEdit)
For notification post append to the writer.
|
void |
postSync(long timeInNanos,
int handlerSyncs)
For notification post writer sync.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitlogCloseRequested, postLogArchive, postLogRoll, preLogArchive, preLogRoll, visitLogEntryBeforeWrite, visitLogEntryBeforeWritepublic void postSync(long timeInNanos,
int handlerSyncs)
WALActionsListenerpostSync in interface WALActionsListenertimeInNanos - How long the filesystem sync took in nanoseconds.handlerSyncs - How many sync handler calls were released by this call to filesystem
sync.public void postAppend(long size,
long time,
WALKey logkey,
WALEdit logEdit)
throws java.io.IOException
WALActionsListenerpostAppend in interface WALActionsListenersize - approx length of cells in this append.time - elapsed time in milliseconds.logkey - A WAL keylogEdit - A WAL edit containing list of cells.java.io.IOException - if any network or I/O error occurredpublic void logRollRequested(boolean underReplicated)
WALActionsListenerlogRollRequested in interface WALActionsListener