org.apache.hadoop.hbase.coprocessor
Class BaseWALObserver
java.lang.Object
org.apache.hadoop.hbase.coprocessor.BaseWALObserver
- All Implemented Interfaces:
- Coprocessor, WALObserver
@InterfaceAudience.LimitedPrivate(value="Coprocesssor")
@InterfaceStability.Evolving
public class BaseWALObserver
- extends Object
- implements WALObserver
An abstract class that implements WALObserver.
By extending it, you can create your own WAL observer without
overriding all abstract methods of WALObserver.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaseWALObserver
public BaseWALObserver()
start
public void start(CoprocessorEnvironment e)
throws IOException
- Specified by:
start
in interface Coprocessor
- Throws:
IOException
stop
public void stop(CoprocessorEnvironment e)
throws IOException
- Specified by:
stop
in interface Coprocessor
- Throws:
IOException
preWALWrite
public boolean preWALWrite(ObserverContext<WALCoprocessorEnvironment> ctx,
HRegionInfo info,
HLogKey logKey,
WALEdit logEdit)
throws IOException
- Description copied from interface:
WALObserver
- Called before a
WALEdit
is writen to WAL.
- Specified by:
preWALWrite
in interface WALObserver
- Returns:
- true if default behavior should be bypassed, false otherwise
- Throws:
IOException
postWALWrite
public void postWALWrite(ObserverContext<WALCoprocessorEnvironment> ctx,
HRegionInfo info,
HLogKey logKey,
WALEdit logEdit)
throws IOException
- Description copied from interface:
WALObserver
- Called after a
WALEdit
is writen to WAL.
- Specified by:
postWALWrite
in interface WALObserver
- Throws:
IOException
Copyright © 2015 The Apache Software Foundation. All rights reserved.