org.apache.hadoop.hbase.regionserver.wal
Interface WALActionsListener

All Known Implementing Classes:
Replication

public interface WALActionsListener

Get notification of HLog/WAL log events. The invocations are inline so make sure your implementation is fast else you'll slow hbase.


Method Summary
 void logCloseRequested()
          The WAL is about to close.
 void logRolled(org.apache.hadoop.fs.Path newFile)
          The WAL was rolled.
 void logRollRequested()
          A request was made that the WAL be rolled.
 void visitLogEntryBeforeWrite(HRegionInfo info, HLogKey logKey, WALEdit logEdit)
          Called before each write.
 void visitLogEntryBeforeWrite(HTableDescriptor htd, HLogKey logKey, WALEdit logEdit)
           
 

Method Detail

logRolled

void logRolled(org.apache.hadoop.fs.Path newFile)
               throws IOException
The WAL was rolled.

Parameters:
newFile - the path to the new hlog
Throws:
IOException

logRollRequested

void logRollRequested()
A request was made that the WAL be rolled.


logCloseRequested

void logCloseRequested()
The WAL is about to close.


visitLogEntryBeforeWrite

void visitLogEntryBeforeWrite(HRegionInfo info,
                              HLogKey logKey,
                              WALEdit logEdit)
Called before each write.

Parameters:
info -
logKey -
logEdit -

visitLogEntryBeforeWrite

void visitLogEntryBeforeWrite(HTableDescriptor htd,
                              HLogKey logKey,
                              WALEdit logEdit)
Parameters:
htd -
logKey -
logEdit -


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.