Class MasterReadOnlyController
java.lang.Object
org.apache.hadoop.hbase.security.access.AbstractReadOnlyController
org.apache.hadoop.hbase.security.access.MasterReadOnlyController
- All Implemented Interfaces:
Coprocessor,MasterCoprocessor,MasterObserver
@LimitedPrivate("Configuration")
public class MasterReadOnlyController
extends AbstractReadOnlyController
implements MasterCoprocessor, MasterObserver
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.hadoop.hbase.Coprocessor
Coprocessor.State -
Field Summary
FieldsFields inherited from interface org.apache.hadoop.hbase.Coprocessor
PRIORITY_HIGHEST, PRIORITY_LOWEST, PRIORITY_SYSTEM, PRIORITY_USER, VERSION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidpreAddReplicationPeer(ObserverContext<MasterCoprocessorEnvironment> ctx, String peerId, ReplicationPeerConfig peerConfig) Called before add a replication peervoidCalled before a new region server group is addedvoidpreBalanceRSGroup(ObserverContext<MasterCoprocessorEnvironment> ctx, String groupName, BalanceRequest request) Called before a region server group is removedvoidpreCloneSnapshot(ObserverContext<MasterCoprocessorEnvironment> ctx, SnapshotDescription snapshot, TableDescriptor tableDescriptor) Called before a snapshot is cloned.voidCalled before a new namespace is created byHMaster.voidpreCreateTable(ObserverContext<MasterCoprocessorEnvironment> ctx, TableDescriptor desc, RegionInfo[] regions) Called before a new table is created byHMaster.voidpreCreateTableAction(ObserverContext<MasterCoprocessorEnvironment> ctx, TableDescriptor desc, RegionInfo[] regions) Called before a new table is created byHMaster.Called before we create the region infos for this table.voidpreDeleteNamespace(ObserverContext<MasterCoprocessorEnvironment> ctx, String namespace) Called beforeHMasterdeletes a namespacevoidCalled before a snapshot is deleted.voidpreDeleteTable(ObserverContext<MasterCoprocessorEnvironment> ctx, TableName tableName) Called beforeHMasterdeletes a table.voidpreDeleteTableAction(ObserverContext<MasterCoprocessorEnvironment> ctx, TableName tableName) Called beforeHMasterdeletes a table.voidCalled before disable a replication peervoidCalled before enable a replication peervoidpreGrant(ObserverContext<MasterCoprocessorEnvironment> ctx, UserPermission userPermission, boolean mergeExistingPermissions) Called before granting user permissions.voidCalled before the master local region memstore is flushed to disk.voidpreMergeRegions(ObserverContext<MasterCoprocessorEnvironment> ctx, RegionInfo[] regionsToMerge) Called before merge regions request.voidpreMergeRegionsAction(ObserverContext<MasterCoprocessorEnvironment> ctx, RegionInfo[] regionsToMerge) Called before the regions merge.voidpreMergeRegionsCommitAction(ObserverContext<MasterCoprocessorEnvironment> ctx, RegionInfo[] regionsToMerge, List<Mutation> metaEntries) This will be called before update META step as part of regions merge transaction.preModifyColumnFamilyStoreFileTracker(ObserverContext<MasterCoprocessorEnvironment> ctx, TableName tableName, byte[] family, String dstSFT) Called prior to modifying a family's store file tracker.voidpreModifyNamespace(ObserverContext<MasterCoprocessorEnvironment> ctx, NamespaceDescriptor currentNsDescriptor, NamespaceDescriptor newNsDescriptor) Called prior to modifying a namespace's properties.preModifyTable(ObserverContext<MasterCoprocessorEnvironment> ctx, TableName tableName, TableDescriptor currentDescriptor, TableDescriptor newDescriptor) Called prior to modifying a table's properties.voidpreModifyTableAction(ObserverContext<MasterCoprocessorEnvironment> ctx, TableName tableName, TableDescriptor currentDescriptor, TableDescriptor newDescriptor) Called prior to modifying a table's properties.preModifyTableStoreFileTracker(ObserverContext<MasterCoprocessorEnvironment> ctx, TableName tableName, String dstSFT) Called prior to modifying a table's store file tracker.voidpreMoveServers(ObserverContext<MasterCoprocessorEnvironment> ctx, Set<Address> servers, String targetGroup) Called before servers are moved to target region server groupvoidpreMoveServersAndTables(ObserverContext<MasterCoprocessorEnvironment> ctx, Set<Address> servers, Set<TableName> tables, String targetGroup) Called before servers are moved to target region server groupvoidpreMoveTables(ObserverContext<MasterCoprocessorEnvironment> ctx, Set<TableName> tables, String targetGroup) Called before tables are moved to target region server groupvoidCalled before remove a replication peervoidCalled before a region server group is removedvoidpreRemoveServers(ObserverContext<MasterCoprocessorEnvironment> ctx, Set<Address> servers) Called before servers are removed from rsgroupvoidpreRenameRSGroup(ObserverContext<MasterCoprocessorEnvironment> ctx, String oldName, String newName) Called before rename rsgroup.voidpreRestoreSnapshot(ObserverContext<MasterCoprocessorEnvironment> ctx, SnapshotDescription snapshot, TableDescriptor tableDescriptor) Called before a snapshot is restored.voidpreRevoke(ObserverContext<MasterCoprocessorEnvironment> ctx, UserPermission userPermission) Called before revoking user permissions.voidpreSetNamespaceQuota(ObserverContext<MasterCoprocessorEnvironment> ctx, String namespace, GlobalQuotaSettings quotas) Called before the quota for the namespace is stored.voidpreSetRegionServerQuota(ObserverContext<MasterCoprocessorEnvironment> ctx, String regionServer, GlobalQuotaSettings quotas) Called before the quota for the region server is stored.voidpreSetTableQuota(ObserverContext<MasterCoprocessorEnvironment> ctx, TableName tableName, GlobalQuotaSettings quotas) Called before the quota for the table is stored.voidpreSetUserQuota(ObserverContext<MasterCoprocessorEnvironment> ctx, String userName, String namespace, GlobalQuotaSettings quotas) Called before the quota for the user on the specified namespace is stored.voidpreSetUserQuota(ObserverContext<MasterCoprocessorEnvironment> ctx, String userName, GlobalQuotaSettings quotas) Called before the quota for the user is stored.voidpreSetUserQuota(ObserverContext<MasterCoprocessorEnvironment> ctx, String userName, TableName tableName, GlobalQuotaSettings quotas) Called before the quota for the user on the specified table is stored.voidpreSnapshot(ObserverContext<MasterCoprocessorEnvironment> ctx, SnapshotDescription snapshot, TableDescriptor tableDescriptor) Called before a new snapshot is taken.voidpreSplitRegion(ObserverContext<MasterCoprocessorEnvironment> c, TableName tableName, byte[] splitRow) Called before the split region procedure is called.voidpreSplitRegionAction(ObserverContext<MasterCoprocessorEnvironment> c, TableName tableName, byte[] splitRow) Called before the region is split.voidThis will be called after update META step as part of split transactionvoidpreSplitRegionBeforeMETAAction(ObserverContext<MasterCoprocessorEnvironment> ctx, byte[] splitKey, List<Mutation> metaEntries) This will be called before update META step as part of split transaction.voidpreTransitReplicationPeerSyncReplicationState(ObserverContext<MasterCoprocessorEnvironment> ctx, String peerId, SyncReplicationState state) Called before transit current cluster state for the specified synchronous replication peervoidpreTruncateRegion(ObserverContext<MasterCoprocessorEnvironment> c, RegionInfo regionInfo) Called before the truncate region procedure is called.voidpreTruncateRegionAction(ObserverContext<MasterCoprocessorEnvironment> c, RegionInfo regionInfo) Called before the region is truncated.voidpreTruncateTable(ObserverContext<MasterCoprocessorEnvironment> ctx, TableName tableName) Called beforeHMastertruncates a table.voidpreTruncateTableAction(ObserverContext<MasterCoprocessorEnvironment> ctx, TableName tableName) Called beforeHMastertruncates a table.voidpreUpdateReplicationPeerConfig(ObserverContext<MasterCoprocessorEnvironment> ctx, String peerId, ReplicationPeerConfig peerConfig) Called before update peerConfig for the specified peervoidpreUpdateRSGroupConfig(ObserverContext<MasterCoprocessorEnvironment> ctx, String groupName, Map<String, String> configuration) Called before update rsgroup config.Methods inherited from class org.apache.hadoop.hbase.security.access.AbstractReadOnlyController
internalReadOnlyGuard, isWritableInReadOnlyMode, isWritableInReadOnlyMode, manageActiveClusterIdFile, start, stopMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.hadoop.hbase.Coprocessor
getServices, start, stopMethods inherited from interface org.apache.hadoop.hbase.coprocessor.MasterObserver
postAbortProcedure, postAddReplicationPeer, postAddRSGroup, postAssign, postBalance, postBalanceRSGroup, postBalanceSwitch, postClearDeadServers, postCloneSnapshot, postCompletedCreateTableAction, postCompletedDeleteTableAction, postCompletedDisableTableAction, postCompletedEnableTableAction, postCompletedMergeRegionsAction, postCompletedModifyTableAction, postCompletedSnapshotAction, postCompletedSplitRegionAction, postCompletedTruncateTableAction, postCreateNamespace, postCreateTable, postDecommissionRegionServers, postDeleteNamespace, postDeleteSnapshot, postDeleteTable, postDisableReplicationPeer, postDisableTable, postEnableReplicationPeer, postEnableTable, postGetClusterMetrics, postGetConfiguredNamespacesAndTablesInRSGroup, postGetLocks, postGetNamespaceDescriptor, postGetProcedures, postGetReplicationPeerConfig, postGetRSGroupInfo, postGetRSGroupInfoOfServer, postGetRSGroupInfoOfTable, postGetTableDescriptors, postGetTableNames, postGetUserPermissions, postGrant, postHasUserPermissions, postIsRpcThrottleEnabled, postListDecommissionedRegionServers, postListNamespaceDescriptors, postListNamespaces, postListReplicationPeers, postListRSGroups, postListSnapshot, postListTablesInRSGroup, postLockHeartbeat, postMasterStoreFlush, postMergeRegions, postMergeRegionsCommitAction, postModifyColumnFamilyStoreFileTracker, postModifyNamespace, postModifyTable, postModifyTableStoreFileTracker, postMove, postMoveServers, postMoveServersAndTables, postMoveTables, postRecommissionRegionServer, postRegionOffline, postRemoveReplicationPeer, postRemoveRSGroup, postRemoveServers, postRenameRSGroup, postRequestLock, postRestoreSnapshot, postRevoke, postRollBackMergeRegionsAction, postRollBackSplitRegionAction, postSetNamespaceQuota, postSetRegionServerQuota, postSetSplitOrMergeEnabled, postSetTableQuota, postSetUserQuota, postSetUserQuota, postSetUserQuota, postSnapshot, postStartMaster, postSwitchExceedThrottleQuota, postSwitchRpcThrottle, postTableFlush, postTransitReplicationPeerSyncReplicationState, postTruncateRegion, postTruncateRegionAction, postTruncateTable, postUnassign, postUpdateMasterConfiguration, postUpdateReplicationPeerConfig, postUpdateRSGroupConfig, preAbortProcedure, preAssign, preBalance, preBalanceSwitch, preClearDeadServers, preDecommissionRegionServers, preDisableTable, preDisableTableAction, preEnableTable, preEnableTableAction, preGetClusterMetrics, preGetConfiguredNamespacesAndTablesInRSGroup, preGetLocks, preGetNamespaceDescriptor, preGetProcedures, preGetReplicationPeerConfig, preGetRSGroupInfo, preGetRSGroupInfoOfServer, preGetRSGroupInfoOfTable, preGetTableDescriptors, preGetTableNames, preGetUserPermissions, preHasUserPermissions, preIsRpcThrottleEnabled, preListDecommissionedRegionServers, preListNamespaceDescriptors, preListNamespaces, preListReplicationPeers, preListRSGroups, preListSnapshot, preListTablesInRSGroup, preLockHeartbeat, preMasterInitialization, preMove, preRecommissionRegionServer, preRegionOffline, preRequestLock, preSetSplitOrMergeEnabled, preShutdown, preStopMaster, preSwitchExceedThrottleQuota, preSwitchRpcThrottle, preTableFlush, preUnassign, preUpdateMasterConfiguration
-
Field Details
-
LOG
-
masterServices
-
-
Constructor Details
-
MasterReadOnlyController
public MasterReadOnlyController()
-
-
Method Details
-
getMasterObserver
- Specified by:
getMasterObserverin interfaceMasterCoprocessor
-
preCreateTableRegionsInfos
public TableDescriptor preCreateTableRegionsInfos(ObserverContext<MasterCoprocessorEnvironment> ctx, TableDescriptor desc) throws IOException Description copied from interface:MasterObserverCalled before we create the region infos for this table. Called as part of create table RPC call.- Specified by:
preCreateTableRegionsInfosin interfaceMasterObserver- Parameters:
ctx- the environment to interact with the framework and masterdesc- the TableDescriptor for the table- Returns:
- the TableDescriptor used to create the table. Default is the one passed in. Return
nullmeans cancel the creation. - Throws:
IOException
-
preCreateTable
public void preCreateTable(ObserverContext<MasterCoprocessorEnvironment> ctx, TableDescriptor desc, RegionInfo[] regions) throws IOException Description copied from interface:MasterObserverCalled before a new table is created byHMaster. Called as part of create table RPC call.- Specified by:
preCreateTablein interfaceMasterObserver- Parameters:
ctx- the environment to interact with the framework and masterdesc- the TableDescriptor for the tableregions- the initial regions created for the table- Throws:
IOException
-
preCreateTableAction
public void preCreateTableAction(ObserverContext<MasterCoprocessorEnvironment> ctx, TableDescriptor desc, RegionInfo[] regions) throws IOException Description copied from interface:MasterObserverCalled before a new table is created byHMaster. Called as part of create table procedure and it is async to the create RPC call.- Specified by:
preCreateTableActionin interfaceMasterObserver- Parameters:
ctx- the environment to interact with the framework and masterdesc- the TableDescriptor for the tableregions- the initial regions created for the table- Throws:
IOException
-
preDeleteTable
public void preDeleteTable(ObserverContext<MasterCoprocessorEnvironment> ctx, TableName tableName) throws IOException Description copied from interface:MasterObserverCalled beforeHMasterdeletes a table. Called as part of delete table RPC call.- Specified by:
preDeleteTablein interfaceMasterObserver- Parameters:
ctx- the environment to interact with the framework and mastertableName- the name of the table- Throws:
IOException
-
preDeleteTableAction
public void preDeleteTableAction(ObserverContext<MasterCoprocessorEnvironment> ctx, TableName tableName) throws IOException Description copied from interface:MasterObserverCalled beforeHMasterdeletes a table. Called as part of delete table procedure and it is async to the delete RPC call.- Specified by:
preDeleteTableActionin interfaceMasterObserver- Parameters:
ctx- the environment to interact with the framework and mastertableName- the name of the table- Throws:
IOException
-
preTruncateTable
public void preTruncateTable(ObserverContext<MasterCoprocessorEnvironment> ctx, TableName tableName) throws IOException Description copied from interface:MasterObserverCalled beforeHMastertruncates a table. Called as part of truncate table RPC call.- Specified by:
preTruncateTablein interfaceMasterObserver- Parameters:
ctx- the environment to interact with the framework and mastertableName- the name of the table- Throws:
IOException
-
preTruncateTableAction
public void preTruncateTableAction(ObserverContext<MasterCoprocessorEnvironment> ctx, TableName tableName) throws IOException Description copied from interface:MasterObserverCalled beforeHMastertruncates a table. Called as part of truncate table procedure and it is async to the truncate RPC call.- Specified by:
preTruncateTableActionin interfaceMasterObserver- Parameters:
ctx- the environment to interact with the framework and mastertableName- the name of the table- Throws:
IOException
-
preModifyTable
public TableDescriptor preModifyTable(ObserverContext<MasterCoprocessorEnvironment> ctx, TableName tableName, TableDescriptor currentDescriptor, TableDescriptor newDescriptor) throws IOException Description copied from interface:MasterObserverCalled prior to modifying a table's properties. Called as part of modify table RPC call.- Specified by:
preModifyTablein interfaceMasterObserver- Parameters:
ctx- the environment to interact with the framework and mastertableName- the name of the tablecurrentDescriptor- current TableDescriptor of the tablenewDescriptor- after modify operation, table will have this descriptor- Throws:
IOException
-
preModifyTableStoreFileTracker
public String preModifyTableStoreFileTracker(ObserverContext<MasterCoprocessorEnvironment> ctx, TableName tableName, String dstSFT) throws IOException Description copied from interface:MasterObserverCalled prior to modifying a table's store file tracker. Called as part of modify table store file tracker RPC call.- Specified by:
preModifyTableStoreFileTrackerin interfaceMasterObserver- Parameters:
ctx- the environment to interact with the framework and mastertableName- the name of the tabledstSFT- the store file tracker- Returns:
- the store file tracker
- Throws:
IOException
-
preModifyColumnFamilyStoreFileTracker
public String preModifyColumnFamilyStoreFileTracker(ObserverContext<MasterCoprocessorEnvironment> ctx, TableName tableName, byte[] family, String dstSFT) throws IOException Description copied from interface:MasterObserverCalled prior to modifying a family's store file tracker. Called as part of modify family store file tracker RPC call.- Specified by:
preModifyColumnFamilyStoreFileTrackerin interfaceMasterObserver- Parameters:
ctx- the environment to interact with the framework and mastertableName- the name of the tablefamily- the column familydstSFT- the store file tracker- Returns:
- the store file tracker
- Throws:
IOException
-
preModifyTableAction
public void preModifyTableAction(ObserverContext<MasterCoprocessorEnvironment> ctx, TableName tableName, TableDescriptor currentDescriptor, TableDescriptor newDescriptor) throws IOException Description copied from interface:MasterObserverCalled prior to modifying a table's properties. Called as part of modify table procedure and it is async to the modify table RPC call.- Specified by:
preModifyTableActionin interfaceMasterObserver- Parameters:
ctx- the environment to interact with the framework and mastertableName- the name of the tablecurrentDescriptor- current TableDescriptor of the tablenewDescriptor- after modify operation, table will have this descriptor- Throws:
IOException
-
preSplitRegion
public void preSplitRegion(ObserverContext<MasterCoprocessorEnvironment> c, TableName tableName, byte[] splitRow) throws IOException Description copied from interface:MasterObserverCalled before the split region procedure is called.- Specified by:
preSplitRegionin interfaceMasterObserver- Parameters:
c- the environment to interact with the framework and mastertableName- the table where the region belongs tosplitRow- split point- Throws:
IOException
-
preSplitRegionAction
public void preSplitRegionAction(ObserverContext<MasterCoprocessorEnvironment> c, TableName tableName, byte[] splitRow) throws IOException Description copied from interface:MasterObserverCalled before the region is split.- Specified by:
preSplitRegionActionin interfaceMasterObserver- Parameters:
c- the environment to interact with the framework and mastertableName- the table where the region belongs tosplitRow- split point- Throws:
IOException
-
preSplitRegionBeforeMETAAction
public void preSplitRegionBeforeMETAAction(ObserverContext<MasterCoprocessorEnvironment> ctx, byte[] splitKey, List<Mutation> metaEntries) throws IOException Description copied from interface:MasterObserverThis will be called before update META step as part of split transaction.- Specified by:
preSplitRegionBeforeMETAActionin interfaceMasterObserver- Parameters:
ctx- the environment to interact with the framework and master- Throws:
IOException
-
preSplitRegionAfterMETAAction
public void preSplitRegionAfterMETAAction(ObserverContext<MasterCoprocessorEnvironment> ctx) throws IOException Description copied from interface:MasterObserverThis will be called after update META step as part of split transaction- Specified by:
preSplitRegionAfterMETAActionin interfaceMasterObserver- Parameters:
ctx- the environment to interact with the framework and master- Throws:
IOException
-
preTruncateRegion
public void preTruncateRegion(ObserverContext<MasterCoprocessorEnvironment> c, RegionInfo regionInfo) Description copied from interface:MasterObserverCalled before the truncate region procedure is called.- Specified by:
preTruncateRegionin interfaceMasterObserver- Parameters:
c- The environment to interact with the framework and masterregionInfo- The Region being truncated
-
preTruncateRegionAction
public void preTruncateRegionAction(ObserverContext<MasterCoprocessorEnvironment> c, RegionInfo regionInfo) Description copied from interface:MasterObserverCalled before the region is truncated.- Specified by:
preTruncateRegionActionin interfaceMasterObserver- Parameters:
c- The environment to interact with the framework and masterregionInfo- The Region being truncated
-
preMergeRegionsAction
public void preMergeRegionsAction(ObserverContext<MasterCoprocessorEnvironment> ctx, RegionInfo[] regionsToMerge) throws IOException Description copied from interface:MasterObserverCalled before the regions merge.- Specified by:
preMergeRegionsActionin interfaceMasterObserver- Parameters:
ctx- the environment to interact with the framework and master- Throws:
IOException
-
preMergeRegionsCommitAction
public void preMergeRegionsCommitAction(ObserverContext<MasterCoprocessorEnvironment> ctx, RegionInfo[] regionsToMerge, List<Mutation> metaEntries) throws IOException Description copied from interface:MasterObserverThis will be called before update META step as part of regions merge transaction.- Specified by:
preMergeRegionsCommitActionin interfaceMasterObserver- Parameters:
ctx- the environment to interact with the framework and mastermetaEntries- mutations to execute on hbase:meta atomically with regions merge updates. Any puts or deletes to execute on hbase:meta can be added to the mutations.- Throws:
IOException
-
preSnapshot
public void preSnapshot(ObserverContext<MasterCoprocessorEnvironment> ctx, SnapshotDescription snapshot, TableDescriptor tableDescriptor) throws IOException Description copied from interface:MasterObserverCalled before a new snapshot is taken. Called as part of snapshot RPC call.- Specified by:
preSnapshotin interfaceMasterObserver- Parameters:
ctx- the environment to interact with the framework and mastersnapshot- the SnapshotDescriptor for the snapshottableDescriptor- the TableDescriptor of the table to snapshot- Throws:
IOException
-
preCloneSnapshot
public void preCloneSnapshot(ObserverContext<MasterCoprocessorEnvironment> ctx, SnapshotDescription snapshot, TableDescriptor tableDescriptor) throws IOException Description copied from interface:MasterObserverCalled before a snapshot is cloned. Called as part of restoreSnapshot RPC call.- Specified by:
preCloneSnapshotin interfaceMasterObserver- Parameters:
ctx- the environment to interact with the framework and mastersnapshot- the SnapshotDescriptor for the snapshottableDescriptor- the TableDescriptor of the table to create- Throws:
IOException
-
preRestoreSnapshot
public void preRestoreSnapshot(ObserverContext<MasterCoprocessorEnvironment> ctx, SnapshotDescription snapshot, TableDescriptor tableDescriptor) throws IOException Description copied from interface:MasterObserverCalled before a snapshot is restored. Called as part of restoreSnapshot RPC call.- Specified by:
preRestoreSnapshotin interfaceMasterObserver- Parameters:
ctx- the environment to interact with the framework and mastersnapshot- the SnapshotDescriptor for the snapshottableDescriptor- the TableDescriptor of the table to restore- Throws:
IOException
-
preDeleteSnapshot
public void preDeleteSnapshot(ObserverContext<MasterCoprocessorEnvironment> ctx, SnapshotDescription snapshot) throws IOException Description copied from interface:MasterObserverCalled before a snapshot is deleted. Called as part of deleteSnapshot RPC call.- Specified by:
preDeleteSnapshotin interfaceMasterObserver- Parameters:
ctx- the environment to interact with the framework and mastersnapshot- the SnapshotDescriptor of the snapshot to delete- Throws:
IOException
-
preCreateNamespace
public void preCreateNamespace(ObserverContext<MasterCoprocessorEnvironment> ctx, NamespaceDescriptor ns) throws IOException Description copied from interface:MasterObserverCalled before a new namespace is created byHMaster.- Specified by:
preCreateNamespacein interfaceMasterObserver- Parameters:
ctx- the environment to interact with the framework and masterns- the NamespaceDescriptor for the table- Throws:
IOException
-
preModifyNamespace
public void preModifyNamespace(ObserverContext<MasterCoprocessorEnvironment> ctx, NamespaceDescriptor currentNsDescriptor, NamespaceDescriptor newNsDescriptor) throws IOException Description copied from interface:MasterObserverCalled prior to modifying a namespace's properties.- Specified by:
preModifyNamespacein interfaceMasterObserver- Parameters:
ctx- the environment to interact with the framework and mastercurrentNsDescriptor- current NamespaceDescriptor of the namespacenewNsDescriptor- after modify operation, namespace will have this descriptor- Throws:
IOException
-
preDeleteNamespace
public void preDeleteNamespace(ObserverContext<MasterCoprocessorEnvironment> ctx, String namespace) throws IOException Description copied from interface:MasterObserverCalled beforeHMasterdeletes a namespace- Specified by:
preDeleteNamespacein interfaceMasterObserver- Parameters:
ctx- the environment to interact with the framework and masternamespace- the name of the namespace- Throws:
IOException
-
preMasterStoreFlush
public void preMasterStoreFlush(ObserverContext<MasterCoprocessorEnvironment> ctx) throws IOException Description copied from interface:MasterObserverCalled before the master local region memstore is flushed to disk.- Specified by:
preMasterStoreFlushin interfaceMasterObserver- Parameters:
ctx- the environment to interact with the framework and master- Throws:
IOException
-
preSetUserQuota
public void preSetUserQuota(ObserverContext<MasterCoprocessorEnvironment> ctx, String userName, GlobalQuotaSettings quotas) throws IOException Description copied from interface:MasterObserverCalled before the quota for the user is stored.- Specified by:
preSetUserQuotain interfaceMasterObserver- Parameters:
ctx- the environment to interact with the framework and masteruserName- the name of userquotas- the current quota for the user- Throws:
IOException
-
preSetUserQuota
public void preSetUserQuota(ObserverContext<MasterCoprocessorEnvironment> ctx, String userName, TableName tableName, GlobalQuotaSettings quotas) throws IOException Description copied from interface:MasterObserverCalled before the quota for the user on the specified table is stored.- Specified by:
preSetUserQuotain interfaceMasterObserver- Parameters:
ctx- the environment to interact with the framework and masteruserName- the name of usertableName- the name of the tablequotas- the current quota for the user on the table- Throws:
IOException
-
preSetUserQuota
public void preSetUserQuota(ObserverContext<MasterCoprocessorEnvironment> ctx, String userName, String namespace, GlobalQuotaSettings quotas) throws IOException Description copied from interface:MasterObserverCalled before the quota for the user on the specified namespace is stored.- Specified by:
preSetUserQuotain interfaceMasterObserver- Parameters:
ctx- the environment to interact with the framework and masteruserName- the name of usernamespace- the name of the namespacequotas- the current quota for the user on the namespace- Throws:
IOException
-
preSetTableQuota
public void preSetTableQuota(ObserverContext<MasterCoprocessorEnvironment> ctx, TableName tableName, GlobalQuotaSettings quotas) throws IOException Description copied from interface:MasterObserverCalled before the quota for the table is stored.- Specified by:
preSetTableQuotain interfaceMasterObserver- Parameters:
ctx- the environment to interact with the framework and mastertableName- the name of the tablequotas- the current quota for the table- Throws:
IOException
-
preSetNamespaceQuota
public void preSetNamespaceQuota(ObserverContext<MasterCoprocessorEnvironment> ctx, String namespace, GlobalQuotaSettings quotas) throws IOException Description copied from interface:MasterObserverCalled before the quota for the namespace is stored.- Specified by:
preSetNamespaceQuotain interfaceMasterObserver- Parameters:
ctx- the environment to interact with the framework and masternamespace- the name of the namespacequotas- the current quota for the namespace- Throws:
IOException
-
preSetRegionServerQuota
public void preSetRegionServerQuota(ObserverContext<MasterCoprocessorEnvironment> ctx, String regionServer, GlobalQuotaSettings quotas) throws IOException Description copied from interface:MasterObserverCalled before the quota for the region server is stored.- Specified by:
preSetRegionServerQuotain interfaceMasterObserver- Parameters:
ctx- the environment to interact with the framework and masterregionServer- the name of the region serverquotas- the current quota for the region server- Throws:
IOException
-
preMergeRegions
public void preMergeRegions(ObserverContext<MasterCoprocessorEnvironment> ctx, RegionInfo[] regionsToMerge) throws IOException Description copied from interface:MasterObserverCalled before merge regions request.- Specified by:
preMergeRegionsin interfaceMasterObserver- Parameters:
ctx- coprocessor environmentregionsToMerge- regions to be merged- Throws:
IOException
-
preMoveServersAndTables
public void preMoveServersAndTables(ObserverContext<MasterCoprocessorEnvironment> ctx, Set<Address> servers, Set<TableName> tables, String targetGroup) throws IOException Description copied from interface:MasterObserverCalled before servers are moved to target region server group- Specified by:
preMoveServersAndTablesin interfaceMasterObserver- Parameters:
ctx- the environment to interact with the framework and masterservers- set of servers to movetargetGroup- destination group- Throws:
IOException
-
preMoveServers
public void preMoveServers(ObserverContext<MasterCoprocessorEnvironment> ctx, Set<Address> servers, String targetGroup) throws IOException Description copied from interface:MasterObserverCalled before servers are moved to target region server group- Specified by:
preMoveServersin interfaceMasterObserver- Parameters:
ctx- the environment to interact with the framework and masterservers- set of servers to movetargetGroup- destination group- Throws:
IOException
-
preMoveTables
public void preMoveTables(ObserverContext<MasterCoprocessorEnvironment> ctx, Set<TableName> tables, String targetGroup) throws IOException Description copied from interface:MasterObserverCalled before tables are moved to target region server group- Specified by:
preMoveTablesin interfaceMasterObserver- Parameters:
ctx- the environment to interact with the framework and mastertables- set of tables to movetargetGroup- name of group- Throws:
IOException
-
preAddRSGroup
public void preAddRSGroup(ObserverContext<MasterCoprocessorEnvironment> ctx, String name) throws IOException Description copied from interface:MasterObserverCalled before a new region server group is added- Specified by:
preAddRSGroupin interfaceMasterObserver- Parameters:
ctx- the environment to interact with the framework and mastername- group name- Throws:
IOException
-
preRemoveRSGroup
public void preRemoveRSGroup(ObserverContext<MasterCoprocessorEnvironment> ctx, String name) throws IOException Description copied from interface:MasterObserverCalled before a region server group is removed- Specified by:
preRemoveRSGroupin interfaceMasterObserver- Parameters:
ctx- the environment to interact with the framework and mastername- group name- Throws:
IOException
-
preBalanceRSGroup
public void preBalanceRSGroup(ObserverContext<MasterCoprocessorEnvironment> ctx, String groupName, BalanceRequest request) throws IOException Description copied from interface:MasterObserverCalled before a region server group is removed- Specified by:
preBalanceRSGroupin interfaceMasterObserver- Parameters:
ctx- the environment to interact with the framework and mastergroupName- group name- Throws:
IOException
-
preRemoveServers
public void preRemoveServers(ObserverContext<MasterCoprocessorEnvironment> ctx, Set<Address> servers) throws IOException Description copied from interface:MasterObserverCalled before servers are removed from rsgroup- Specified by:
preRemoveServersin interfaceMasterObserver- Parameters:
ctx- the environment to interact with the framework and masterservers- set of decommissioned servers to remove- Throws:
IOException
-
preRenameRSGroup
public void preRenameRSGroup(ObserverContext<MasterCoprocessorEnvironment> ctx, String oldName, String newName) throws IOException Description copied from interface:MasterObserverCalled before rename rsgroup.- Specified by:
preRenameRSGroupin interfaceMasterObserver- Parameters:
ctx- the environment to interact with the framework and masteroldName- old rsgroup namenewName- new rsgroup name- Throws:
IOException
-
preUpdateRSGroupConfig
public void preUpdateRSGroupConfig(ObserverContext<MasterCoprocessorEnvironment> ctx, String groupName, Map<String, String> configuration) throws IOExceptionDescription copied from interface:MasterObserverCalled before update rsgroup config.- Specified by:
preUpdateRSGroupConfigin interfaceMasterObserver- Parameters:
ctx- the environment to interact with the framework and mastergroupName- the group nameconfiguration- new configuration of the group name to be set- Throws:
IOException
-
preAddReplicationPeer
public void preAddReplicationPeer(ObserverContext<MasterCoprocessorEnvironment> ctx, String peerId, ReplicationPeerConfig peerConfig) throws IOException Description copied from interface:MasterObserverCalled before add a replication peer- Specified by:
preAddReplicationPeerin interfaceMasterObserver- Parameters:
ctx- the environment to interact with the framework and masterpeerId- a short name that identifies the peerpeerConfig- configuration for the replication peer- Throws:
IOException
-
preRemoveReplicationPeer
public void preRemoveReplicationPeer(ObserverContext<MasterCoprocessorEnvironment> ctx, String peerId) throws IOException Description copied from interface:MasterObserverCalled before remove a replication peer- Specified by:
preRemoveReplicationPeerin interfaceMasterObserverpeerId- a short name that identifies the peer- Throws:
IOException
-
preEnableReplicationPeer
public void preEnableReplicationPeer(ObserverContext<MasterCoprocessorEnvironment> ctx, String peerId) throws IOException Description copied from interface:MasterObserverCalled before enable a replication peer- Specified by:
preEnableReplicationPeerin interfaceMasterObserverpeerId- a short name that identifies the peer- Throws:
IOException
-
preDisableReplicationPeer
public void preDisableReplicationPeer(ObserverContext<MasterCoprocessorEnvironment> ctx, String peerId) throws IOException Description copied from interface:MasterObserverCalled before disable a replication peer- Specified by:
preDisableReplicationPeerin interfaceMasterObserverpeerId- a short name that identifies the peer- Throws:
IOException
-
preUpdateReplicationPeerConfig
public void preUpdateReplicationPeerConfig(ObserverContext<MasterCoprocessorEnvironment> ctx, String peerId, ReplicationPeerConfig peerConfig) throws IOException Description copied from interface:MasterObserverCalled before update peerConfig for the specified peer- Specified by:
preUpdateReplicationPeerConfigin interfaceMasterObserverpeerId- a short name that identifies the peer- Throws:
IOException
-
preTransitReplicationPeerSyncReplicationState
public void preTransitReplicationPeerSyncReplicationState(ObserverContext<MasterCoprocessorEnvironment> ctx, String peerId, SyncReplicationState state) throws IOException Description copied from interface:MasterObserverCalled before transit current cluster state for the specified synchronous replication peer- Specified by:
preTransitReplicationPeerSyncReplicationStatein interfaceMasterObserver- Parameters:
ctx- the environment to interact with the framework and masterpeerId- a short name that identifies the peerstate- the new state- Throws:
IOException
-
preGrant
public void preGrant(ObserverContext<MasterCoprocessorEnvironment> ctx, UserPermission userPermission, boolean mergeExistingPermissions) throws IOException Description copied from interface:MasterObserverCalled before granting user permissions.- Specified by:
preGrantin interfaceMasterObserver- Parameters:
ctx- the coprocessor instance's environmentuserPermission- the user and permissionsmergeExistingPermissions- True if merge with previous granted permissions- Throws:
IOException
-
preRevoke
public void preRevoke(ObserverContext<MasterCoprocessorEnvironment> ctx, UserPermission userPermission) throws IOException Description copied from interface:MasterObserverCalled before revoking user permissions.- Specified by:
preRevokein interfaceMasterObserver- Parameters:
ctx- the coprocessor instance's environmentuserPermission- the user and permissions- Throws:
IOException
-