@InterfaceAudience.Private
public interface WALActionsListener
FSHLog/WAL log events. The invocations are inline
so make sure your implementation is fast else you'll slow hbase.| Modifier and Type | Method and Description |
|---|---|
void |
logCloseRequested()
The WAL is about to close.
|
void |
logRollRequested()
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) |
void preLogRoll(org.apache.hadoop.fs.Path oldPath,
org.apache.hadoop.fs.Path newPath)
throws IOException
oldPath - the path to the old hlognewPath - the path to the new hlogIOExceptionvoid postLogRoll(org.apache.hadoop.fs.Path oldPath,
org.apache.hadoop.fs.Path newPath)
throws IOException
oldPath - the path to the old hlognewPath - the path to the new hlogIOExceptionvoid preLogArchive(org.apache.hadoop.fs.Path oldPath,
org.apache.hadoop.fs.Path newPath)
throws IOException
oldPath - the path to the old hlognewPath - the path to the new hlogIOExceptionvoid postLogArchive(org.apache.hadoop.fs.Path oldPath,
org.apache.hadoop.fs.Path newPath)
throws IOException
oldPath - the path to the old hlognewPath - the path to the new hlogIOExceptionvoid logRollRequested()
void logCloseRequested()
void visitLogEntryBeforeWrite(HRegionInfo info, HLogKey logKey, WALEdit logEdit)
info - logKey - logEdit - void visitLogEntryBeforeWrite(HTableDescriptor htd, HLogKey logKey, WALEdit logEdit)
htd - logKey - logEdit - Copyright © 2014 The Apache Software Foundation. All Rights Reserved.