public class WALCoprocessorHost
extends <any>
WAL.| Constructor and Description |
|---|
WALCoprocessorHost(WAL log,
Configuration conf)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
WALCoprocessor |
checkAndGetInstance(java.lang.Class<?> implClass) |
org.apache.hadoop.hbase.regionserver.wal.WALCoprocessorHost.WALEnvironment |
createEnvironment(WALCoprocessor instance,
int priority,
int seq,
Configuration conf) |
void |
postWALRoll(Path oldPath,
Path newPath)
Called after rolling the current WAL
|
void |
postWALWrite(RegionInfo info,
WALKey logKey,
WALEdit logEdit) |
void |
preWALRoll(Path oldPath,
Path newPath)
Called before rolling the current WAL
|
void |
preWALWrite(RegionInfo info,
WALKey logKey,
WALEdit logEdit) |
public WALCoprocessorHost(WAL log,
Configuration conf)
log - the write ahead logconf - the configurationpublic org.apache.hadoop.hbase.regionserver.wal.WALCoprocessorHost.WALEnvironment createEnvironment(WALCoprocessor instance,
int priority,
int seq,
Configuration conf)
public WALCoprocessor checkAndGetInstance(java.lang.Class<?> implClass)
throws java.lang.IllegalAccessException,
java.lang.InstantiationException
java.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionpublic void preWALWrite(RegionInfo info,
WALKey logKey,
WALEdit logEdit)
throws java.io.IOException
java.io.IOExceptionpublic void postWALWrite(RegionInfo info,
WALKey logKey,
WALEdit logEdit)
throws java.io.IOException
java.io.IOExceptionpublic void preWALRoll(Path oldPath,
Path newPath)
throws java.io.IOException
oldPath - the path of the current wal that we are replacingnewPath - the path of the wal we are going to createjava.io.IOExceptionpublic void postWALRoll(Path oldPath,
Path newPath)
throws java.io.IOException
oldPath - the path of the wal that we replacednewPath - the path of the wal we have created and now is the currentjava.io.IOException