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

All Known Implementing Classes:
Replication

public interface WALObserver

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.
 

Method Detail

logRolled

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

Parameters:
newFile - the path to the new hlog

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 -


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