org.apache.hadoop.hbase.regionserver.wal
Class WALCoprocessorHost
java.lang.Object
org.apache.hadoop.hbase.coprocessor.CoprocessorHost<org.apache.hadoop.hbase.regionserver.wal.WALCoprocessorHost.WALEnvironment>
org.apache.hadoop.hbase.regionserver.wal.WALCoprocessorHost
public class WALCoprocessorHost
- extends CoprocessorHost<org.apache.hadoop.hbase.regionserver.wal.WALCoprocessorHost.WALEnvironment>
Implements the coprocessor environment and runtime support for coprocessors
loaded within a HLog
.
Methods inherited from class org.apache.hadoop.hbase.coprocessor.CoprocessorHost |
abortServer, abortServer, findCoprocessor, findCoprocessorEnvironment, getCoprocessors, getLoadedCoprocessors, handleCoprocessorThrowable, load, load, loadInstance, loadSystemCoprocessors, shutdown |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WALCoprocessorHost
public WALCoprocessorHost(HLog log,
org.apache.hadoop.conf.Configuration conf)
- Constructor
- Parameters:
log
- the write ahead logconf
- the configuration
createEnvironment
public org.apache.hadoop.hbase.regionserver.wal.WALCoprocessorHost.WALEnvironment createEnvironment(Class<?> implClass,
Coprocessor instance,
int priority,
int seq,
org.apache.hadoop.conf.Configuration conf)
- Description copied from class:
CoprocessorHost
- Called when a new Coprocessor class is loaded
- Specified by:
createEnvironment
in class CoprocessorHost<org.apache.hadoop.hbase.regionserver.wal.WALCoprocessorHost.WALEnvironment>
preWALWrite
public boolean preWALWrite(HRegionInfo info,
HLogKey logKey,
WALEdit logEdit)
throws IOException
- Parameters:
info
- logKey
- logEdit
-
- Returns:
- true if default behavior should be bypassed, false otherwise
- Throws:
IOException
postWALWrite
public void postWALWrite(HRegionInfo info,
HLogKey logKey,
WALEdit logEdit)
throws IOException
- Parameters:
info
- logKey
- logEdit
-
- Throws:
IOException
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.