@InterfaceAudience.Private public class MetricsWAL extends WALActionsListener.Base
WALActionsListener.Base| 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)
For notification post append to the writer.
|
void |
postSync(long timeInNanos,
int handlerSyncs)
For notification post writer sync.
|
logCloseRequested, postLogArchive, postLogRoll, preLogArchive, preLogRoll, visitLogEntryBeforeWrite, visitLogEntryBeforeWritepublic void postSync(long timeInNanos,
int handlerSyncs)
WALActionsListenerpostSync in interface WALActionsListenerpostSync in class WALActionsListener.BasetimeInNanos - 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)
WALActionsListenerpostAppend in interface WALActionsListenerpostAppend in class WALActionsListener.Basesize - approx length of cells in this append.time - elapsed time in milliseconds.public void logRollRequested(boolean underReplicated)
WALActionsListenerlogRollRequested in interface WALActionsListenerlogRollRequested in class WALActionsListener.BaseCopyright © 2007–2016 The Apache Software Foundation. All rights reserved.