org.apache.hadoop.hbase.master
Class MasterCoprocessorHost
java.lang.Object
org.apache.hadoop.hbase.coprocessor.CoprocessorHost<org.apache.hadoop.hbase.master.MasterCoprocessorHost.MasterEnvironment>
org.apache.hadoop.hbase.master.MasterCoprocessorHost
@InterfaceAudience.Private
public class MasterCoprocessorHost
- extends CoprocessorHost<org.apache.hadoop.hbase.master.MasterCoprocessorHost.MasterEnvironment>
Provides the coprocessor framework and environment for master oriented
operations. HMaster
interacts with the loaded coprocessors
through this class.
Method Summary |
protected void |
abortServer(CoprocessorEnvironment env,
Throwable e)
|
org.apache.hadoop.hbase.master.MasterCoprocessorHost.MasterEnvironment |
createEnvironment(Class<?> implClass,
Coprocessor instance,
int priority,
int seq,
org.apache.hadoop.conf.Configuration conf)
Called when a new Coprocessor class is loaded |
void |
postAddColumn(byte[] tableName,
HColumnDescriptor column)
|
void |
postAddColumnHandler(byte[] tableName,
HColumnDescriptor column)
|
void |
postCloneSnapshot(HBaseProtos.SnapshotDescription snapshot,
HTableDescriptor hTableDescriptor)
|
void |
postCreateTable(HTableDescriptor htd,
HRegionInfo[] regions)
|
void |
postCreateTableHandler(HTableDescriptor htd,
HRegionInfo[] regions)
|
void |
postDeleteColumn(byte[] tableName,
byte[] c)
|
void |
postDeleteColumnHandler(byte[] tableName,
byte[] c)
|
void |
postDeleteSnapshot(HBaseProtos.SnapshotDescription snapshot)
|
void |
postDeleteTable(byte[] tableName)
|
void |
postDeleteTableHandler(byte[] tableName)
|
void |
postDisableTable(byte[] tableName)
|
void |
postDisableTableHandler(byte[] tableName)
|
void |
postEnableTable(byte[] tableName)
|
void |
postEnableTableHandler(byte[] tableName)
|
void |
postModifyColumn(byte[] tableName,
HColumnDescriptor descriptor)
|
void |
postModifyColumnHandler(byte[] tableName,
HColumnDescriptor descriptor)
|
void |
postModifyTable(byte[] tableName,
HTableDescriptor htd)
|
void |
postModifyTableHandler(byte[] tableName,
HTableDescriptor htd)
|
void |
postMove(HRegionInfo region,
ServerName srcServer,
ServerName destServer)
|
void |
postRestoreSnapshot(HBaseProtos.SnapshotDescription snapshot,
HTableDescriptor hTableDescriptor)
|
void |
postSnapshot(HBaseProtos.SnapshotDescription snapshot,
HTableDescriptor hTableDescriptor)
|
boolean |
preAddColumn(byte[] tableName,
HColumnDescriptor column)
|
boolean |
preAddColumnHandler(byte[] tableName,
HColumnDescriptor column)
|
void |
preCloneSnapshot(HBaseProtos.SnapshotDescription snapshot,
HTableDescriptor hTableDescriptor)
|
void |
preCreateTable(HTableDescriptor htd,
HRegionInfo[] regions)
|
void |
preCreateTableHandler(HTableDescriptor htd,
HRegionInfo[] regions)
|
boolean |
preDeleteColumnHandler(byte[] tableName,
byte[] c)
|
void |
preDeleteSnapshot(HBaseProtos.SnapshotDescription snapshot)
|
void |
preDeleteTable(byte[] tableName)
|
void |
preDeleteTableHandler(byte[] tableName)
|
void |
preDisableTable(byte[] tableName)
|
void |
preDisableTableHandler(byte[] tableName)
|
void |
preEnableTable(byte[] tableName)
|
void |
preEnableTableHandler(byte[] tableName)
|
boolean |
preModifyColumn(byte[] tableName,
HColumnDescriptor descriptor)
|
boolean |
preModifyColumnHandler(byte[] tableName,
HColumnDescriptor descriptor)
|
void |
preModifyTable(byte[] tableName,
HTableDescriptor htd)
|
void |
preModifyTableHandler(byte[] tableName,
HTableDescriptor htd)
|
boolean |
preMove(HRegionInfo region,
ServerName srcServer,
ServerName destServer)
|
void |
preRestoreSnapshot(HBaseProtos.SnapshotDescription snapshot,
HTableDescriptor hTableDescriptor)
|
void |
preSnapshot(HBaseProtos.SnapshotDescription snapshot,
HTableDescriptor hTableDescriptor)
|
Methods inherited from class org.apache.hadoop.hbase.coprocessor.CoprocessorHost |
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 |
createEnvironment
public org.apache.hadoop.hbase.master.MasterCoprocessorHost.MasterEnvironment 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.master.MasterCoprocessorHost.MasterEnvironment>
abortServer
protected void abortServer(CoprocessorEnvironment env,
Throwable e)
- Overrides:
abortServer
in class CoprocessorHost<org.apache.hadoop.hbase.master.MasterCoprocessorHost.MasterEnvironment>
preCreateTable
public void preCreateTable(HTableDescriptor htd,
HRegionInfo[] regions)
throws IOException
- Throws:
IOException
postCreateTable
public void postCreateTable(HTableDescriptor htd,
HRegionInfo[] regions)
throws IOException
- Throws:
IOException
preCreateTableHandler
public void preCreateTableHandler(HTableDescriptor htd,
HRegionInfo[] regions)
throws IOException
- Throws:
IOException
postCreateTableHandler
public void postCreateTableHandler(HTableDescriptor htd,
HRegionInfo[] regions)
throws IOException
- Throws:
IOException
preDeleteTable
public void preDeleteTable(byte[] tableName)
throws IOException
- Throws:
IOException
postDeleteTable
public void postDeleteTable(byte[] tableName)
throws IOException
- Throws:
IOException
preDeleteTableHandler
public void preDeleteTableHandler(byte[] tableName)
throws IOException
- Throws:
IOException
postDeleteTableHandler
public void postDeleteTableHandler(byte[] tableName)
throws IOException
- Throws:
IOException
preModifyTable
public void preModifyTable(byte[] tableName,
HTableDescriptor htd)
throws IOException
- Throws:
IOException
postModifyTable
public void postModifyTable(byte[] tableName,
HTableDescriptor htd)
throws IOException
- Throws:
IOException
preModifyTableHandler
public void preModifyTableHandler(byte[] tableName,
HTableDescriptor htd)
throws IOException
- Throws:
IOException
postModifyTableHandler
public void postModifyTableHandler(byte[] tableName,
HTableDescriptor htd)
throws IOException
- Throws:
IOException
preAddColumn
public boolean preAddColumn(byte[] tableName,
HColumnDescriptor column)
throws IOException
- Throws:
IOException
postAddColumn
public void postAddColumn(byte[] tableName,
HColumnDescriptor column)
throws IOException
- Throws:
IOException
preAddColumnHandler
public boolean preAddColumnHandler(byte[] tableName,
HColumnDescriptor column)
throws IOException
- Throws:
IOException
postAddColumnHandler
public void postAddColumnHandler(byte[] tableName,
HColumnDescriptor column)
throws IOException
- Throws:
IOException
preModifyColumn
public boolean preModifyColumn(byte[] tableName,
HColumnDescriptor descriptor)
throws IOException
- Throws:
IOException
postModifyColumn
public void postModifyColumn(byte[] tableName,
HColumnDescriptor descriptor)
throws IOException
- Throws:
IOException
preModifyColumnHandler
public boolean preModifyColumnHandler(byte[] tableName,
HColumnDescriptor descriptor)
throws IOException
- Throws:
IOException
postModifyColumnHandler
public void postModifyColumnHandler(byte[] tableName,
HColumnDescriptor descriptor)
throws IOException
- Throws:
IOException
postDeleteColumn
public void postDeleteColumn(byte[] tableName,
byte[] c)
throws IOException
- Throws:
IOException
preDeleteColumnHandler
public boolean preDeleteColumnHandler(byte[] tableName,
byte[] c)
throws IOException
- Throws:
IOException
postDeleteColumnHandler
public void postDeleteColumnHandler(byte[] tableName,
byte[] c)
throws IOException
- Throws:
IOException
preEnableTable
public void preEnableTable(byte[] tableName)
throws IOException
- Throws:
IOException
postEnableTable
public void postEnableTable(byte[] tableName)
throws IOException
- Throws:
IOException
preEnableTableHandler
public void preEnableTableHandler(byte[] tableName)
throws IOException
- Throws:
IOException
postEnableTableHandler
public void postEnableTableHandler(byte[] tableName)
throws IOException
- Throws:
IOException
preDisableTable
public void preDisableTable(byte[] tableName)
throws IOException
- Throws:
IOException
postDisableTable
public void postDisableTable(byte[] tableName)
throws IOException
- Throws:
IOException
preDisableTableHandler
public void preDisableTableHandler(byte[] tableName)
throws IOException
- Throws:
IOException
postDisableTableHandler
public void postDisableTableHandler(byte[] tableName)
throws IOException
- Throws:
IOException
preMove
public boolean preMove(HRegionInfo region,
ServerName srcServer,
ServerName destServer)
throws IOException
- Throws:
IOException
postMove
public void postMove(HRegionInfo region,
ServerName srcServer,
ServerName destServer)
throws IOException
- Throws:
IOException
preSnapshot
public void preSnapshot(HBaseProtos.SnapshotDescription snapshot,
HTableDescriptor hTableDescriptor)
throws IOException
- Throws:
IOException
postSnapshot
public void postSnapshot(HBaseProtos.SnapshotDescription snapshot,
HTableDescriptor hTableDescriptor)
throws IOException
- Throws:
IOException
preCloneSnapshot
public void preCloneSnapshot(HBaseProtos.SnapshotDescription snapshot,
HTableDescriptor hTableDescriptor)
throws IOException
- Throws:
IOException
postCloneSnapshot
public void postCloneSnapshot(HBaseProtos.SnapshotDescription snapshot,
HTableDescriptor hTableDescriptor)
throws IOException
- Throws:
IOException
preRestoreSnapshot
public void preRestoreSnapshot(HBaseProtos.SnapshotDescription snapshot,
HTableDescriptor hTableDescriptor)
throws IOException
- Throws:
IOException
postRestoreSnapshot
public void postRestoreSnapshot(HBaseProtos.SnapshotDescription snapshot,
HTableDescriptor hTableDescriptor)
throws IOException
- Throws:
IOException
preDeleteSnapshot
public void preDeleteSnapshot(HBaseProtos.SnapshotDescription snapshot)
throws IOException
- Throws:
IOException
postDeleteSnapshot
public void postDeleteSnapshot(HBaseProtos.SnapshotDescription snapshot)
throws IOException
- Throws:
IOException
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.