@InterfaceAudience.Private public class MetricsWAL extends WALActionsListener.Base
WALActionsListener.Base| 构造器和说明 |
|---|
MetricsWAL() |
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
logCloseRequested, postLogArchive, postLogRoll, preLogArchive, preLogRoll, visitLogEntryBeforeWrite, visitLogEntryBeforeWritepublic void postSync(long timeInNanos,
int handlerSyncs)
WALActionsListenerpostSync 在接口中 WALActionsListenerpostSync 在类中 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,
WALKey logkey,
WALEdit logEdit)
throws IOException
WALActionsListenerpostAppend 在接口中 WALActionsListenerpostAppend 在类中 WALActionsListener.Basesize - approx length of cells in this append.time - elapsed time in milliseconds.logkey - A WAL keylogEdit - A WAL edit containing list of cells.IOException - if any network or I/O occurredpublic void logRollRequested(boolean underReplicated)
WALActionsListenerlogRollRequested 在接口中 WALActionsListenerlogRollRequested 在类中 WALActionsListener.BaseCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.