@InterfaceAudience.LimitedPrivate(value="Coprocesssor") @InterfaceStability.Evolving public interface MasterObserver extends Coprocessor
HMaster process.
IOException are reported back to client.CoprocessorHost.ABORT_ON_ERROR_KEY is set to true, then
the server aborts.DoNotRetryIOException is returned to the client.Coprocessor.StatePRIORITY_HIGHEST, PRIORITY_LOWEST, PRIORITY_SYSTEM, PRIORITY_USER, VERSION| Modifier and Type | Method and Description |
|---|---|
default void |
postAbortProcedure(ObserverContext<MasterCoprocessorEnvironment> ctx)
Called after a abortProcedure request has been processed.
|
default void |
postAddColumn(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName,
HColumnDescriptor columnFamily)
Deprecated.
As of release 2.0.0, this will be removed in HBase 3.0.0
(HBASE-13645).
Use
postAddColumnFamily(ObserverContext, TableName, HColumnDescriptor). |
default void |
postAddColumnFamily(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName,
HColumnDescriptor columnFamily)
Called after the new column family has been created.
|
default void |
postAddColumnHandler(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName,
HColumnDescriptor columnFamily)
Deprecated.
As of release 2.0.0, this will be removed in HBase 3.0.0
(HBASE-13645). Use
postCompletedAddColumnFamilyAction(ObserverContext, TableName, HColumnDescriptor). |
default void |
postAddReplicationPeer(ObserverContext<MasterCoprocessorEnvironment> ctx,
String peerId,
ReplicationPeerConfig peerConfig)
Called after add a replication peer
|
default void |
postAddRSGroup(ObserverContext<MasterCoprocessorEnvironment> ctx,
String name)
Called after a new region server group is added
|
default void |
postAssign(ObserverContext<MasterCoprocessorEnvironment> ctx,
HRegionInfo regionInfo)
Called after the region assignment has been requested.
|
default void |
postBalance(ObserverContext<MasterCoprocessorEnvironment> ctx,
List<RegionPlan> plans)
Called after the balancing plan has been submitted.
|
default void |
postBalanceRSGroup(ObserverContext<MasterCoprocessorEnvironment> ctx,
String groupName,
boolean balancerRan)
Called after a region server group is removed
|
default void |
postBalanceSwitch(ObserverContext<MasterCoprocessorEnvironment> ctx,
boolean oldValue,
boolean newValue)
Called after the flag to enable/disable balancing has changed.
|
default void |
postCloneSnapshot(ObserverContext<MasterCoprocessorEnvironment> ctx,
org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotDescription snapshot,
HTableDescriptor hTableDescriptor)
Called after a snapshot clone operation has been requested.
|
default void |
postCompletedAddColumnFamilyAction(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName,
HColumnDescriptor columnFamily)
Called after the new column family has been created.
|
default void |
postCompletedCreateTableAction(ObserverContext<MasterCoprocessorEnvironment> ctx,
HTableDescriptor desc,
HRegionInfo[] regions)
Called after the createTable operation has been requested.
|
default void |
postCompletedDeleteColumnFamilyAction(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName,
byte[] columnFamily)
Called after the column family has been deleted.
|
default void |
postCompletedDeleteTableAction(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName)
Called after
HMaster deletes a
table. |
default void |
postCompletedDisableTableAction(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName)
Called after the disableTable operation has been requested.
|
default void |
postCompletedEnableTableAction(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName)
Called after the enableTable operation has been requested.
|
default void |
postCompletedMergeRegionsAction(ObserverContext<MasterCoprocessorEnvironment> ctx,
HRegionInfo[] regionsToMerge,
HRegionInfo mergedRegion)
called after the regions merge.
|
default void |
postCompletedModifyColumnFamilyAction(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName,
HColumnDescriptor columnFamily)
Called after the column family has been updated.
|
default void |
postCompletedModifyTableAction(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName,
HTableDescriptor htd)
Called after to modifying a table's properties.
|
default void |
postCompletedSplitRegionAction(ObserverContext<MasterCoprocessorEnvironment> c,
HRegionInfo regionInfoA,
HRegionInfo regionInfoB)
Called after the region is split.
|
default void |
postCompletedTruncateTableAction(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName)
Called after
HMaster truncates a
table. |
default void |
postCreateNamespace(ObserverContext<MasterCoprocessorEnvironment> ctx,
NamespaceDescriptor ns)
Called after the createNamespace operation has been requested.
|
default void |
postCreateTable(ObserverContext<MasterCoprocessorEnvironment> ctx,
HTableDescriptor desc,
HRegionInfo[] regions)
Called after the createTable operation has been requested.
|
default void |
postCreateTableHandler(ObserverContext<MasterCoprocessorEnvironment> ctx,
HTableDescriptor desc,
HRegionInfo[] regions)
Deprecated.
As of release 2.0.0, this will be removed in HBase 3.0.0
(HBASE-15575).
Use
postCompletedCreateTableAction(ObserverContext, HTableDescriptor, HRegionInfo[]) |
default void |
postDeleteColumn(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName,
byte[] columnFamily)
Deprecated.
As of release 2.0.0, this will be removed in HBase 3.0.0
(HBASE-13645).
Use
postDeleteColumnFamily(ObserverContext, TableName, byte[]). |
default void |
postDeleteColumnFamily(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName,
byte[] columnFamily)
Called after the column family has been deleted.
|
default void |
postDeleteColumnHandler(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName,
byte[] columnFamily)
Deprecated.
As of release 2.0.0, this will be removed in HBase 3.0.0
(HBASE-13645).
Use
postCompletedDeleteColumnFamilyAction(ObserverContext, TableName, byte[]). |
default void |
postDeleteNamespace(ObserverContext<MasterCoprocessorEnvironment> ctx,
String namespace)
Called after the deleteNamespace operation has been requested.
|
default void |
postDeleteSnapshot(ObserverContext<MasterCoprocessorEnvironment> ctx,
org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotDescription snapshot)
Called after the delete snapshot operation has been requested.
|
default void |
postDeleteTable(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName)
Called after the deleteTable operation has been requested.
|
default void |
postDeleteTableHandler(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName)
Deprecated.
As of release 2.0.0, this will be removed in HBase 3.0.0
(HBASE-15575).
Use
postCompletedDeleteTableAction(ObserverContext, TableName). |
default void |
postDisableReplicationPeer(ObserverContext<MasterCoprocessorEnvironment> ctx,
String peerId)
Called after disable a replication peer
|
default void |
postDisableTable(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName)
Called after the disableTable operation has been requested.
|
default void |
postDisableTableHandler(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName)
Deprecated.
As of release 2.0.0, this will be removed in HBase 3.0.0
(HBASE-15575).
Use
postCompletedDisableTableAction(ObserverContext, TableName). |
default void |
postDispatchMerge(ObserverContext<MasterCoprocessorEnvironment> c,
HRegionInfo regionA,
HRegionInfo regionB)
Deprecated.
As of release 2.0.0, this will be removed in HBase 3.0.0
(HBASE-).
Use
postMergeRegions(ObserverContext, HRegionInfo[]) |
default void |
postEnableReplicationPeer(ObserverContext<MasterCoprocessorEnvironment> ctx,
String peerId)
Called after enable a replication peer
|
default void |
postEnableTable(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName)
Called after the enableTable operation has been requested.
|
default void |
postEnableTableHandler(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName)
Deprecated.
As of release 2.0.0, this will be removed in HBase 3.0.0
(HBASE-15575).
Use
postCompletedEnableTableAction(ObserverContext, TableName). |
default void |
postGetNamespaceDescriptor(ObserverContext<MasterCoprocessorEnvironment> ctx,
NamespaceDescriptor ns)
Called after a getNamespaceDescriptor request has been processed.
|
default void |
postGetReplicationPeerConfig(ObserverContext<MasterCoprocessorEnvironment> ctx,
String peerId)
Called after get the configured ReplicationPeerConfig for the specified peer
|
default void |
postGetTableDescriptors(ObserverContext<MasterCoprocessorEnvironment> ctx,
List<TableName> tableNamesList,
List<HTableDescriptor> descriptors,
String regex)
Called after a getTableDescriptors request has been processed.
|
default void |
postGetTableNames(ObserverContext<MasterCoprocessorEnvironment> ctx,
List<HTableDescriptor> descriptors,
String regex)
Called after a getTableNames request has been processed.
|
default void |
postListLocks(ObserverContext<MasterCoprocessorEnvironment> ctx,
List<LockInfo> lockInfoList)
Called after a listLocks request has been processed.
|
default void |
postListNamespaceDescriptors(ObserverContext<MasterCoprocessorEnvironment> ctx,
List<NamespaceDescriptor> descriptors)
Called after a listNamespaceDescriptors request has been processed.
|
default void |
postListProcedures(ObserverContext<MasterCoprocessorEnvironment> ctx,
List<ProcedureInfo> procInfoList)
Called after a listProcedures request has been processed.
|
default void |
postListReplicationPeers(ObserverContext<MasterCoprocessorEnvironment> ctx,
String regex)
Called after list replication peers.
|
default void |
postListSnapshot(ObserverContext<MasterCoprocessorEnvironment> ctx,
org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotDescription snapshot)
Called after listSnapshots request has been processed.
|
default void |
postLockHeartbeat(ObserverContext<MasterCoprocessorEnvironment> ctx,
LockProcedure proc,
boolean keepAlive)
Called after heartbeat to a lock.
|
default void |
postMergeRegions(ObserverContext<MasterCoprocessorEnvironment> c,
HRegionInfo[] regionsToMerge)
called after merge regions request.
|
default void |
postMergeRegionsCommitAction(ObserverContext<MasterCoprocessorEnvironment> ctx,
HRegionInfo[] regionsToMerge,
HRegionInfo mergedRegion)
This will be called after PONR step as part of regions merge transaction.
|
default void |
postModifyColumn(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName,
HColumnDescriptor columnFamily)
Deprecated.
As of release 2.0.0, this will be removed in HBase 3.0.0
(HBASE-13645).
Use
postModifyColumnFamily(ObserverContext, TableName, HColumnDescriptor). |
default void |
postModifyColumnFamily(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName,
HColumnDescriptor columnFamily)
Called after the column family has been updated.
|
default void |
postModifyColumnHandler(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName,
HColumnDescriptor columnFamily)
Deprecated.
As of release 2.0.0, this will be removed in HBase 3.0.0
(HBASE-13645). Use
postCompletedModifyColumnFamilyAction(ObserverContext,TableName,HColumnDescriptor). |
default void |
postModifyNamespace(ObserverContext<MasterCoprocessorEnvironment> ctx,
NamespaceDescriptor ns)
Called after the modifyNamespace operation has been requested.
|
default void |
postModifyTable(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName,
HTableDescriptor htd)
Called after the modifyTable operation has been requested.
|
default void |
postModifyTableHandler(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName,
HTableDescriptor htd)
Deprecated.
As of release 2.0.0, this will be removed in HBase 3.0.0
(HBASE-13645).
Use
postCompletedModifyTableAction(ObserverContext, TableName, HTableDescriptor). |
default void |
postMove(ObserverContext<MasterCoprocessorEnvironment> ctx,
HRegionInfo region,
ServerName srcServer,
ServerName destServer)
Called after the region move has been requested.
|
default void |
postMoveServers(ObserverContext<MasterCoprocessorEnvironment> ctx,
Set<Address> servers,
String targetGroup)
Called after servers are moved to target region server group
|
default void |
postMoveServersAndTables(ObserverContext<MasterCoprocessorEnvironment> ctx,
Set<Address> servers,
Set<TableName> tables,
String targetGroup)
Called after servers are moved to target region server group
|
default void |
postMoveTables(ObserverContext<MasterCoprocessorEnvironment> ctx,
Set<TableName> tables,
String targetGroup)
Called after servers are moved to target region server group
|
default void |
postRegionOffline(ObserverContext<MasterCoprocessorEnvironment> ctx,
HRegionInfo regionInfo)
Called after the region has been marked offline.
|
default void |
postRemoveReplicationPeer(ObserverContext<MasterCoprocessorEnvironment> ctx,
String peerId)
Called after remove a replication peer
|
default void |
postRemoveRSGroup(ObserverContext<MasterCoprocessorEnvironment> ctx,
String name)
Called after a region server group is removed
|
default void |
postRequestLock(ObserverContext<MasterCoprocessorEnvironment> ctx,
String namespace,
TableName tableName,
HRegionInfo[] regionInfos,
LockProcedure.LockType type,
String description)
Called after new LockProcedure is queued.
|
default void |
postRestoreSnapshot(ObserverContext<MasterCoprocessorEnvironment> ctx,
org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotDescription snapshot,
HTableDescriptor hTableDescriptor)
Called after a snapshot restore operation has been requested.
|
default void |
postRollBackMergeRegionsAction(ObserverContext<MasterCoprocessorEnvironment> ctx,
HRegionInfo[] regionsToMerge)
This will be called after the roll back of the regions merge.
|
default void |
postRollBackSplitRegionAction(ObserverContext<MasterCoprocessorEnvironment> ctx)
This will be called after the roll back of the split region is completed
|
default void |
postSetNamespaceQuota(ObserverContext<MasterCoprocessorEnvironment> ctx,
String namespace,
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas quotas)
Called after the quota for the namespace is stored.
|
default void |
postSetSplitOrMergeEnabled(ObserverContext<MasterCoprocessorEnvironment> ctx,
boolean newValue,
MasterSwitchType switchType)
Called after setting split / merge switch
|
default void |
postSetTableQuota(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName,
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas quotas)
Called after the quota for the table is stored.
|
default void |
postSetUserQuota(ObserverContext<MasterCoprocessorEnvironment> ctx,
String userName,
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas quotas)
Called after the quota for the user is stored.
|
default void |
postSetUserQuota(ObserverContext<MasterCoprocessorEnvironment> ctx,
String userName,
String namespace,
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas quotas)
Called after the quota for the user on the specified namespace is stored.
|
default void |
postSetUserQuota(ObserverContext<MasterCoprocessorEnvironment> ctx,
String userName,
TableName tableName,
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas quotas)
Called after the quota for the user on the specified table is stored.
|
default void |
postSnapshot(ObserverContext<MasterCoprocessorEnvironment> ctx,
org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotDescription snapshot,
HTableDescriptor hTableDescriptor)
Called after the snapshot operation has been requested.
|
default void |
postStartMaster(ObserverContext<MasterCoprocessorEnvironment> ctx)
Called immediately after an active master instance has completed
initialization.
|
default void |
postTableFlush(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName)
Called after the table memstore is flushed to disk.
|
default void |
postTruncateTable(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName)
Called after the truncateTable operation has been requested.
|
default void |
postTruncateTableHandler(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName)
Deprecated.
As of release 2.0.0, this will be removed in HBase 3.0.0
(HBASE-15575).
Use
postCompletedTruncateTableAction(ObserverContext, TableName). |
default void |
postUnassign(ObserverContext<MasterCoprocessorEnvironment> ctx,
HRegionInfo regionInfo,
boolean force)
Called after the region unassignment has been requested.
|
default void |
postUpdateReplicationPeerConfig(ObserverContext<MasterCoprocessorEnvironment> ctx,
String peerId,
ReplicationPeerConfig peerConfig)
Called after update peerConfig for the specified peer
|
default void |
preAbortProcedure(ObserverContext<MasterCoprocessorEnvironment> ctx,
ProcedureExecutor<MasterProcedureEnv> procEnv,
long procId)
Called before a abortProcedure request has been processed.
|
default void |
preAddColumn(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName,
HColumnDescriptor columnFamily)
Deprecated.
As of release 2.0.0, this will be removed in HBase 3.0.0
(HBASE-13645).
Use
preAddColumnFamily(ObserverContext, TableName, HColumnDescriptor). |
default void |
preAddColumnFamily(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName,
HColumnDescriptor columnFamily)
Called prior to adding a new column family to the table.
|
default void |
preAddColumnFamilyAction(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName,
HColumnDescriptor columnFamily)
Called prior to adding a new column family to the table.
|
default void |
preAddColumnHandler(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName,
HColumnDescriptor columnFamily)
Deprecated.
As of release 2.0.0, this will be removed in HBase 3.0.0
(HBASE-13645). Use
preAddColumnFamilyAction(ObserverContext, TableName, HColumnDescriptor). |
default void |
preAddReplicationPeer(ObserverContext<MasterCoprocessorEnvironment> ctx,
String peerId,
ReplicationPeerConfig peerConfig)
Called before add a replication peer
|
default void |
preAddRSGroup(ObserverContext<MasterCoprocessorEnvironment> ctx,
String name)
Called before a new region server group is added
|
default void |
preAssign(ObserverContext<MasterCoprocessorEnvironment> ctx,
HRegionInfo regionInfo)
Called prior to assigning a specific region.
|
default void |
preBalance(ObserverContext<MasterCoprocessorEnvironment> ctx)
Called prior to requesting rebalancing of the cluster regions, though after
the initial checks for regions in transition and the balance switch flag.
|
default void |
preBalanceRSGroup(ObserverContext<MasterCoprocessorEnvironment> ctx,
String groupName)
Called before a region server group is removed
|
default boolean |
preBalanceSwitch(ObserverContext<MasterCoprocessorEnvironment> ctx,
boolean newValue)
Called prior to modifying the flag used to enable/disable region balancing.
|
default void |
preCloneSnapshot(ObserverContext<MasterCoprocessorEnvironment> ctx,
org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotDescription snapshot,
HTableDescriptor hTableDescriptor)
Called before a snapshot is cloned.
|
default void |
preCreateNamespace(ObserverContext<MasterCoprocessorEnvironment> ctx,
NamespaceDescriptor ns)
Called before a new namespace is created by
HMaster. |
default void |
preCreateTable(ObserverContext<MasterCoprocessorEnvironment> ctx,
HTableDescriptor desc,
HRegionInfo[] regions)
Called before a new table is created by
HMaster. |
default void |
preCreateTableAction(ObserverContext<MasterCoprocessorEnvironment> ctx,
HTableDescriptor desc,
HRegionInfo[] regions)
Called before a new table is created by
HMaster. |
default void |
preCreateTableHandler(ObserverContext<MasterCoprocessorEnvironment> ctx,
HTableDescriptor desc,
HRegionInfo[] regions)
Deprecated.
As of release 2.0.0, this will be removed in HBase 3.0.0
(HBASE-15575).
Use
preCreateTableAction(ObserverContext, HTableDescriptor, HRegionInfo[]). |
default void |
preDeleteColumn(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName,
byte[] columnFamily)
Deprecated.
As of release 2.0.0, this will be removed in HBase 3.0.0
(HBASE-13645).
Use
preDeleteColumnFamily(ObserverContext, TableName, byte[]). |
default void |
preDeleteColumnFamily(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName,
byte[] columnFamily)
Called prior to deleting the entire column family.
|
default void |
preDeleteColumnFamilyAction(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName,
byte[] columnFamily)
Called prior to deleting the entire column family.
|
default void |
preDeleteColumnHandler(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName,
byte[] columnFamily)
Deprecated.
As of release 2.0.0, this will be removed in HBase 3.0.0
(HBASE-13645).
Use
preDeleteColumnFamilyAction(ObserverContext, TableName, byte[]). |
default void |
preDeleteNamespace(ObserverContext<MasterCoprocessorEnvironment> ctx,
String namespace)
Called before
HMaster deletes a
namespace
It can't bypass the default action, e.g., ctx.bypass() won't have effect. |
default void |
preDeleteSnapshot(ObserverContext<MasterCoprocessorEnvironment> ctx,
org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotDescription snapshot)
Called before a snapshot is deleted.
|
default void |
preDeleteTable(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName)
Called before
HMaster deletes a
table. |
default void |
preDeleteTableAction(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName)
Called before
HMaster deletes a
table. |
default void |
preDeleteTableHandler(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName)
Deprecated.
As of release 2.0.0, this will be removed in HBase 3.0.0
(HBASE-15575).
Use
preDeleteTableAction(ObserverContext, TableName). |
default void |
preDisableReplicationPeer(ObserverContext<MasterCoprocessorEnvironment> ctx,
String peerId)
Called before disable a replication peer
|
default void |
preDisableTable(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName)
Called prior to disabling a table.
|
default void |
preDisableTableAction(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName)
Called prior to disabling a table.
|
default void |
preDisableTableHandler(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName)
Deprecated.
As of release 2.0.0, this will be removed in HBase 3.0.0
(HBASE-15575).
Use
preDisableTableAction(ObserverContext, TableName). |
default void |
preDispatchMerge(ObserverContext<MasterCoprocessorEnvironment> ctx,
HRegionInfo regionA,
HRegionInfo regionB)
Deprecated.
As of release 2.0.0, this will be removed in HBase 3.0.0
(HBASE-).
Use
preMergeRegions(ObserverContext, HRegionInfo[]) |
default void |
preEnableReplicationPeer(ObserverContext<MasterCoprocessorEnvironment> ctx,
String peerId)
Called before enable a replication peer
|
default void |
preEnableTable(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName)
Called prior to enabling a table.
|
default void |
preEnableTableAction(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName)
Called prior to enabling a table.
|
default void |
preEnableTableHandler(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName)
Deprecated.
As of release 2.0.0, this will be removed in HBase 3.0.0
(HBASE-15575).
Use
preEnableTableAction(ObserverContext, TableName). |
default void |
preGetNamespaceDescriptor(ObserverContext<MasterCoprocessorEnvironment> ctx,
String namespace)
Called before a getNamespaceDescriptor request has been processed.
|
default void |
preGetReplicationPeerConfig(ObserverContext<MasterCoprocessorEnvironment> ctx,
String peerId)
Called before get the configured ReplicationPeerConfig for the specified peer
|
default void |
preGetTableDescriptors(ObserverContext<MasterCoprocessorEnvironment> ctx,
List<TableName> tableNamesList,
List<HTableDescriptor> descriptors,
String regex)
Called before a getTableDescriptors request has been processed.
|
default void |
preGetTableNames(ObserverContext<MasterCoprocessorEnvironment> ctx,
List<HTableDescriptor> descriptors,
String regex)
Called before a getTableNames request has been processed.
|
default void |
preListLocks(ObserverContext<MasterCoprocessorEnvironment> ctx)
Called before a listLocks request has been processed.
|
default void |
preListNamespaceDescriptors(ObserverContext<MasterCoprocessorEnvironment> ctx,
List<NamespaceDescriptor> descriptors)
Called before a listNamespaceDescriptors request has been processed.
|
default void |
preListProcedures(ObserverContext<MasterCoprocessorEnvironment> ctx)
Called before a listProcedures request has been processed.
|
default void |
preListReplicationPeers(ObserverContext<MasterCoprocessorEnvironment> ctx,
String regex)
Called before list replication peers.
|
default void |
preListSnapshot(ObserverContext<MasterCoprocessorEnvironment> ctx,
org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotDescription snapshot)
Called before listSnapshots request has been processed.
|
default void |
preLockHeartbeat(ObserverContext<MasterCoprocessorEnvironment> ctx,
LockProcedure proc,
boolean keepAlive)
Called before heartbeat to a lock.
|
default void |
preMasterInitialization(ObserverContext<MasterCoprocessorEnvironment> ctx)
Call before the master initialization is set to true.
|
default void |
preMergeRegions(ObserverContext<MasterCoprocessorEnvironment> ctx,
HRegionInfo[] regionsToMerge)
Called before merge regions request.
|
default void |
preMergeRegionsAction(ObserverContext<MasterCoprocessorEnvironment> ctx,
HRegionInfo[] regionsToMerge)
Called before the regions merge.
|
default void |
preMergeRegionsCommitAction(ObserverContext<MasterCoprocessorEnvironment> ctx,
HRegionInfo[] regionsToMerge,
List<Mutation> metaEntries)
This will be called before PONR step as part of regions merge transaction.
|
default void |
preModifyColumn(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName,
HColumnDescriptor columnFamily)
Deprecated.
As of release 2.0.0, this will be removed in HBase 3.0.0
(HBASE-13645).
Use
preModifyColumnFamily(ObserverContext, TableName, HColumnDescriptor). |
default void |
preModifyColumnFamily(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName,
HColumnDescriptor columnFamily)
Called prior to modifying a column family's attributes.
|
default void |
preModifyColumnFamilyAction(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName,
HColumnDescriptor columnFamily)
Called prior to modifying a column family's attributes.
|
default void |
preModifyColumnHandler(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName,
HColumnDescriptor columnFamily)
Deprecated.
As of release 2.0.0, this will be removed in HBase 3.0.0
(HBASE-13645).
Use
preModifyColumnFamilyAction(ObserverContext, TableName, HColumnDescriptor). |
default void |
preModifyNamespace(ObserverContext<MasterCoprocessorEnvironment> ctx,
NamespaceDescriptor ns)
Called prior to modifying a namespace's properties.
|
default void |
preModifyTable(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName,
HTableDescriptor htd)
Called prior to modifying a table's properties.
|
default void |
preModifyTableAction(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName,
HTableDescriptor htd)
Called prior to modifying a table's properties.
|
default void |
preModifyTableHandler(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName,
HTableDescriptor htd)
Deprecated.
As of release 2.0.0, this will be removed in HBase 3.0.0
(HBASE-15575).
Use
preModifyTableAction(ObserverContext, TableName, HTableDescriptor). |
default void |
preMove(ObserverContext<MasterCoprocessorEnvironment> ctx,
HRegionInfo region,
ServerName srcServer,
ServerName destServer)
Called prior to moving a given region from one region server to another.
|
default void |
preMoveServers(ObserverContext<MasterCoprocessorEnvironment> ctx,
Set<Address> servers,
String targetGroup)
Called before servers are moved to target region server group
|
default void |
preMoveServersAndTables(ObserverContext<MasterCoprocessorEnvironment> ctx,
Set<Address> servers,
Set<TableName> tables,
String targetGroup)
Called before servers are moved to target region server group
|
default void |
preMoveTables(ObserverContext<MasterCoprocessorEnvironment> ctx,
Set<TableName> tables,
String targetGroup)
Called before tables are moved to target region server group
|
default void |
preRegionOffline(ObserverContext<MasterCoprocessorEnvironment> ctx,
HRegionInfo regionInfo)
Called prior to marking a given region as offline.
|
default void |
preRemoveReplicationPeer(ObserverContext<MasterCoprocessorEnvironment> ctx,
String peerId)
Called before remove a replication peer
|
default void |
preRemoveRSGroup(ObserverContext<MasterCoprocessorEnvironment> ctx,
String name)
Called before a region server group is removed
|
default void |
preRequestLock(ObserverContext<MasterCoprocessorEnvironment> ctx,
String namespace,
TableName tableName,
HRegionInfo[] regionInfos,
LockProcedure.LockType type,
String description)
Called before new LockProcedure is queued.
|
default void |
preRestoreSnapshot(ObserverContext<MasterCoprocessorEnvironment> ctx,
org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotDescription snapshot,
HTableDescriptor hTableDescriptor)
Called before a snapshot is restored.
|
default void |
preSetNamespaceQuota(ObserverContext<MasterCoprocessorEnvironment> ctx,
String namespace,
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas quotas)
Called before the quota for the namespace is stored.
|
default boolean |
preSetSplitOrMergeEnabled(ObserverContext<MasterCoprocessorEnvironment> ctx,
boolean newValue,
MasterSwitchType switchType)
Called prior to setting split / merge switch
|
default void |
preSetTableQuota(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName,
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas quotas)
Called before the quota for the table is stored.
|
default void |
preSetUserQuota(ObserverContext<MasterCoprocessorEnvironment> ctx,
String userName,
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas quotas)
Called before the quota for the user is stored.
|
default void |
preSetUserQuota(ObserverContext<MasterCoprocessorEnvironment> ctx,
String userName,
String namespace,
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas quotas)
Called before the quota for the user on the specified namespace is stored.
|
default void |
preSetUserQuota(ObserverContext<MasterCoprocessorEnvironment> ctx,
String userName,
TableName tableName,
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas quotas)
Called before the quota for the user on the specified table is stored.
|
default void |
preShutdown(ObserverContext<MasterCoprocessorEnvironment> ctx)
Called prior to shutting down the full HBase cluster, including this
HMaster process. |
default void |
preSnapshot(ObserverContext<MasterCoprocessorEnvironment> ctx,
org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotDescription snapshot,
HTableDescriptor hTableDescriptor)
Called before a new snapshot is taken.
|
default void |
preSplitRegion(ObserverContext<MasterCoprocessorEnvironment> c,
TableName tableName,
byte[] splitRow)
Called before the split region procedure is called.
|
default void |
preSplitRegionAction(ObserverContext<MasterCoprocessorEnvironment> c,
TableName tableName,
byte[] splitRow)
Called before the region is split.
|
default void |
preSplitRegionAfterPONRAction(ObserverContext<MasterCoprocessorEnvironment> ctx)
This will be called after PONR step as part of split transaction
Calling
ObserverContext.bypass() has no
effect in this hook. |
default void |
preSplitRegionBeforePONRAction(ObserverContext<MasterCoprocessorEnvironment> ctx,
byte[] splitKey,
List<Mutation> metaEntries)
This will be called before PONR step as part of split transaction.
|
default void |
preStopMaster(ObserverContext<MasterCoprocessorEnvironment> ctx)
Called immediately prior to stopping this
HMaster process. |
default void |
preTableFlush(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName)
Called before the table memstore is flushed to disk.
|
default void |
preTruncateTable(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName)
Called before
HMaster truncates a
table. |
default void |
preTruncateTableAction(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName)
Called before
HMaster truncates a
table. |
default void |
preTruncateTableHandler(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName)
Deprecated.
As of release 2.0.0, this will be removed in HBase 3.0.0
(HBASE-15575).
Use
preTruncateTableAction(ObserverContext, TableName). |
default void |
preUnassign(ObserverContext<MasterCoprocessorEnvironment> ctx,
HRegionInfo regionInfo,
boolean force)
Called prior to unassigning a given region.
|
default void |
preUpdateReplicationPeerConfig(ObserverContext<MasterCoprocessorEnvironment> ctx,
String peerId,
ReplicationPeerConfig peerConfig)
Called before update peerConfig for the specified peer
|
start, stopdefault void preCreateTable(ObserverContext<MasterCoprocessorEnvironment> ctx, HTableDescriptor desc, HRegionInfo[] regions) throws IOException
HMaster. Called as part of create
table RPC call.
It can't bypass the default action, e.g., ctx.bypass() won't have effect.ctx - the environment to interact with the framework and masterdesc - the HTableDescriptor for the tableregions - the initial regions created for the tableIOExceptiondefault void postCreateTable(ObserverContext<MasterCoprocessorEnvironment> ctx, HTableDescriptor desc, HRegionInfo[] regions) throws IOException
ctx - the environment to interact with the framework and masterdesc - the HTableDescriptor for the tableregions - the initial regions created for the tableIOException@Deprecated default void preCreateTableHandler(ObserverContext<MasterCoprocessorEnvironment> ctx, HTableDescriptor desc, HRegionInfo[] regions) throws IOException
preCreateTableAction(ObserverContext, HTableDescriptor, HRegionInfo[]).HMaster. Called as part of create
table handler and it is async to the create RPC call.
It can't bypass the default action, e.g., ctx.bypass() won't have effect.ctx - the environment to interact with the framework and masterdesc - the HTableDescriptor for the tableregions - the initial regions created for the tableIOException@Deprecated default void postCreateTableHandler(ObserverContext<MasterCoprocessorEnvironment> ctx, HTableDescriptor desc, HRegionInfo[] regions) throws IOException
postCompletedCreateTableAction(ObserverContext, HTableDescriptor, HRegionInfo[])ctx - the environment to interact with the framework and masterdesc - the HTableDescriptor for the tableregions - the initial regions created for the tableIOExceptiondefault void preCreateTableAction(ObserverContext<MasterCoprocessorEnvironment> ctx, HTableDescriptor desc, HRegionInfo[] regions) throws IOException
HMaster. Called as part of create
table procedure and it is async to the create RPC call.
It can't bypass the default action, e.g., ctx.bypass() won't have effect.
Implementation note: This replaces the deprecated
preCreateTableHandler(ObserverContext, HTableDescriptor, HRegionInfo[]) method.
Make sure to implement only one of the two as both are called.ctx - the environment to interact with the framework and masterdesc - the HTableDescriptor for the tableregions - the initial regions created for the tableIOExceptiondefault void postCompletedCreateTableAction(ObserverContext<MasterCoprocessorEnvironment> ctx, HTableDescriptor desc, HRegionInfo[] regions) throws IOException
postCreateTableHandler(ObserverContext, HTableDescriptor, HRegionInfo[]) method.
Make sure to implement only one of the two as both are called.ctx - the environment to interact with the framework and masterdesc - the HTableDescriptor for the tableregions - the initial regions created for the tableIOExceptiondefault void preDeleteTable(ObserverContext<MasterCoprocessorEnvironment> ctx, TableName tableName) throws IOException
HMaster deletes a
table. Called as part of delete table RPC call.
It can't bypass the default action, e.g., ctx.bypass() won't have effect.ctx - the environment to interact with the framework and mastertableName - the name of the tableIOExceptiondefault void postDeleteTable(ObserverContext<MasterCoprocessorEnvironment> ctx, TableName tableName) throws IOException
ctx - the environment to interact with the framework and mastertableName - the name of the tableIOException@Deprecated default void preDeleteTableHandler(ObserverContext<MasterCoprocessorEnvironment> ctx, TableName tableName) throws IOException
preDeleteTableAction(ObserverContext, TableName).HMaster deletes a
table. Called as part of delete table handler and
it is async to the delete RPC call.
It can't bypass the default action, e.g., ctx.bypass() won't have effect.ctx - the environment to interact with the framework and mastertableName - the name of the tableIOException@Deprecated default void postDeleteTableHandler(ObserverContext<MasterCoprocessorEnvironment> ctx, TableName tableName) throws IOException
postCompletedDeleteTableAction(ObserverContext, TableName).HMaster deletes a
table. Called as part of delete table handler and it is async to the
delete RPC call.
It can't bypass the default action, e.g., ctx.bypass() won't have effect.ctx - the environment to interact with the framework and mastertableName - the name of the tableIOExceptiondefault void preDeleteTableAction(ObserverContext<MasterCoprocessorEnvironment> ctx, TableName tableName) throws IOException
HMaster deletes a
table. Called as part of delete table procedure and
it is async to the delete RPC call.
It can't bypass the default action, e.g., ctx.bypass() won't have effect.
Implementation note: This replaces the deprecated
preDeleteTableHandler(ObserverContext, TableName) method.
Make sure to implement only one of the two as both are called.ctx - the environment to interact with the framework and mastertableName - the name of the tableIOExceptiondefault void postCompletedDeleteTableAction(ObserverContext<MasterCoprocessorEnvironment> ctx, TableName tableName) throws IOException
HMaster deletes a
table. Called as part of delete table procedure and it is async to the
delete RPC call.
It can't bypass the default action, e.g., ctx.bypass() won't have effect.
Implementation note: This replaces the deprecated
postDeleteTableHandler(ObserverContext, TableName) method.
Make sure to implement only one of the two as both are called.ctx - the environment to interact with the framework and mastertableName - the name of the tableIOExceptiondefault void preTruncateTable(ObserverContext<MasterCoprocessorEnvironment> ctx, TableName tableName) throws IOException
HMaster truncates a
table. Called as part of truncate table RPC call.
It can't bypass the default action, e.g., ctx.bypass() won't have effect.ctx - the environment to interact with the framework and mastertableName - the name of the tableIOExceptiondefault void postTruncateTable(ObserverContext<MasterCoprocessorEnvironment> ctx, TableName tableName) throws IOException
ctx - the environment to interact with the framework and mastertableName - the name of the tableIOException@Deprecated default void preTruncateTableHandler(ObserverContext<MasterCoprocessorEnvironment> ctx, TableName tableName) throws IOException
preTruncateTableAction(ObserverContext, TableName).HMaster truncates a
table. Called as part of truncate table handler and it is sync
to the truncate RPC call.
It can't bypass the default action, e.g., ctx.bypass() won't have effect.ctx - the environment to interact with the framework and mastertableName - the name of the tableIOException@Deprecated default void postTruncateTableHandler(ObserverContext<MasterCoprocessorEnvironment> ctx, TableName tableName) throws IOException
postCompletedTruncateTableAction(ObserverContext, TableName).HMaster truncates a
table. Called as part of truncate table handler and it is sync to the
truncate RPC call.
It can't bypass the default action, e.g., ctx.bypass() won't have effect.ctx - the environment to interact with the framework and mastertableName - the name of the tableIOExceptiondefault void preTruncateTableAction(ObserverContext<MasterCoprocessorEnvironment> ctx, TableName tableName) throws IOException
HMaster truncates a
table. Called as part of truncate table procedure and it is async
to the truncate RPC call.
It can't bypass the default action, e.g., ctx.bypass() won't have effect.
Implementation note: This replaces the deprecated
preTruncateTableHandler(ObserverContext, TableName) method.
Make sure to implement only one of the two as both are called.ctx - the environment to interact with the framework and mastertableName - the name of the tableIOExceptiondefault void postCompletedTruncateTableAction(ObserverContext<MasterCoprocessorEnvironment> ctx, TableName tableName) throws IOException
HMaster truncates a
table. Called as part of truncate table procedure and it is async to the
truncate RPC call.
It can't bypass the default action, e.g., ctx.bypass() won't have effect.
Implementation note: This replaces the deprecated
postTruncateTableHandler(ObserverContext, TableName) method.
Make sure to implement only one of the two as both are called.ctx - the environment to interact with the framework and mastertableName - the name of the tableIOExceptiondefault void preModifyTable(ObserverContext<MasterCoprocessorEnvironment> ctx, TableName tableName, HTableDescriptor htd) throws IOException
ctx - the environment to interact with the framework and mastertableName - the name of the tablehtd - the HTableDescriptorIOExceptiondefault void postModifyTable(ObserverContext<MasterCoprocessorEnvironment> ctx, TableName tableName, HTableDescriptor htd) throws IOException
ctx - the environment to interact with the framework and mastertableName - the name of the tablehtd - the HTableDescriptorIOException@Deprecated default void preModifyTableHandler(ObserverContext<MasterCoprocessorEnvironment> ctx, TableName tableName, HTableDescriptor htd) throws IOException
preModifyTableAction(ObserverContext, TableName, HTableDescriptor).ctx - the environment to interact with the framework and mastertableName - the name of the tablehtd - the HTableDescriptorIOException@Deprecated default void postModifyTableHandler(ObserverContext<MasterCoprocessorEnvironment> ctx, TableName tableName, HTableDescriptor htd) throws IOException
postCompletedModifyTableAction(ObserverContext, TableName, HTableDescriptor).ctx - the environment to interact with the framework and mastertableName - the name of the tablehtd - the HTableDescriptorIOExceptiondefault void preModifyTableAction(ObserverContext<MasterCoprocessorEnvironment> ctx, TableName tableName, HTableDescriptor htd) throws IOException
preModifyTableHandler(ObserverContext, TableName, HTableDescriptor) method.
Make sure to implement only one of the two as both are called.ctx - the environment to interact with the framework and mastertableName - the name of the tablehtd - the HTableDescriptorIOExceptiondefault void postCompletedModifyTableAction(ObserverContext<MasterCoprocessorEnvironment> ctx, TableName tableName, HTableDescriptor htd) throws IOException
postModifyTableHandler(ObserverContext, TableName, HTableDescriptor) method.
Make sure to implement only one of the two as both are called.ctx - the environment to interact with the framework and mastertableName - the name of the tablehtd - the HTableDescriptorIOException@Deprecated default void preAddColumn(ObserverContext<MasterCoprocessorEnvironment> ctx, TableName tableName, HColumnDescriptor columnFamily) throws IOException
preAddColumnFamily(ObserverContext, TableName, HColumnDescriptor).ctx - the environment to interact with the framework and mastertableName - the name of the tablecolumnFamily - the HColumnDescriptorIOExceptiondefault void preAddColumnFamily(ObserverContext<MasterCoprocessorEnvironment> ctx, TableName tableName, HColumnDescriptor columnFamily) throws IOException
preAddColumn(ObserverContext, TableName, HColumnDescriptor) method.
Make sure to implement only one of the two as both are called.ctx - the environment to interact with the framework and mastertableName - the name of the tablecolumnFamily - the HColumnDescriptorIOException@Deprecated default void postAddColumn(ObserverContext<MasterCoprocessorEnvironment> ctx, TableName tableName, HColumnDescriptor columnFamily) throws IOException
postAddColumnFamily(ObserverContext, TableName, HColumnDescriptor).ctx - the environment to interact with the framework and mastertableName - the name of the tablecolumnFamily - the HColumnDescriptorIOExceptiondefault void postAddColumnFamily(ObserverContext<MasterCoprocessorEnvironment> ctx, TableName tableName, HColumnDescriptor columnFamily) throws IOException
postAddColumn(ObserverContext, TableName, HColumnDescriptor) method.
Make sure to implement only one of the two as both are called.ctx - the environment to interact with the framework and mastertableName - the name of the tablecolumnFamily - the HColumnDescriptorIOException@Deprecated default void preAddColumnHandler(ObserverContext<MasterCoprocessorEnvironment> ctx, TableName tableName, HColumnDescriptor columnFamily) throws IOException
preAddColumnFamilyAction(ObserverContext, TableName, HColumnDescriptor).ctx - the environment to interact with the framework and mastertableName - the name of the tablecolumnFamily - the HColumnDescriptorIOExceptiondefault void preAddColumnFamilyAction(ObserverContext<MasterCoprocessorEnvironment> ctx, TableName tableName, HColumnDescriptor columnFamily) throws IOException
preAddColumnHandler(ObserverContext, TableName, HColumnDescriptor) method.
Make sure to implement only one of the two as both are called.ctx - the environment to interact with the framework and mastertableName - the name of the tablecolumnFamily - the HColumnDescriptorIOException@Deprecated default void postAddColumnHandler(ObserverContext<MasterCoprocessorEnvironment> ctx, TableName tableName, HColumnDescriptor columnFamily) throws IOException
postCompletedAddColumnFamilyAction(ObserverContext, TableName, HColumnDescriptor).ctx - the environment to interact with the framework and mastertableName - the name of the tablecolumnFamily - the HColumnDescriptorIOExceptiondefault void postCompletedAddColumnFamilyAction(ObserverContext<MasterCoprocessorEnvironment> ctx, TableName tableName, HColumnDescriptor columnFamily) throws IOException
postAddColumnHandler(ObserverContext, TableName, HColumnDescriptor) method.
Make sure to implement only one of the two as both are called.ctx - the environment to interact with the framework and mastertableName - the name of the tablecolumnFamily - the HColumnDescriptorIOException@Deprecated default void preModifyColumn(ObserverContext<MasterCoprocessorEnvironment> ctx, TableName tableName, HColumnDescriptor columnFamily) throws IOException
preModifyColumnFamily(ObserverContext, TableName, HColumnDescriptor).ctx - the environment to interact with the framework and mastertableName - the name of the tablecolumnFamily - the HColumnDescriptorIOExceptiondefault void preModifyColumnFamily(ObserverContext<MasterCoprocessorEnvironment> ctx, TableName tableName, HColumnDescriptor columnFamily) throws IOException
preModifyColumn(ObserverContext, TableName, HColumnDescriptor) method.
Make sure to implement only one of the two as both are called.ctx - the environment to interact with the framework and mastertableName - the name of the tablecolumnFamily - the HColumnDescriptorIOException@Deprecated default void postModifyColumn(ObserverContext<MasterCoprocessorEnvironment> ctx, TableName tableName, HColumnDescriptor columnFamily) throws IOException
postModifyColumnFamily(ObserverContext, TableName, HColumnDescriptor).ctx - the environment to interact with the framework and mastertableName - the name of the tablecolumnFamily - the HColumnDescriptorIOExceptiondefault void postModifyColumnFamily(ObserverContext<MasterCoprocessorEnvironment> ctx, TableName tableName, HColumnDescriptor columnFamily) throws IOException
postModifyColumn(ObserverContext, TableName, HColumnDescriptor) method.
Make sure to implement only one of the two as both are called.ctx - the environment to interact with the framework and mastertableName - the name of the tablecolumnFamily - the HColumnDescriptorIOException@Deprecated default void preModifyColumnHandler(ObserverContext<MasterCoprocessorEnvironment> ctx, TableName tableName, HColumnDescriptor columnFamily) throws IOException
preModifyColumnFamilyAction(ObserverContext, TableName, HColumnDescriptor).ctx - the environment to interact with the framework and mastertableName - the name of the tablecolumnFamily - the HColumnDescriptorIOExceptiondefault void preModifyColumnFamilyAction(ObserverContext<MasterCoprocessorEnvironment> ctx, TableName tableName, HColumnDescriptor columnFamily) throws IOException
preModifyColumnHandler(ObserverContext, TableName, HColumnDescriptor) method.
Make sure to implement only one of the two as both are called.ctx - the environment to interact with the framework and mastertableName - the name of the tablecolumnFamily - the HColumnDescriptorIOException@Deprecated default void postModifyColumnHandler(ObserverContext<MasterCoprocessorEnvironment> ctx, TableName tableName, HColumnDescriptor columnFamily) throws IOException
postCompletedModifyColumnFamilyAction(ObserverContext,TableName,HColumnDescriptor).ctx - the environment to interact with the framework and mastertableName - the name of the tablecolumnFamily - the HColumnDescriptorIOExceptiondefault void postCompletedModifyColumnFamilyAction(ObserverContext<MasterCoprocessorEnvironment> ctx, TableName tableName, HColumnDescriptor columnFamily) throws IOException
postModifyColumnHandler(ObserverContext, TableName, HColumnDescriptor) method.
Make sure to implement only one of the two as both are called.ctx - the environment to interact with the framework and mastertableName - the name of the tablecolumnFamily - the HColumnDescriptorIOException@Deprecated default void preDeleteColumn(ObserverContext<MasterCoprocessorEnvironment> ctx, TableName tableName, byte[] columnFamily) throws IOException
preDeleteColumnFamily(ObserverContext, TableName, byte[]).ctx - the environment to interact with the framework and mastertableName - the name of the tablecolumnFamily - the column familyIOExceptiondefault void preDeleteColumnFamily(ObserverContext<MasterCoprocessorEnvironment> ctx, TableName tableName, byte[] columnFamily) throws IOException
preDeleteColumn(ObserverContext, TableName, byte[]) method.
Make sure to implement only one of the two as both are called.ctx - the environment to interact with the framework and mastertableName - the name of the tablecolumnFamily - the columnIOException@Deprecated default void postDeleteColumn(ObserverContext<MasterCoprocessorEnvironment> ctx, TableName tableName, byte[] columnFamily) throws IOException
postDeleteColumnFamily(ObserverContext, TableName, byte[]).ctx - the environment to interact with the framework and mastertableName - the name of the tablecolumnFamily - the column familyIOExceptiondefault void postDeleteColumnFamily(ObserverContext<MasterCoprocessorEnvironment> ctx, TableName tableName, byte[] columnFamily) throws IOException
postDeleteColumn(ObserverContext, TableName, byte[]) method.
Make sure to implement only one of the two as both are called.ctx - the environment to interact with the framework and mastertableName - the name of the tablecolumnFamily - the column familyIOException@Deprecated default void preDeleteColumnHandler(ObserverContext<MasterCoprocessorEnvironment> ctx, TableName tableName, byte[] columnFamily) throws IOException
preDeleteColumnFamilyAction(ObserverContext, TableName, byte[]).ctx - the environment to interact with the framework and mastertableName - the name of the tablecolumnFamily - the column familyIOExceptiondefault void preDeleteColumnFamilyAction(ObserverContext<MasterCoprocessorEnvironment> ctx, TableName tableName, byte[] columnFamily) throws IOException
preDeleteColumnHandler(ObserverContext, TableName, byte[]) method.
Make sure to implement only one of the two as both are called.ctx - the environment to interact with the framework and mastertableName - the name of the tablecolumnFamily - the column familyIOException@Deprecated default void postDeleteColumnHandler(ObserverContext<MasterCoprocessorEnvironment> ctx, TableName tableName, byte[] columnFamily) throws IOException
postCompletedDeleteColumnFamilyAction(ObserverContext, TableName, byte[]).ctx - the environment to interact with the framework and mastertableName - the name of the tablecolumnFamily - the column familyIOExceptiondefault void postCompletedDeleteColumnFamilyAction(ObserverContext<MasterCoprocessorEnvironment> ctx, TableName tableName, byte[] columnFamily) throws IOException
postDeleteColumnHandler(ObserverContext, TableName, byte[]) method.
Make sure to implement only one of the two as both are called.ctx - the environment to interact with the framework and mastertableName - the name of the tablecolumnFamily - the column familyIOExceptiondefault void preEnableTable(ObserverContext<MasterCoprocessorEnvironment> ctx, TableName tableName) throws IOException
ctx - the environment to interact with the framework and mastertableName - the name of the tableIOExceptiondefault void postEnableTable(ObserverContext<MasterCoprocessorEnvironment> ctx, TableName tableName) throws IOException
ctx - the environment to interact with the framework and mastertableName - the name of the tableIOException@Deprecated default void preEnableTableHandler(ObserverContext<MasterCoprocessorEnvironment> ctx, TableName tableName) throws IOException
preEnableTableAction(ObserverContext, TableName).ctx - the environment to interact with the framework and mastertableName - the name of the tableIOException@Deprecated default void postEnableTableHandler(ObserverContext<MasterCoprocessorEnvironment> ctx, TableName tableName) throws IOException
postCompletedEnableTableAction(ObserverContext, TableName).ctx - the environment to interact with the framework and mastertableName - the name of the tableIOExceptiondefault void preEnableTableAction(ObserverContext<MasterCoprocessorEnvironment> ctx, TableName tableName) throws IOException
preEnableTableHandler(ObserverContext, TableName) method.
Make sure to implement only one of the two as both are called.ctx - the environment to interact with the framework and mastertableName - the name of the tableIOExceptiondefault void postCompletedEnableTableAction(ObserverContext<MasterCoprocessorEnvironment> ctx, TableName tableName) throws IOException
postEnableTableHandler(ObserverContext, TableName) method.
Make sure to implement only one of the two as both are called.ctx - the environment to interact with the framework and mastertableName - the name of the tableIOExceptiondefault void preDisableTable(ObserverContext<MasterCoprocessorEnvironment> ctx, TableName tableName) throws IOException
ctx - the environment to interact with the framework and mastertableName - the name of the tableIOExceptiondefault void postDisableTable(ObserverContext<MasterCoprocessorEnvironment> ctx, TableName tableName) throws IOException
ctx - the environment to interact with the framework and mastertableName - the name of the tableIOException@Deprecated default void preDisableTableHandler(ObserverContext<MasterCoprocessorEnvironment> ctx, TableName tableName) throws IOException
preDisableTableAction(ObserverContext, TableName).ctx - the environment to interact with the framework and mastertableName - the name of the tableIOException@Deprecated default void postDisableTableHandler(ObserverContext<MasterCoprocessorEnvironment> ctx, TableName tableName) throws IOException
postCompletedDisableTableAction(ObserverContext, TableName).ctx - the environment to interact with the framework and mastertableName - the name of the tableIOExceptiondefault void preDisableTableAction(ObserverContext<MasterCoprocessorEnvironment> ctx, TableName tableName) throws IOException
preDisableTableHandler(ObserverContext, TableName) method.
Make sure to implement only one of the two as both are called.ctx - the environment to interact with the framework and mastertableName - the name of the tableIOExceptiondefault void postCompletedDisableTableAction(ObserverContext<MasterCoprocessorEnvironment> ctx, TableName tableName) throws IOException
postDisableTableHandler(ObserverContext, TableName) method.
Make sure to implement only one of the two as both are called.ctx - the environment to interact with the framework and mastertableName - the name of the tableIOExceptiondefault void preAbortProcedure(ObserverContext<MasterCoprocessorEnvironment> ctx, ProcedureExecutor<MasterProcedureEnv> procEnv, long procId) throws IOException
ctx - the environment to interact with the framework and masterprocEnv - procedure executorprocId - the Id of the procedureIOExceptiondefault void postAbortProcedure(ObserverContext<MasterCoprocessorEnvironment> ctx) throws IOException
ctx - the environment to interact with the framework and masterIOExceptiondefault void preListProcedures(ObserverContext<MasterCoprocessorEnvironment> ctx) throws IOException
ctx - the environment to interact with the framework and masterIOExceptiondefault void postListProcedures(ObserverContext<MasterCoprocessorEnvironment> ctx, List<ProcedureInfo> procInfoList) throws IOException
ctx - the environment to interact with the framework and masterprocInfoList - the list of procedures about to be returnedIOExceptiondefault void preListLocks(ObserverContext<MasterCoprocessorEnvironment> ctx) throws IOException
ctx - the environment to interact with the framework and masterIOException - if something went wrongdefault void postListLocks(ObserverContext<MasterCoprocessorEnvironment> ctx, List<LockInfo> lockInfoList) throws IOException
ctx - the environment to interact with the framework and masterlockInfoList - the list of locks about to be returnedIOException - if something went wrongdefault void preMove(ObserverContext<MasterCoprocessorEnvironment> ctx, HRegionInfo region, ServerName srcServer, ServerName destServer) throws IOException
ctx - the environment to interact with the framework and masterregion - the HRegionInfosrcServer - the source ServerNamedestServer - the destination ServerNameIOExceptiondefault void postMove(ObserverContext<MasterCoprocessorEnvironment> ctx, HRegionInfo region, ServerName srcServer, ServerName destServer) throws IOException
ctx - the environment to interact with the framework and masterregion - the HRegionInfosrcServer - the source ServerNamedestServer - the destination ServerNameIOExceptiondefault void preAssign(ObserverContext<MasterCoprocessorEnvironment> ctx, HRegionInfo regionInfo) throws IOException
ctx - the environment to interact with the framework and masterregionInfo - the regionInfo of the regionIOExceptiondefault void postAssign(ObserverContext<MasterCoprocessorEnvironment> ctx, HRegionInfo regionInfo) throws IOException
ctx - the environment to interact with the framework and masterregionInfo - the regionInfo of the regionIOExceptiondefault void preUnassign(ObserverContext<MasterCoprocessorEnvironment> ctx, HRegionInfo regionInfo, boolean force) throws IOException
ctx - the environment to interact with the framework and masterregionInfo - force - whether to force unassignment or notIOExceptiondefault void postUnassign(ObserverContext<MasterCoprocessorEnvironment> ctx, HRegionInfo regionInfo, boolean force) throws IOException
ctx - the environment to interact with the framework and masterregionInfo - force - whether to force unassignment or notIOExceptiondefault void preRegionOffline(ObserverContext<MasterCoprocessorEnvironment> ctx, HRegionInfo regionInfo) throws IOException
ctx.bypass() will not have any
impact on this hook.ctx - the environment to interact with the framework and masterregionInfo - IOExceptiondefault void postRegionOffline(ObserverContext<MasterCoprocessorEnvironment> ctx, HRegionInfo regionInfo) throws IOException
ctx - the environment to interact with the framework and masterregionInfo - IOExceptiondefault void preBalance(ObserverContext<MasterCoprocessorEnvironment> ctx) throws IOException
ctx - the environment to interact with the framework and masterIOExceptiondefault void postBalance(ObserverContext<MasterCoprocessorEnvironment> ctx, List<RegionPlan> plans) throws IOException
ctx - the environment to interact with the framework and masterplans - the RegionPlans which master has executed. RegionPlan serves as hint
as for the final destination for the underlying region but may not represent the
final state of assignmentIOExceptiondefault boolean preSetSplitOrMergeEnabled(ObserverContext<MasterCoprocessorEnvironment> ctx, boolean newValue, MasterSwitchType switchType) throws IOException
ctx - the coprocessor instance's environmentnewValue - the new value submitted in the callswitchType - type of switchIOExceptiondefault void postSetSplitOrMergeEnabled(ObserverContext<MasterCoprocessorEnvironment> ctx, boolean newValue, MasterSwitchType switchType) throws IOException
ctx - the coprocessor instance's environmentnewValue - the new value submitted in the callswitchType - type of switchIOExceptiondefault void preSplitRegion(ObserverContext<MasterCoprocessorEnvironment> c, TableName tableName, byte[] splitRow) throws IOException
c - the environment to interact with the framework and mastertableName - the table where the region belongs tosplitRow - split pointIOExceptiondefault void preSplitRegionAction(ObserverContext<MasterCoprocessorEnvironment> c, TableName tableName, byte[] splitRow) throws IOException
c - the environment to interact with the framework and mastertableName - the table where the region belongs tosplitRow - split pointIOExceptiondefault void postCompletedSplitRegionAction(ObserverContext<MasterCoprocessorEnvironment> c, HRegionInfo regionInfoA, HRegionInfo regionInfoB) throws IOException
c - the environment to interact with the framework and masterregionInfoA - the left daughter regionregionInfoB - the right daughter regionIOExceptiondefault void preSplitRegionBeforePONRAction(ObserverContext<MasterCoprocessorEnvironment> ctx, byte[] splitKey, List<Mutation> metaEntries) throws IOException
ObserverContext.bypass() rollback the splitctx - the environment to interact with the framework and mastersplitKey - metaEntries - IOExceptiondefault void preSplitRegionAfterPONRAction(ObserverContext<MasterCoprocessorEnvironment> ctx) throws IOException
ObserverContext.bypass() has no
effect in this hook.ctx - the environment to interact with the framework and masterIOExceptiondefault void postRollBackSplitRegionAction(ObserverContext<MasterCoprocessorEnvironment> ctx) throws IOException
ctx - the environment to interact with the framework and masterIOExceptiondefault void preMergeRegionsAction(ObserverContext<MasterCoprocessorEnvironment> ctx, HRegionInfo[] regionsToMerge) throws IOException
ObserverContext.bypass() to skip the merge.ctx - the environment to interact with the framework and masterIOExceptiondefault void postCompletedMergeRegionsAction(ObserverContext<MasterCoprocessorEnvironment> ctx, HRegionInfo[] regionsToMerge, HRegionInfo mergedRegion) throws IOException
ctx - the environment to interact with the framework and masterIOExceptiondefault void preMergeRegionsCommitAction(ObserverContext<MasterCoprocessorEnvironment> ctx, HRegionInfo[] regionsToMerge, @MetaMutationAnnotation List<Mutation> metaEntries) throws IOException
ObserverContext.bypass() rollback the mergectx - 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.IOExceptiondefault void postMergeRegionsCommitAction(ObserverContext<MasterCoprocessorEnvironment> ctx, HRegionInfo[] regionsToMerge, HRegionInfo mergedRegion) throws IOException
ctx - the environment to interact with the framework and masterIOExceptiondefault void postRollBackMergeRegionsAction(ObserverContext<MasterCoprocessorEnvironment> ctx, HRegionInfo[] regionsToMerge) throws IOException
ctx - the environment to interact with the framework and masterIOExceptiondefault boolean preBalanceSwitch(ObserverContext<MasterCoprocessorEnvironment> ctx, boolean newValue) throws IOException
ctx - the coprocessor instance's environmentnewValue - the new flag value submitted in the callIOExceptiondefault void postBalanceSwitch(ObserverContext<MasterCoprocessorEnvironment> ctx, boolean oldValue, boolean newValue) throws IOException
ctx - the coprocessor instance's environmentoldValue - the previously set balanceSwitch valuenewValue - the newly set balanceSwitch valueIOExceptiondefault void preShutdown(ObserverContext<MasterCoprocessorEnvironment> ctx) throws IOException
HMaster process.IOExceptiondefault void preStopMaster(ObserverContext<MasterCoprocessorEnvironment> ctx) throws IOException
HMaster process.IOExceptiondefault void postStartMaster(ObserverContext<MasterCoprocessorEnvironment> ctx) throws IOException
IOExceptiondefault void preMasterInitialization(ObserverContext<MasterCoprocessorEnvironment> ctx) throws IOException
HMaster process.IOExceptiondefault void preSnapshot(ObserverContext<MasterCoprocessorEnvironment> ctx, org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotDescription snapshot, HTableDescriptor hTableDescriptor) throws IOException
ctx - the environment to interact with the framework and mastersnapshot - the SnapshotDescriptor for the snapshothTableDescriptor - the hTableDescriptor of the table to snapshotIOExceptiondefault void postSnapshot(ObserverContext<MasterCoprocessorEnvironment> ctx, org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotDescription snapshot, HTableDescriptor hTableDescriptor) throws IOException
ctx - the environment to interact with the framework and mastersnapshot - the SnapshotDescriptor for the snapshothTableDescriptor - the hTableDescriptor of the table to snapshotIOExceptiondefault void preListSnapshot(ObserverContext<MasterCoprocessorEnvironment> ctx, org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotDescription snapshot) throws IOException
ctx - the environment to interact with the framework and mastersnapshot - the SnapshotDescriptor of the snapshot to listIOExceptiondefault void postListSnapshot(ObserverContext<MasterCoprocessorEnvironment> ctx, org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotDescription snapshot) throws IOException
ctx - the environment to interact with the framework and mastersnapshot - the SnapshotDescriptor of the snapshot to listIOExceptiondefault void preCloneSnapshot(ObserverContext<MasterCoprocessorEnvironment> ctx, org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotDescription snapshot, HTableDescriptor hTableDescriptor) throws IOException
ctx - the environment to interact with the framework and mastersnapshot - the SnapshotDescriptor for the snapshothTableDescriptor - the hTableDescriptor of the table to createIOExceptiondefault void postCloneSnapshot(ObserverContext<MasterCoprocessorEnvironment> ctx, org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotDescription snapshot, HTableDescriptor hTableDescriptor) throws IOException
ctx - the environment to interact with the framework and mastersnapshot - the SnapshotDescriptor for the snapshothTableDescriptor - the hTableDescriptor of the table to createIOExceptiondefault void preRestoreSnapshot(ObserverContext<MasterCoprocessorEnvironment> ctx, org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotDescription snapshot, HTableDescriptor hTableDescriptor) throws IOException
ctx - the environment to interact with the framework and mastersnapshot - the SnapshotDescriptor for the snapshothTableDescriptor - the hTableDescriptor of the table to restoreIOExceptiondefault void postRestoreSnapshot(ObserverContext<MasterCoprocessorEnvironment> ctx, org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotDescription snapshot, HTableDescriptor hTableDescriptor) throws IOException
ctx - the environment to interact with the framework and mastersnapshot - the SnapshotDescriptor for the snapshothTableDescriptor - the hTableDescriptor of the table to restoreIOExceptiondefault void preDeleteSnapshot(ObserverContext<MasterCoprocessorEnvironment> ctx, org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotDescription snapshot) throws IOException
ctx - the environment to interact with the framework and mastersnapshot - the SnapshotDescriptor of the snapshot to deleteIOExceptiondefault void postDeleteSnapshot(ObserverContext<MasterCoprocessorEnvironment> ctx, org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotDescription snapshot) throws IOException
ctx - the environment to interact with the framework and mastersnapshot - the SnapshotDescriptor of the snapshot to deleteIOExceptiondefault void preGetTableDescriptors(ObserverContext<MasterCoprocessorEnvironment> ctx, List<TableName> tableNamesList, List<HTableDescriptor> descriptors, String regex) throws IOException
ctx - the environment to interact with the framework and mastertableNamesList - the list of table names, or null if querying for alldescriptors - an empty list, can be filled with what to return if bypassingregex - regular expression used for filtering the table namesIOExceptiondefault void postGetTableDescriptors(ObserverContext<MasterCoprocessorEnvironment> ctx, List<TableName> tableNamesList, List<HTableDescriptor> descriptors, String regex) throws IOException
ctx - the environment to interact with the framework and mastertableNamesList - the list of table names, or null if querying for alldescriptors - the list of descriptors about to be returnedregex - regular expression used for filtering the table namesIOExceptiondefault void preGetTableNames(ObserverContext<MasterCoprocessorEnvironment> ctx, List<HTableDescriptor> descriptors, String regex) throws IOException
ctx - the environment to interact with the framework and masterdescriptors - an empty list, can be filled with what to return if bypassingregex - regular expression used for filtering the table namesIOExceptiondefault void postGetTableNames(ObserverContext<MasterCoprocessorEnvironment> ctx, List<HTableDescriptor> descriptors, String regex) throws IOException
ctx - the environment to interact with the framework and masterdescriptors - the list of descriptors about to be returnedregex - regular expression used for filtering the table namesIOExceptiondefault void preCreateNamespace(ObserverContext<MasterCoprocessorEnvironment> ctx, NamespaceDescriptor ns) throws IOException
HMaster.
It can't bypass the default action, e.g., ctx.bypass() won't have effect.ctx - the environment to interact with the framework and masterns - the NamespaceDescriptor for the tableIOExceptiondefault void postCreateNamespace(ObserverContext<MasterCoprocessorEnvironment> ctx, NamespaceDescriptor ns) throws IOException
ctx - the environment to interact with the framework and masterns - the NamespaceDescriptor for the tableIOExceptiondefault void preDeleteNamespace(ObserverContext<MasterCoprocessorEnvironment> ctx, String namespace) throws IOException
HMaster deletes a
namespace
It can't bypass the default action, e.g., ctx.bypass() won't have effect.ctx - the environment to interact with the framework and masternamespace - the name of the namespaceIOExceptiondefault void postDeleteNamespace(ObserverContext<MasterCoprocessorEnvironment> ctx, String namespace) throws IOException
ctx - the environment to interact with the framework and masternamespace - the name of the namespaceIOExceptiondefault void preModifyNamespace(ObserverContext<MasterCoprocessorEnvironment> ctx, NamespaceDescriptor ns) throws IOException
ctx - the environment to interact with the framework and masterns - the NamespaceDescriptorIOExceptiondefault void postModifyNamespace(ObserverContext<MasterCoprocessorEnvironment> ctx, NamespaceDescriptor ns) throws IOException
ctx - the environment to interact with the framework and masterns - the NamespaceDescriptorIOExceptiondefault void preGetNamespaceDescriptor(ObserverContext<MasterCoprocessorEnvironment> ctx, String namespace) throws IOException
ctx - the environment to interact with the framework and masternamespace - the name of the namespaceIOExceptiondefault void postGetNamespaceDescriptor(ObserverContext<MasterCoprocessorEnvironment> ctx, NamespaceDescriptor ns) throws IOException
ctx - the environment to interact with the framework and masterns - the NamespaceDescriptorIOExceptiondefault void preListNamespaceDescriptors(ObserverContext<MasterCoprocessorEnvironment> ctx, List<NamespaceDescriptor> descriptors) throws IOException
ctx - the environment to interact with the framework and masterdescriptors - an empty list, can be filled with what to return if bypassingIOExceptiondefault void postListNamespaceDescriptors(ObserverContext<MasterCoprocessorEnvironment> ctx, List<NamespaceDescriptor> descriptors) throws IOException
ctx - the environment to interact with the framework and masterdescriptors - the list of descriptors about to be returnedIOExceptiondefault void preTableFlush(ObserverContext<MasterCoprocessorEnvironment> ctx, TableName tableName) throws IOException
ctx - the environment to interact with the framework and mastertableName - the name of the tableIOExceptiondefault void postTableFlush(ObserverContext<MasterCoprocessorEnvironment> ctx, TableName tableName) throws IOException
ctx - the environment to interact with the framework and mastertableName - the name of the tableIOExceptiondefault void preSetUserQuota(ObserverContext<MasterCoprocessorEnvironment> ctx, String userName, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas quotas) throws IOException
ctx - the environment to interact with the framework and masteruserName - the name of userquotas - the quota settingsIOExceptiondefault void postSetUserQuota(ObserverContext<MasterCoprocessorEnvironment> ctx, String userName, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas quotas) throws IOException
ctx - the environment to interact with the framework and masteruserName - the name of userquotas - the quota settingsIOExceptiondefault void preSetUserQuota(ObserverContext<MasterCoprocessorEnvironment> ctx, String userName, TableName tableName, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas quotas) throws IOException
ctx - the environment to interact with the framework and masteruserName - the name of usertableName - the name of the tablequotas - the quota settingsIOExceptiondefault void postSetUserQuota(ObserverContext<MasterCoprocessorEnvironment> ctx, String userName, TableName tableName, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas quotas) throws IOException
ctx - the environment to interact with the framework and masteruserName - the name of usertableName - the name of the tablequotas - the quota settingsIOExceptiondefault void preSetUserQuota(ObserverContext<MasterCoprocessorEnvironment> ctx, String userName, String namespace, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas quotas) throws IOException
ctx - the environment to interact with the framework and masteruserName - the name of usernamespace - the name of the namespacequotas - the quota settingsIOExceptiondefault void postSetUserQuota(ObserverContext<MasterCoprocessorEnvironment> ctx, String userName, String namespace, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas quotas) throws IOException
ctx - the environment to interact with the framework and masteruserName - the name of usernamespace - the name of the namespacequotas - the quota settingsIOExceptiondefault void preSetTableQuota(ObserverContext<MasterCoprocessorEnvironment> ctx, TableName tableName, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas quotas) throws IOException
ctx - the environment to interact with the framework and mastertableName - the name of the tablequotas - the quota settingsIOExceptiondefault void postSetTableQuota(ObserverContext<MasterCoprocessorEnvironment> ctx, TableName tableName, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas quotas) throws IOException
ctx - the environment to interact with the framework and mastertableName - the name of the tablequotas - the quota settingsIOExceptiondefault void preSetNamespaceQuota(ObserverContext<MasterCoprocessorEnvironment> ctx, String namespace, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas quotas) throws IOException
ctx - the environment to interact with the framework and masternamespace - the name of the namespacequotas - the quota settingsIOExceptiondefault void postSetNamespaceQuota(ObserverContext<MasterCoprocessorEnvironment> ctx, String namespace, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas quotas) throws IOException
ctx - the environment to interact with the framework and masternamespace - the name of the namespacequotas - the quota settingsIOException@Deprecated default void preDispatchMerge(ObserverContext<MasterCoprocessorEnvironment> ctx, HRegionInfo regionA, HRegionInfo regionB) throws IOException
preMergeRegions(ObserverContext, HRegionInfo[])ctx - coprocessor environmentregionA - first region to be mergedregionB - second region to be mergedIOException@Deprecated default void postDispatchMerge(ObserverContext<MasterCoprocessorEnvironment> c, HRegionInfo regionA, HRegionInfo regionB) throws IOException
postMergeRegions(ObserverContext, HRegionInfo[])c - coprocessor environmentregionA - first region to be mergedregionB - second region to be mergedIOExceptiondefault void preMergeRegions(ObserverContext<MasterCoprocessorEnvironment> ctx, HRegionInfo[] regionsToMerge) throws IOException
ctx - coprocessor environmentregionsToMerge - regions to be mergedIOExceptiondefault void postMergeRegions(ObserverContext<MasterCoprocessorEnvironment> c, HRegionInfo[] regionsToMerge) throws IOException
c - coprocessor environmentregionsToMerge - regions to be mergedIOExceptiondefault void preMoveServersAndTables(ObserverContext<MasterCoprocessorEnvironment> ctx, Set<Address> servers, Set<TableName> tables, String targetGroup) throws IOException
ctx - the environment to interact with the framework and masterservers - set of servers to movetargetGroup - destination groupIOExceptiondefault void postMoveServersAndTables(ObserverContext<MasterCoprocessorEnvironment> ctx, Set<Address> servers, Set<TableName> tables, String targetGroup) throws IOException
ctx - the environment to interact with the framework and masterservers - set of servers to movetargetGroup - name of groupIOExceptiondefault void preMoveServers(ObserverContext<MasterCoprocessorEnvironment> ctx, Set<Address> servers, String targetGroup) throws IOException
ctx - the environment to interact with the framework and masterservers - set of servers to movetargetGroup - destination groupIOExceptiondefault void postMoveServers(ObserverContext<MasterCoprocessorEnvironment> ctx, Set<Address> servers, String targetGroup) throws IOException
ctx - the environment to interact with the framework and masterservers - set of servers to movetargetGroup - name of groupIOExceptiondefault void preMoveTables(ObserverContext<MasterCoprocessorEnvironment> ctx, Set<TableName> tables, String targetGroup) throws IOException
ctx - the environment to interact with the framework and mastertables - set of tables to movetargetGroup - name of groupIOExceptiondefault void postMoveTables(ObserverContext<MasterCoprocessorEnvironment> ctx, Set<TableName> tables, String targetGroup) throws IOException
ctx - the environment to interact with the framework and mastertables - set of tables to movetargetGroup - name of groupIOExceptiondefault void preAddRSGroup(ObserverContext<MasterCoprocessorEnvironment> ctx, String name) throws IOException
ctx - the environment to interact with the framework and mastername - group nameIOExceptiondefault void postAddRSGroup(ObserverContext<MasterCoprocessorEnvironment> ctx, String name) throws IOException
ctx - the environment to interact with the framework and mastername - group nameIOExceptiondefault void preRemoveRSGroup(ObserverContext<MasterCoprocessorEnvironment> ctx, String name) throws IOException
ctx - the environment to interact with the framework and mastername - group nameIOExceptiondefault void postRemoveRSGroup(ObserverContext<MasterCoprocessorEnvironment> ctx, String name) throws IOException
ctx - the environment to interact with the framework and mastername - group nameIOExceptiondefault void preBalanceRSGroup(ObserverContext<MasterCoprocessorEnvironment> ctx, String groupName) throws IOException
ctx - the environment to interact with the framework and mastergroupName - group nameIOExceptiondefault void postBalanceRSGroup(ObserverContext<MasterCoprocessorEnvironment> ctx, String groupName, boolean balancerRan) throws IOException
ctx - the environment to interact with the framework and mastergroupName - group nameIOExceptiondefault void preAddReplicationPeer(ObserverContext<MasterCoprocessorEnvironment> ctx, String peerId, ReplicationPeerConfig peerConfig) throws IOException
ctx - the environment to interact with the framework and masterpeerId - a short name that identifies the peerpeerConfig - configuration for the replication peerIOExceptiondefault void postAddReplicationPeer(ObserverContext<MasterCoprocessorEnvironment> ctx, String peerId, ReplicationPeerConfig peerConfig) throws IOException
ctx - the environment to interact with the framework and masterpeerId - a short name that identifies the peerpeerConfig - configuration for the replication peerIOExceptiondefault void preRemoveReplicationPeer(ObserverContext<MasterCoprocessorEnvironment> ctx, String peerId) throws IOException
ctx - peerId - a short name that identifies the peerIOExceptiondefault void postRemoveReplicationPeer(ObserverContext<MasterCoprocessorEnvironment> ctx, String peerId) throws IOException
ctx - peerId - a short name that identifies the peerIOExceptiondefault void preEnableReplicationPeer(ObserverContext<MasterCoprocessorEnvironment> ctx, String peerId) throws IOException
ctx - peerId - a short name that identifies the peerIOExceptiondefault void postEnableReplicationPeer(ObserverContext<MasterCoprocessorEnvironment> ctx, String peerId) throws IOException
ctx - peerId - a short name that identifies the peerIOExceptiondefault void preDisableReplicationPeer(ObserverContext<MasterCoprocessorEnvironment> ctx, String peerId) throws IOException
ctx - peerId - a short name that identifies the peerIOExceptiondefault void postDisableReplicationPeer(ObserverContext<MasterCoprocessorEnvironment> ctx, String peerId) throws IOException
ctx - peerId - a short name that identifies the peerIOExceptiondefault void preGetReplicationPeerConfig(ObserverContext<MasterCoprocessorEnvironment> ctx, String peerId) throws IOException
ctx - peerId - a short name that identifies the peerIOExceptiondefault void postGetReplicationPeerConfig(ObserverContext<MasterCoprocessorEnvironment> ctx, String peerId) throws IOException
ctx - peerId - a short name that identifies the peerIOExceptiondefault void preUpdateReplicationPeerConfig(ObserverContext<MasterCoprocessorEnvironment> ctx, String peerId, ReplicationPeerConfig peerConfig) throws IOException
ctx - peerId - a short name that identifies the peerIOExceptiondefault void postUpdateReplicationPeerConfig(ObserverContext<MasterCoprocessorEnvironment> ctx, String peerId, ReplicationPeerConfig peerConfig) throws IOException
ctx - the environment to interact with the framework and masterpeerId - a short name that identifies the peerIOExceptiondefault void preListReplicationPeers(ObserverContext<MasterCoprocessorEnvironment> ctx, String regex) throws IOException
ctx - the environment to interact with the framework and masterregex - The regular expression to match peer idIOExceptiondefault void postListReplicationPeers(ObserverContext<MasterCoprocessorEnvironment> ctx, String regex) throws IOException
ctx - the environment to interact with the framework and masterregex - The regular expression to match peer idIOExceptiondefault void preRequestLock(ObserverContext<MasterCoprocessorEnvironment> ctx, String namespace, TableName tableName, HRegionInfo[] regionInfos, LockProcedure.LockType type, String description) throws IOException
ctx - the environment to interact with the framework and masterIOExceptiondefault void postRequestLock(ObserverContext<MasterCoprocessorEnvironment> ctx, String namespace, TableName tableName, HRegionInfo[] regionInfos, LockProcedure.LockType type, String description) throws IOException
ctx - the environment to interact with the framework and masterIOExceptiondefault void preLockHeartbeat(ObserverContext<MasterCoprocessorEnvironment> ctx, LockProcedure proc, boolean keepAlive) throws IOException
ctx - the environment to interact with the framework and masterkeepAlive - if lock should be kept alive; lock will be released if set to false.IOExceptiondefault void postLockHeartbeat(ObserverContext<MasterCoprocessorEnvironment> ctx, LockProcedure proc, boolean keepAlive) throws IOException
ctx - the environment to interact with the framework and masterkeepAlive - if lock was kept alive; lock was released if set to false.IOExceptionCopyright © 2007–2017 The Apache Software Foundation. All rights reserved.