@InterfaceAudience.Private public class MetricsWAL extends WALActionsListener.Base
WALActionsListener.Base
Modifier and Type | Field and Description |
---|---|
private static org.apache.commons.logging.Log |
LOG |
private MetricsWALSource |
source |
Constructor and Description |
---|
MetricsWAL() |
MetricsWAL(MetricsWALSource s) |
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, visitLogEntryBeforeWrite
private static final org.apache.commons.logging.Log LOG
private final MetricsWALSource source
public MetricsWAL()
MetricsWAL(MetricsWALSource s)
public void postSync(long timeInNanos, int handlerSyncs)
WALActionsListener
postSync
in interface WALActionsListener
postSync
in class WALActionsListener.Base
timeInNanos
- 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)
WALActionsListener
postAppend
in interface WALActionsListener
postAppend
in class WALActionsListener.Base
size
- approx length of cells in this append.time
- elapsed time in milliseconds.public void logRollRequested(boolean underReplicated)
WALActionsListener
logRollRequested
in interface WALActionsListener
logRollRequested
in class WALActionsListener.Base
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.