@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, findCoprocessorEnvironment, findCoprocessors, getCoprocessors, getLoadedCoprocessors, handleCoprocessorThrowable, legacyWarning, load, 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(TableDescriptor htd, HRegionInfo[] regions) throws IOException
IOExceptionpublic void postCreateTable(TableDescriptor htd, HRegionInfo[] regions) throws IOException
IOExceptionpublic void preCreateTableAction(TableDescriptor htd, HRegionInfo[] regions, User user) throws IOException
IOExceptionpublic void postCompletedCreateTableAction(TableDescriptor htd, HRegionInfo[] regions, User user) throws IOException
IOExceptionpublic void preDeleteTable(TableName tableName) throws IOException
IOExceptionpublic void postDeleteTable(TableName tableName) throws IOException
IOExceptionpublic void preDeleteTableAction(TableName tableName, User user) throws IOException
IOExceptionpublic void postCompletedDeleteTableAction(TableName tableName, User user) throws IOException
IOExceptionpublic void preTruncateTable(TableName tableName) throws IOException
IOExceptionpublic void postTruncateTable(TableName tableName) throws IOException
IOExceptionpublic void preTruncateTableAction(TableName tableName, User user) throws IOException
IOExceptionpublic void postCompletedTruncateTableAction(TableName tableName, User user) throws IOException
IOExceptionpublic void preModifyTable(TableName tableName, TableDescriptor htd) throws IOException
IOExceptionpublic void postModifyTable(TableName tableName, TableDescriptor htd) throws IOException
IOExceptionpublic void preModifyTableAction(TableName tableName, TableDescriptor htd, User user) throws IOException
IOExceptionpublic void postCompletedModifyTableAction(TableName tableName, TableDescriptor htd, User user) throws IOException
IOExceptionpublic boolean preAddColumn(TableName tableName, ColumnFamilyDescriptor columnFamily) throws IOException
IOExceptionpublic void postAddColumn(TableName tableName, ColumnFamilyDescriptor columnFamily) throws IOException
IOExceptionpublic boolean preAddColumnFamilyAction(TableName tableName, ColumnFamilyDescriptor columnFamily, User user) throws IOException
IOExceptionpublic void postCompletedAddColumnFamilyAction(TableName tableName, ColumnFamilyDescriptor columnFamily, User user) throws IOException
IOExceptionpublic boolean preModifyColumn(TableName tableName, ColumnFamilyDescriptor columnFamily) throws IOException
IOExceptionpublic void postModifyColumn(TableName tableName, ColumnFamilyDescriptor columnFamily) throws IOException
IOExceptionpublic boolean preModifyColumnFamilyAction(TableName tableName, ColumnFamilyDescriptor columnFamily, User user) throws IOException
IOExceptionpublic void postCompletedModifyColumnFamilyAction(TableName tableName, ColumnFamilyDescriptor columnFamily, User user) throws IOException
IOExceptionpublic boolean preDeleteColumn(TableName tableName, byte[] columnFamily) throws IOException
IOExceptionpublic void postDeleteColumn(TableName tableName, byte[] columnFamily) throws IOException
IOExceptionpublic boolean preDeleteColumnFamilyAction(TableName tableName, byte[] columnFamily, User user) throws IOException
IOExceptionpublic void postCompletedDeleteColumnFamilyAction(TableName tableName, byte[] columnFamily, User user) throws IOException
IOExceptionpublic void preEnableTable(TableName tableName) throws IOException
IOExceptionpublic void postEnableTable(TableName tableName) throws IOException
IOExceptionpublic void preEnableTableAction(TableName tableName, User user) throws IOException
IOExceptionpublic void postCompletedEnableTableAction(TableName tableName, User user) throws IOException
IOExceptionpublic void preDisableTable(TableName tableName) throws IOException
IOExceptionpublic void postDisableTable(TableName tableName) throws IOException
IOExceptionpublic void preDisableTableAction(TableName tableName, User user) throws IOException
IOExceptionpublic void postCompletedDisableTableAction(TableName tableName, User user) throws IOException
IOExceptionpublic boolean preAbortProcedure(ProcedureExecutor<MasterProcedureEnv> procEnv, long procId) throws IOException
IOExceptionpublic void postAbortProcedure()
throws IOException
IOExceptionpublic boolean preGetProcedures()
throws IOException
IOExceptionpublic void postGetProcedures(List<Procedure<?>> procInfoList) throws IOException
IOExceptionpublic boolean preGetLocks()
throws IOException
IOExceptionpublic void postGetLocks(List<LockedResource> lockedResources) 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 void preMergeRegions(HRegionInfo[] regionsToMerge) throws IOException
IOExceptionpublic void postMergeRegions(HRegionInfo[] regionsToMerge) throws IOException
IOExceptionpublic boolean preBalance()
throws IOException
IOExceptionpublic void postBalance(List<RegionPlan> plans) throws IOException
IOExceptionpublic boolean preSetSplitOrMergeEnabled(boolean newValue,
MasterSwitchType switchType)
throws IOException
IOExceptionpublic void postSetSplitOrMergeEnabled(boolean newValue,
MasterSwitchType switchType)
throws IOException
IOExceptionpublic void preSplitRegion(TableName tableName, byte[] splitRow) throws IOException
tableName - the table where the region belongs tosplitRow - the split pointIOExceptionpublic void preSplitRegionAction(TableName tableName, byte[] splitRow, User user) throws IOException
tableName - the table where the region belongs tosplitRow - the split pointuser - the userIOExceptionpublic void postCompletedSplitRegionAction(HRegionInfo regionInfoA, HRegionInfo regionInfoB, User user) throws IOException
regionInfoA - the new left-hand daughter regionregionInfoB - the new right-hand daughter regionuser - the userIOExceptionpublic boolean preSplitBeforePONRAction(byte[] splitKey,
List<Mutation> metaEntries,
User user)
throws IOException
splitKey - metaEntries - user - the userIOExceptionpublic void preSplitAfterPONRAction(User user) throws IOException
user - the userIOExceptionpublic void postRollBackSplitRegionAction(User user) throws IOException
user - the userIOExceptionpublic boolean preMergeRegionsAction(HRegionInfo[] regionsToMerge, User user) throws IOException
regionsToMerge - the regions to mergeuser - the userIOExceptionpublic void postCompletedMergeRegionsAction(HRegionInfo[] regionsToMerge, HRegionInfo mergedRegion, User user) throws IOException
regionsToMerge - the regions to mergemergedRegion - the new merged regionuser - the userIOExceptionpublic boolean preMergeRegionsCommit(HRegionInfo[] regionsToMerge, @MetaMutationAnnotation List<Mutation> metaEntries, User user) throws IOException
regionsToMerge - the regions to mergemetaEntries - the meta entryuser - the userIOExceptionpublic void postMergeRegionsCommit(HRegionInfo[] regionsToMerge, HRegionInfo mergedRegion, User user) throws IOException
regionsToMerge - the regions to mergemergedRegion - the new merged regionuser - the userIOExceptionpublic void postRollBackMergeRegionsAction(HRegionInfo[] regionsToMerge, User user) throws IOException
regionsToMerge - the regions to mergeuser - the userIOExceptionpublic 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(org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotDescription snapshot, TableDescriptor hTableDescriptor) throws IOException
IOExceptionpublic void postSnapshot(org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotDescription snapshot, TableDescriptor hTableDescriptor) throws IOException
IOExceptionpublic void preListSnapshot(org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotDescription snapshot) throws IOException
IOExceptionpublic void postListSnapshot(org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotDescription snapshot) throws IOException
IOExceptionpublic void preCloneSnapshot(org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotDescription snapshot, TableDescriptor hTableDescriptor) throws IOException
IOExceptionpublic void postCloneSnapshot(org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotDescription snapshot, TableDescriptor hTableDescriptor) throws IOException
IOExceptionpublic void preRestoreSnapshot(org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotDescription snapshot, TableDescriptor hTableDescriptor) throws IOException
IOExceptionpublic void postRestoreSnapshot(org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotDescription snapshot, TableDescriptor hTableDescriptor) throws IOException
IOExceptionpublic void preDeleteSnapshot(org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotDescription snapshot) throws IOException
IOExceptionpublic void postDeleteSnapshot(org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotDescription snapshot) throws IOException
IOExceptionpublic boolean preGetTableDescriptors(List<TableName> tableNamesList, List<TableDescriptor> descriptors, String regex) throws IOException
IOExceptionpublic void postGetTableDescriptors(List<TableName> tableNamesList, List<TableDescriptor> descriptors, String regex) throws IOException
IOExceptionpublic boolean preGetTableNames(List<TableDescriptor> descriptors, String regex) throws IOException
IOExceptionpublic void postGetTableNames(List<TableDescriptor> descriptors, String regex) throws IOException
IOExceptionpublic void preTableFlush(TableName tableName) throws IOException
IOExceptionpublic void postTableFlush(TableName tableName) throws IOException
IOExceptionpublic void preSetUserQuota(String user, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas quotas) throws IOException
IOExceptionpublic void postSetUserQuota(String user, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas quotas) throws IOException
IOExceptionpublic void preSetUserQuota(String user, TableName table, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas quotas) throws IOException
IOExceptionpublic void postSetUserQuota(String user, TableName table, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas quotas) throws IOException
IOExceptionpublic void preSetUserQuota(String user, String namespace, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas quotas) throws IOException
IOExceptionpublic void postSetUserQuota(String user, String namespace, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas quotas) throws IOException
IOExceptionpublic void preSetTableQuota(TableName table, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas quotas) throws IOException
IOExceptionpublic void postSetTableQuota(TableName table, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas quotas) throws IOException
IOExceptionpublic void preSetNamespaceQuota(String namespace, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas quotas) throws IOException
IOExceptionpublic void postSetNamespaceQuota(String namespace, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas quotas) throws IOException
IOExceptionpublic void preMoveServersAndTables(Set<Address> servers, Set<TableName> tables, String targetGroup) throws IOException
IOExceptionpublic void postMoveServersAndTables(Set<Address> servers, Set<TableName> tables, String targetGroup) throws IOException
IOExceptionpublic void preMoveServers(Set<Address> servers, String targetGroup) throws IOException
IOExceptionpublic void postMoveServers(Set<Address> servers, String targetGroup) throws IOException
IOExceptionpublic void preMoveTables(Set<TableName> tables, String targetGroup) throws IOException
IOExceptionpublic void postMoveTables(Set<TableName> tables, String targetGroup) throws IOException
IOExceptionpublic void preAddRSGroup(String name) throws IOException
IOExceptionpublic void postAddRSGroup(String name) throws IOException
IOExceptionpublic void preRemoveRSGroup(String name) throws IOException
IOExceptionpublic void postRemoveRSGroup(String name) throws IOException
IOExceptionpublic void preBalanceRSGroup(String name) throws IOException
IOExceptionpublic void postBalanceRSGroup(String name, boolean balanceRan) throws IOException
IOExceptionpublic void preAddReplicationPeer(String peerId, ReplicationPeerConfig peerConfig) throws IOException
IOExceptionpublic void postAddReplicationPeer(String peerId, ReplicationPeerConfig peerConfig) throws IOException
IOExceptionpublic void preRemoveReplicationPeer(String peerId) throws IOException
IOExceptionpublic void postRemoveReplicationPeer(String peerId) throws IOException
IOExceptionpublic void preEnableReplicationPeer(String peerId) throws IOException
IOExceptionpublic void postEnableReplicationPeer(String peerId) throws IOException
IOExceptionpublic void preDisableReplicationPeer(String peerId) throws IOException
IOExceptionpublic void postDisableReplicationPeer(String peerId) throws IOException
IOExceptionpublic void preGetReplicationPeerConfig(String peerId) throws IOException
IOExceptionpublic void postGetReplicationPeerConfig(String peerId) throws IOException
IOExceptionpublic void preUpdateReplicationPeerConfig(String peerId, ReplicationPeerConfig peerConfig) throws IOException
IOExceptionpublic void postUpdateReplicationPeerConfig(String peerId, ReplicationPeerConfig peerConfig) throws IOException
IOExceptionpublic void preListReplicationPeers(String regex) throws IOException
IOExceptionpublic void postListReplicationPeers(String regex) throws IOException
IOExceptionpublic void preRequestLock(String namespace, TableName tableName, HRegionInfo[] regionInfos, LockType type, String description) throws IOException
IOExceptionpublic void postRequestLock(String namespace, TableName tableName, HRegionInfo[] regionInfos, LockType type, String description) throws IOException
IOExceptionpublic void preLockHeartbeat(LockProcedure proc, boolean keepAlive) throws IOException
IOExceptionpublic void postLockHeartbeat(LockProcedure proc, boolean keepAlive) throws IOException
IOExceptionpublic void preListDeadServers()
throws IOException
IOExceptionpublic void postListDeadServers()
throws IOException
IOExceptionpublic void preClearDeadServers()
throws IOException
IOExceptionpublic void postClearDeadServers()
throws IOException
IOExceptionCopyright © 2007–2017 The Apache Software Foundation. All rights reserved.