public static class WALActionsListener.Base extends Object implements WALActionsListener
WALActionsListener.Base| 构造器和说明 |
|---|
WALActionsListener.Base() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
logCloseRequested()
The WAL is about to close.
|
void |
logRollRequested(boolean tooFewReplicas)
A request was made that the WAL be rolled.
|
void |
postAppend(long entryLen,
long elapsedTimeMillis,
WALKey logKey,
WALEdit logEdit)
For notification post append to the writer.
|
void |
postLogArchive(org.apache.hadoop.fs.Path oldPath,
org.apache.hadoop.fs.Path newPath)
The WAL has been archived.
|
void |
postLogRoll(org.apache.hadoop.fs.Path oldPath,
org.apache.hadoop.fs.Path newPath)
The WAL has been rolled.
|
void |
postSync(long timeInNanos,
int handlerSyncs)
For notification post writer sync.
|
void |
preLogArchive(org.apache.hadoop.fs.Path oldPath,
org.apache.hadoop.fs.Path newPath)
The WAL is going to be archived.
|
void |
preLogRoll(org.apache.hadoop.fs.Path oldPath,
org.apache.hadoop.fs.Path newPath)
The WAL is going to be rolled.
|
void |
visitLogEntryBeforeWrite(HRegionInfo info,
WALKey logKey,
WALEdit logEdit)
Called before each write.
|
void |
visitLogEntryBeforeWrite(HTableDescriptor htd,
WALKey logKey,
WALEdit logEdit) |
public void preLogRoll(org.apache.hadoop.fs.Path oldPath,
org.apache.hadoop.fs.Path newPath)
throws IOException
WALActionsListenerpreLogRoll 在接口中 WALActionsListeneroldPath - the path to the old walnewPath - the path to the new walIOExceptionpublic void postLogRoll(org.apache.hadoop.fs.Path oldPath,
org.apache.hadoop.fs.Path newPath)
throws IOException
WALActionsListenerpostLogRoll 在接口中 WALActionsListeneroldPath - the path to the old walnewPath - the path to the new walIOExceptionpublic void preLogArchive(org.apache.hadoop.fs.Path oldPath,
org.apache.hadoop.fs.Path newPath)
throws IOException
WALActionsListenerpreLogArchive 在接口中 WALActionsListeneroldPath - the path to the old walnewPath - the path to the new walIOExceptionpublic void postLogArchive(org.apache.hadoop.fs.Path oldPath,
org.apache.hadoop.fs.Path newPath)
throws IOException
WALActionsListenerpostLogArchive 在接口中 WALActionsListeneroldPath - the path to the old walnewPath - the path to the new walIOExceptionpublic void logRollRequested(boolean tooFewReplicas)
WALActionsListenerlogRollRequested 在接口中 WALActionsListenerpublic void logCloseRequested()
WALActionsListenerlogCloseRequested 在接口中 WALActionsListenerpublic void visitLogEntryBeforeWrite(HRegionInfo info, WALKey logKey, WALEdit logEdit)
WALActionsListenervisitLogEntryBeforeWrite 在接口中 WALActionsListenerpublic void visitLogEntryBeforeWrite(HTableDescriptor htd, WALKey logKey, WALEdit logEdit) throws IOException
visitLogEntryBeforeWrite 在接口中 WALActionsListenerlogEdit - TODO: Retire this in favor of
WALActionsListener.visitLogEntryBeforeWrite(HRegionInfo, WALKey, WALEdit) It only exists to get
scope when replicating. Scope should be in the WALKey and not need us passing in a
htd.IOException - If failed to parse the WALEditpublic void postAppend(long entryLen,
long elapsedTimeMillis,
WALKey logKey,
WALEdit logEdit)
throws IOException
WALActionsListenerpostAppend 在接口中 WALActionsListenerentryLen - approx length of cells in this append.elapsedTimeMillis - elapsed time in milliseconds.logKey - A WAL keylogEdit - A WAL edit containing list of cells.IOException - if any network or I/O occurredpublic void postSync(long timeInNanos,
int handlerSyncs)
WALActionsListenerpostSync 在接口中 WALActionsListenertimeInNanos - How long the filesystem sync took in nanoseconds.handlerSyncs - How many sync handler calls were released by this call to filesystem
sync.Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.