@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, COPROCESSORS_ENABLED_CONF_KEY, DEFAULT_ABORT_ON_ERROR, DEFAULT_COPROCESSORS_ENABLED, DEFAULT_USER_COPROCESSORS_ENABLED, loadSequence, MASTER_COPROCESSOR_CONF_KEY, pathPrefix, REGION_COPROCESSOR_CONF_KEY, REGIONSERVER_COPROCESSOR_CONF_KEY, USER_COPROCESSORS_ENABLED_CONF_KEY, USER_REGION_COPROCESSOR_CONF_KEY, WAL_COPROCESSOR_CONF_KEY| Constructor and Description |
|---|
MasterCoprocessorHost(MasterServices services,
org.apache.hadoop.conf.Configuration conf) |
abortServer, abortServer, findCoprocessor, findCoprocessorEnvironment, findCoprocessors, getCoprocessors, getLoadedCoprocessors, handleCoprocessorThrowable, legacyWarning, load, load, loadInstance, loadSystemCoprocessors, shutdown, useLegacyMethodpublic MasterCoprocessorHost(MasterServices services, org.apache.hadoop.conf.Configuration conf)
public 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 preGetNamespaceDescriptor(String namespaceName) throws IOException
IOExceptionpublic void postGetNamespaceDescriptor(NamespaceDescriptor ns) throws IOException
IOExceptionpublic boolean preListNamespaceDescriptors(List<NamespaceDescriptor> descriptors) throws IOException
IOExceptionpublic void postListNamespaceDescriptors(List<NamespaceDescriptor> descriptors) 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 preTruncateTable(TableName tableName) throws IOException
IOExceptionpublic void postTruncateTable(TableName tableName) throws IOException
IOExceptionpublic void preTruncateTableHandler(TableName tableName) throws IOException
IOExceptionpublic void postTruncateTableHandler(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 preAbortProcedure(ProcedureExecutor<MasterProcedureEnv> procEnv, long procId) throws IOException
IOExceptionpublic void postAbortProcedure()
throws IOException
IOExceptionpublic boolean preListProcedures()
throws IOException
IOExceptionpublic void postListProcedures(List<ProcedureInfo> procInfoList) 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 preListSnapshot(HBaseProtos.SnapshotDescription snapshot) throws IOException
IOExceptionpublic void postListSnapshot(HBaseProtos.SnapshotDescription snapshot) 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
IOException@Deprecated public boolean preGetTableDescriptors(List<TableName> tableNamesList, List<HTableDescriptor> descriptors) throws IOException
IOException@Deprecated public void postGetTableDescriptors(List<HTableDescriptor> descriptors) throws IOException
IOExceptionpublic boolean preGetTableDescriptors(List<TableName> tableNamesList, List<HTableDescriptor> descriptors, String regex) throws IOException
IOExceptionpublic void postGetTableDescriptors(List<TableName> tableNamesList, List<HTableDescriptor> descriptors, String regex) throws IOException
IOExceptionpublic boolean preGetTableNames(List<HTableDescriptor> descriptors, String regex) throws IOException
IOExceptionpublic void postGetTableNames(List<HTableDescriptor> descriptors, String regex) throws IOException
IOExceptionpublic void preTableFlush(TableName tableName) throws IOException
IOExceptionpublic void postTableFlush(TableName tableName) throws IOException
IOExceptionpublic void preSetUserQuota(String user, QuotaProtos.Quotas quotas) throws IOException
IOExceptionpublic void postSetUserQuota(String user, QuotaProtos.Quotas quotas) throws IOException
IOExceptionpublic void preSetUserQuota(String user, TableName table, QuotaProtos.Quotas quotas) throws IOException
IOExceptionpublic void postSetUserQuota(String user, TableName table, QuotaProtos.Quotas quotas) throws IOException
IOExceptionpublic void preSetUserQuota(String user, String namespace, QuotaProtos.Quotas quotas) throws IOException
IOExceptionpublic void postSetUserQuota(String user, String namespace, QuotaProtos.Quotas quotas) throws IOException
IOExceptionpublic void preSetTableQuota(TableName table, QuotaProtos.Quotas quotas) throws IOException
IOExceptionpublic void postSetTableQuota(TableName table, QuotaProtos.Quotas quotas) throws IOException
IOExceptionpublic void preSetNamespaceQuota(String namespace, QuotaProtos.Quotas quotas) throws IOException
IOExceptionpublic void postSetNamespaceQuota(String namespace, QuotaProtos.Quotas quotas) throws IOException
IOExceptionCopyright © 2007–2016 The Apache Software Foundation. All rights reserved.