@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)
WALActionsListener
logRollRequested
in interface WALActionsListener
underReplicated
- 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
WALActionsListener
preLogRoll
in interface WALActionsListener
oldPath
- the path to the old hlognewPath
- the path to the new hlogIOException
public void postLogRoll(org.apache.hadoop.fs.Path oldPath, org.apache.hadoop.fs.Path newPath) throws IOException
WALActionsListener
postLogRoll
in interface WALActionsListener
oldPath
- the path to the old hlognewPath
- the path to the new hlogIOException
public void preLogArchive(org.apache.hadoop.fs.Path oldPath, org.apache.hadoop.fs.Path newPath) throws IOException
WALActionsListener
preLogArchive
in interface WALActionsListener
oldPath
- the path to the old hlognewPath
- the path to the new hlogIOException
public void postLogArchive(org.apache.hadoop.fs.Path oldPath, org.apache.hadoop.fs.Path newPath) throws IOException
WALActionsListener
postLogArchive
in interface WALActionsListener
oldPath
- the path to the old hlognewPath
- the path to the new hlogIOException
public void logCloseRequested()
WALActionsListener
logCloseRequested
in interface WALActionsListener
public void visitLogEntryBeforeWrite(HRegionInfo info, HLogKey logKey, WALEdit logEdit)
WALActionsListener
visitLogEntryBeforeWrite
in interface WALActionsListener
public void visitLogEntryBeforeWrite(HTableDescriptor htd, HLogKey logKey, WALEdit logEdit)
visitLogEntryBeforeWrite
in interface WALActionsListener
Copyright © 2015 The Apache Software Foundation. All rights reserved.