@InterfaceAudience.Private public class MetricsWAL extends Object implements WALActionsListener
| Constructor and Description |
|---|
MetricsWAL() |
| Modifier and Type | Method and Description |
|---|---|
void |
finishAppend(long time,
long size) |
void |
finishSync(long time) |
void |
logCloseRequested()
The WAL is about to close.
|
void |
logRollRequested(boolean underReplicated)
A request was made that the WAL be rolled.
|
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 |
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,
HLogKey logKey,
WALEdit logEdit)
Called before each write.
|
void |
visitLogEntryBeforeWrite(HTableDescriptor htd,
HLogKey logKey,
WALEdit logEdit) |
public void finishSync(long time)
public void finishAppend(long time,
long size)
public void logRollRequested(boolean underReplicated)
WALActionsListenerlogRollRequested in interface WALActionsListenerunderReplicated - roll requested because of too few replicas if truepublic void preLogRoll(org.apache.hadoop.fs.Path oldPath,
org.apache.hadoop.fs.Path newPath)
throws IOException
WALActionsListenerpreLogRoll in interface WALActionsListeneroldPath - the path to the old hlognewPath - the path to the new hlogIOExceptionpublic void postLogRoll(org.apache.hadoop.fs.Path oldPath,
org.apache.hadoop.fs.Path newPath)
throws IOException
WALActionsListenerpostLogRoll in interface WALActionsListeneroldPath - the path to the old hlognewPath - the path to the new hlogIOExceptionpublic void preLogArchive(org.apache.hadoop.fs.Path oldPath,
org.apache.hadoop.fs.Path newPath)
throws IOException
WALActionsListenerpreLogArchive in interface WALActionsListeneroldPath - the path to the old hlognewPath - the path to the new hlogIOExceptionpublic void postLogArchive(org.apache.hadoop.fs.Path oldPath,
org.apache.hadoop.fs.Path newPath)
throws IOException
WALActionsListenerpostLogArchive in interface WALActionsListeneroldPath - the path to the old hlognewPath - the path to the new hlogIOExceptionpublic void logCloseRequested()
WALActionsListenerlogCloseRequested in interface WALActionsListenerpublic void visitLogEntryBeforeWrite(HRegionInfo info, HLogKey logKey, WALEdit logEdit)
WALActionsListenervisitLogEntryBeforeWrite in interface WALActionsListenerpublic void visitLogEntryBeforeWrite(HTableDescriptor htd, HLogKey logKey, WALEdit logEdit)
visitLogEntryBeforeWrite in interface WALActionsListenerCopyright © 2015 The Apache Software Foundation. All Rights Reserved.