@InterfaceAudience.Private public class MasterCoprocessorHost extends CoprocessorHost<org.apache.hadoop.hbase.master.MasterCoprocessorHost.MasterEnvironment>
HMaster interacts with the loaded coprocessors
through this class.CoprocessorHost.EnvironmentABORT_ON_ERROR_KEY, abortable, conf, coprocessors, DEFAULT_ABORT_ON_ERROR, loadSequence, MASTER_COPROCESSOR_CONF_KEY, pathPrefix, REGION_COPROCESSOR_CONF_KEY, REGIONSERVER_COPROCESSOR_CONF_KEY, USER_REGION_COPROCESSOR_CONF_KEY, WAL_COPROCESSOR_CONF_KEYabortServer, abortServer, findCoprocessor, findCoprocessorEnvironment, getCoprocessors, getLoadedCoprocessors, handleCoprocessorThrowable, load, load, loadInstance, loadSystemCoprocessors, shutdownpublic org.apache.hadoop.hbase.master.MasterCoprocessorHost.MasterEnvironment createEnvironment(Class<?> implClass, Coprocessor instance, int priority, int seq, org.apache.hadoop.conf.Configuration conf)
CoprocessorHostcreateEnvironment in class CoprocessorHost<org.apache.hadoop.hbase.master.MasterCoprocessorHost.MasterEnvironment>public boolean preCreateNamespace(NamespaceDescriptor ns) throws IOException
IOExceptionpublic void postCreateNamespace(NamespaceDescriptor ns) throws IOException
IOExceptionpublic boolean preDeleteNamespace(String namespaceName) throws IOException
IOExceptionpublic void postDeleteNamespace(String namespaceName) throws IOException
IOExceptionpublic boolean preModifyNamespace(NamespaceDescriptor ns) throws IOException
IOExceptionpublic void postModifyNamespace(NamespaceDescriptor ns) throws IOException
IOExceptionpublic void preCreateTable(HTableDescriptor htd, HRegionInfo[] regions) throws IOException
IOExceptionpublic void postCreateTable(HTableDescriptor htd, HRegionInfo[] regions) throws IOException
IOExceptionpublic void preCreateTableHandler(HTableDescriptor htd, HRegionInfo[] regions) throws IOException
IOExceptionpublic void postCreateTableHandler(HTableDescriptor htd, HRegionInfo[] regions) throws IOException
IOExceptionpublic void preDeleteTable(TableName tableName) throws IOException
IOExceptionpublic void postDeleteTable(TableName tableName) throws IOException
IOExceptionpublic void preDeleteTableHandler(TableName tableName) throws IOException
IOExceptionpublic void postDeleteTableHandler(TableName tableName) throws IOException
IOExceptionpublic void preModifyTable(TableName tableName, HTableDescriptor htd) throws IOException
IOExceptionpublic void postModifyTable(TableName tableName, HTableDescriptor htd) throws IOException
IOExceptionpublic void preModifyTableHandler(TableName tableName, HTableDescriptor htd) throws IOException
IOExceptionpublic void postModifyTableHandler(TableName tableName, HTableDescriptor htd) throws IOException
IOExceptionpublic boolean preAddColumn(TableName tableName, HColumnDescriptor column) throws IOException
IOExceptionpublic void postAddColumn(TableName tableName, HColumnDescriptor column) throws IOException
IOExceptionpublic boolean preAddColumnHandler(TableName tableName, HColumnDescriptor column) throws IOException
IOExceptionpublic void postAddColumnHandler(TableName tableName, HColumnDescriptor column) throws IOException
IOExceptionpublic boolean preModifyColumn(TableName tableName, HColumnDescriptor descriptor) throws IOException
IOExceptionpublic void postModifyColumn(TableName tableName, HColumnDescriptor descriptor) throws IOException
IOExceptionpublic boolean preModifyColumnHandler(TableName tableName, HColumnDescriptor descriptor) throws IOException
IOExceptionpublic void postModifyColumnHandler(TableName tableName, HColumnDescriptor descriptor) throws IOException
IOExceptionpublic boolean preDeleteColumn(TableName tableName, byte[] c) throws IOException
IOExceptionpublic void postDeleteColumn(TableName tableName, byte[] c) throws IOException
IOExceptionpublic boolean preDeleteColumnHandler(TableName tableName, byte[] c) throws IOException
IOExceptionpublic void postDeleteColumnHandler(TableName tableName, byte[] c) throws IOException
IOExceptionpublic void preEnableTable(TableName tableName) throws IOException
IOExceptionpublic void postEnableTable(TableName tableName) throws IOException
IOExceptionpublic void preEnableTableHandler(TableName tableName) throws IOException
IOExceptionpublic void postEnableTableHandler(TableName tableName) throws IOException
IOExceptionpublic void preDisableTable(TableName tableName) throws IOException
IOExceptionpublic void postDisableTable(TableName tableName) throws IOException
IOExceptionpublic void preDisableTableHandler(TableName tableName) throws IOException
IOExceptionpublic void postDisableTableHandler(TableName tableName) throws IOException
IOExceptionpublic boolean preMove(HRegionInfo region, ServerName srcServer, ServerName destServer) throws IOException
IOExceptionpublic void postMove(HRegionInfo region, ServerName srcServer, ServerName destServer) throws IOException
IOExceptionpublic boolean preAssign(HRegionInfo regionInfo) throws IOException
IOExceptionpublic void postAssign(HRegionInfo regionInfo) throws IOException
IOExceptionpublic boolean preUnassign(HRegionInfo regionInfo, boolean force) throws IOException
IOExceptionpublic void postUnassign(HRegionInfo regionInfo, boolean force) throws IOException
IOExceptionpublic void preRegionOffline(HRegionInfo regionInfo) throws IOException
IOExceptionpublic void postRegionOffline(HRegionInfo regionInfo) throws IOException
IOExceptionpublic boolean preBalance()
throws IOException
IOExceptionpublic void postBalance(List<RegionPlan> plans) throws IOException
IOExceptionpublic boolean preBalanceSwitch(boolean b)
throws IOException
IOExceptionpublic void postBalanceSwitch(boolean oldValue,
boolean newValue)
throws IOException
IOExceptionpublic void preShutdown()
throws IOException
IOExceptionpublic void preStopMaster()
throws IOException
IOExceptionpublic void preMasterInitialization()
throws IOException
IOExceptionpublic void postStartMaster()
throws IOException
IOExceptionpublic void preSnapshot(HBaseProtos.SnapshotDescription snapshot, HTableDescriptor hTableDescriptor) throws IOException
IOExceptionpublic void postSnapshot(HBaseProtos.SnapshotDescription snapshot, HTableDescriptor hTableDescriptor) throws IOException
IOExceptionpublic void preCloneSnapshot(HBaseProtos.SnapshotDescription snapshot, HTableDescriptor hTableDescriptor) throws IOException
IOExceptionpublic void postCloneSnapshot(HBaseProtos.SnapshotDescription snapshot, HTableDescriptor hTableDescriptor) throws IOException
IOExceptionpublic void preRestoreSnapshot(HBaseProtos.SnapshotDescription snapshot, HTableDescriptor hTableDescriptor) throws IOException
IOExceptionpublic void postRestoreSnapshot(HBaseProtos.SnapshotDescription snapshot, HTableDescriptor hTableDescriptor) throws IOException
IOExceptionpublic void preDeleteSnapshot(HBaseProtos.SnapshotDescription snapshot) throws IOException
IOExceptionpublic void postDeleteSnapshot(HBaseProtos.SnapshotDescription snapshot) throws IOException
IOExceptionpublic boolean preGetTableDescriptors(List<TableName> tableNamesList, List<HTableDescriptor> descriptors) throws IOException
IOExceptionpublic void postGetTableDescriptors(List<HTableDescriptor> descriptors) throws IOException
IOExceptionCopyright © 2014 The Apache Software Foundation. All rights reserved.