All Methods Instance Methods Concrete Methods
Modifier and Type |
Method and Description |
void |
enableBypass(boolean bypass) |
void |
postAbortProcedure(ObserverContext<MasterCoprocessorEnvironment> ctx)
Called after a abortProcedure request has been processed.
|
void |
postAddColumn(ObserverContext<MasterCoprocessorEnvironment> env,
TableName tableName,
HColumnDescriptor column)
Called after the new column family has been created.
|
void |
postAddColumnHandler(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName,
HColumnDescriptor column)
Called after the new column family has been created.
|
void |
postAssign(ObserverContext<MasterCoprocessorEnvironment> env,
HRegionInfo regionInfo)
Called after the region assignment has been requested.
|
void |
postBalance(ObserverContext<MasterCoprocessorEnvironment> env,
List<RegionPlan> plans)
Called after the balancing plan has been submitted.
|
void |
postBalanceSwitch(ObserverContext<MasterCoprocessorEnvironment> env,
boolean oldValue,
boolean newValue)
Called after the flag to enable/disable balancing has changed.
|
void |
postCloneSnapshot(ObserverContext<MasterCoprocessorEnvironment> ctx,
HBaseProtos.SnapshotDescription snapshot,
HTableDescriptor hTableDescriptor)
Called after a snapshot clone operation has been requested.
|
void |
postCreateNamespace(ObserverContext<MasterCoprocessorEnvironment> env,
NamespaceDescriptor ns)
Called after the createNamespace operation has been requested.
|
void |
postCreateTable(ObserverContext<MasterCoprocessorEnvironment> env,
HTableDescriptor desc,
HRegionInfo[] regions)
Called after the createTable operation has been requested.
|
void |
postCreateTableHandler(ObserverContext<MasterCoprocessorEnvironment> ctx,
HTableDescriptor desc,
HRegionInfo[] regions)
Called after the createTable operation has been requested.
|
void |
postDeleteColumn(ObserverContext<MasterCoprocessorEnvironment> env,
TableName tableName,
byte[] c)
Called after the column family has been deleted.
|
void |
postDeleteColumnHandler(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName,
byte[] c)
Called after the column family has been deleted.
|
void |
postDeleteNamespace(ObserverContext<MasterCoprocessorEnvironment> env,
String name)
Called after the deleteNamespace operation has been requested.
|
void |
postDeleteSnapshot(ObserverContext<MasterCoprocessorEnvironment> ctx,
HBaseProtos.SnapshotDescription snapshot)
Called after the delete snapshot operation has been requested.
|
void |
postDeleteTable(ObserverContext<MasterCoprocessorEnvironment> env,
TableName tableName)
Called after the deleteTable operation has been requested.
|
void |
postDeleteTableHandler(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName)
Called after HMaster deletes a
table.
|
void |
postDisableTable(ObserverContext<MasterCoprocessorEnvironment> env,
TableName tableName)
Called after the disableTable operation has been requested.
|
void |
postDisableTableHandler(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName)
Called after the disableTable operation has been requested.
|
void |
postEnableTable(ObserverContext<MasterCoprocessorEnvironment> env,
TableName tableName)
Called after the enableTable operation has been requested.
|
void |
postEnableTableHandler(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName)
Called after the enableTable operation has been requested.
|
void |
postGetNamespaceDescriptor(ObserverContext<MasterCoprocessorEnvironment> ctx,
NamespaceDescriptor ns)
Called after a getNamespaceDescriptor request has been processed.
|
void |
postGetTableDescriptors(ObserverContext<MasterCoprocessorEnvironment> ctx,
List<HTableDescriptor> descriptors)
Called after a getTableDescriptors request has been processed.
|
void |
postGetTableDescriptors(ObserverContext<MasterCoprocessorEnvironment> ctx,
List<TableName> tableNamesList,
List<HTableDescriptor> descriptors,
String regex)
Called after a getTableDescriptors request has been processed.
|
void |
postGetTableNames(ObserverContext<MasterCoprocessorEnvironment> ctx,
List<HTableDescriptor> descriptors,
String regex)
Called after a getTableNames request has been processed.
|
void |
postListNamespaceDescriptors(ObserverContext<MasterCoprocessorEnvironment> env,
List<NamespaceDescriptor> descriptors)
Called after a listNamespaceDescriptors request has been processed.
|
void |
postListProcedures(ObserverContext<MasterCoprocessorEnvironment> ctx,
List<ProcedureInfo> procInfoList)
Called after a listProcedures request has been processed.
|
void |
postListSnapshot(ObserverContext<MasterCoprocessorEnvironment> ctx,
HBaseProtos.SnapshotDescription snapshot)
Called after listSnapshots request has been processed.
|
void |
postModifyColumn(ObserverContext<MasterCoprocessorEnvironment> env,
TableName tableName,
HColumnDescriptor descriptor)
Called after the column family has been updated.
|
void |
postModifyColumnHandler(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName,
HColumnDescriptor descriptor)
Called after the column family has been updated.
|
void |
postModifyNamespace(ObserverContext<MasterCoprocessorEnvironment> env,
NamespaceDescriptor ns)
Called after the modifyNamespace operation has been requested.
|
void |
postModifyTable(ObserverContext<MasterCoprocessorEnvironment> env,
TableName tableName,
HTableDescriptor htd)
Called after the modifyTable operation has been requested.
|
void |
postModifyTableHandler(ObserverContext<MasterCoprocessorEnvironment> env,
TableName tableName,
HTableDescriptor htd)
Called after to modifying a table's properties.
|
void |
postMove(ObserverContext<MasterCoprocessorEnvironment> env,
HRegionInfo region,
ServerName srcServer,
ServerName destServer)
Called after the region move has been requested.
|
void |
postRegionOffline(ObserverContext<MasterCoprocessorEnvironment> env,
HRegionInfo regionInfo)
Called after the region has been marked offline.
|
void |
postRestoreSnapshot(ObserverContext<MasterCoprocessorEnvironment> ctx,
HBaseProtos.SnapshotDescription snapshot,
HTableDescriptor hTableDescriptor)
Called after a snapshot restore operation has been requested.
|
void |
postSetNamespaceQuota(ObserverContext<MasterCoprocessorEnvironment> ctx,
String namespace,
QuotaProtos.Quotas quotas)
Called after the quota for the namespace is stored.
|
void |
postSetTableQuota(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName,
QuotaProtos.Quotas quotas)
Called after the quota for the table is stored.
|
void |
postSetUserQuota(ObserverContext<MasterCoprocessorEnvironment> ctx,
String userName,
QuotaProtos.Quotas quotas)
Called after the quota for the user is stored.
|
void |
postSetUserQuota(ObserverContext<MasterCoprocessorEnvironment> ctx,
String userName,
String namespace,
QuotaProtos.Quotas quotas)
Called after the quota for the user on the specified namespace is stored.
|
void |
postSetUserQuota(ObserverContext<MasterCoprocessorEnvironment> ctx,
String userName,
TableName tableName,
QuotaProtos.Quotas quotas)
Called after the quota for the user on the specified table is stored.
|
void |
postSnapshot(ObserverContext<MasterCoprocessorEnvironment> ctx,
HBaseProtos.SnapshotDescription snapshot,
HTableDescriptor hTableDescriptor)
Called after the snapshot operation has been requested.
|
void |
postStartMaster(ObserverContext<MasterCoprocessorEnvironment> ctx)
Called immediately after an active master instance has completed
initialization.
|
void |
postTableFlush(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName)
Called after the table memstore is flushed to disk.
|
void |
postTruncateTable(ObserverContext<MasterCoprocessorEnvironment> env,
TableName tableName)
Called after the truncateTable operation has been requested.
|
void |
postTruncateTableHandler(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName)
Called after HMaster truncates a
table.
|
void |
postUnassign(ObserverContext<MasterCoprocessorEnvironment> env,
HRegionInfo regionInfo,
boolean force)
Called after the region unassignment has been requested.
|
void |
preAbortProcedure(ObserverContext<MasterCoprocessorEnvironment> ctx,
ProcedureExecutor<MasterProcedureEnv> procEnv,
long procId)
Called before a abortProcedure request has been processed.
|
void |
preAddColumn(ObserverContext<MasterCoprocessorEnvironment> env,
TableName tableName,
HColumnDescriptor column)
Called prior to adding a new column family to the table.
|
boolean |
preAddColumnCalledOnly() |
void |
preAddColumnHandler(ObserverContext<MasterCoprocessorEnvironment> env,
TableName tableName,
HColumnDescriptor column)
Called prior to adding a new column family to the table.
|
boolean |
preAddColumnHandlerCalledOnly() |
void |
preAssign(ObserverContext<MasterCoprocessorEnvironment> env,
HRegionInfo regionInfo)
Called prior to assigning a specific region.
|
boolean |
preAssignCalledOnly() |
void |
preBalance(ObserverContext<MasterCoprocessorEnvironment> env)
Called prior to requesting rebalancing of the cluster regions, though after
the initial checks for regions in transition and the balance switch flag.
|
boolean |
preBalanceCalledOnly() |
boolean |
preBalanceSwitch(ObserverContext<MasterCoprocessorEnvironment> env,
boolean b)
Called prior to modifying the flag used to enable/disable region balancing.
|
boolean |
preBalanceSwitchCalledOnly() |
void |
preCloneSnapshot(ObserverContext<MasterCoprocessorEnvironment> ctx,
HBaseProtos.SnapshotDescription snapshot,
HTableDescriptor hTableDescriptor)
Called before a snapshot is cloned.
|
void |
preCreateNamespace(ObserverContext<MasterCoprocessorEnvironment> env,
NamespaceDescriptor ns)
Called before a new namespace is created by
HMaster .
|
boolean |
preCreateNamespaceCalledOnly() |
void |
preCreateTable(ObserverContext<MasterCoprocessorEnvironment> env,
HTableDescriptor desc,
HRegionInfo[] regions)
Called before a new table is created by
HMaster .
|
boolean |
preCreateTableCalledOnly() |
void |
preCreateTableHandler(ObserverContext<MasterCoprocessorEnvironment> env,
HTableDescriptor desc,
HRegionInfo[] regions)
Called before a new table is created by
HMaster .
|
void |
preDeleteColumn(ObserverContext<MasterCoprocessorEnvironment> env,
TableName tableName,
byte[] c)
Called prior to deleting the entire column family.
|
boolean |
preDeleteColumnCalledOnly() |
void |
preDeleteColumnHandler(ObserverContext<MasterCoprocessorEnvironment> env,
TableName tableName,
byte[] c)
Called prior to deleting the entire column family.
|
boolean |
preDeleteColumnHandlerCalledOnly() |
void |
preDeleteNamespace(ObserverContext<MasterCoprocessorEnvironment> env,
String name)
Called before HMaster deletes a
namespace
It can't bypass the default action, e.g., ctx.bypass() won't have effect.
|
boolean |
preDeleteNamespaceCalledOnly() |
void |
preDeleteSnapshot(ObserverContext<MasterCoprocessorEnvironment> ctx,
HBaseProtos.SnapshotDescription snapshot)
Called before a snapshot is deleted.
|
void |
preDeleteTable(ObserverContext<MasterCoprocessorEnvironment> env,
TableName tableName)
Called before HMaster deletes a
table.
|
boolean |
preDeleteTableCalledOnly() |
void |
preDeleteTableHandler(ObserverContext<MasterCoprocessorEnvironment> env,
TableName tableName)
Called before HMaster deletes a
table.
|
void |
preDisableTable(ObserverContext<MasterCoprocessorEnvironment> env,
TableName tableName)
Called prior to disabling a table.
|
boolean |
preDisableTableCalledOnly() |
void |
preDisableTableHandler(ObserverContext<MasterCoprocessorEnvironment> env,
TableName tableName)
Called prior to disabling a table.
|
boolean |
preDisableTableHandlerCalledOnly() |
void |
preEnableTable(ObserverContext<MasterCoprocessorEnvironment> env,
TableName tableName)
Called prior to enabling a table.
|
boolean |
preEnableTableCalledOnly() |
void |
preEnableTableHandler(ObserverContext<MasterCoprocessorEnvironment> env,
TableName tableName)
Called prior to enabling a table.
|
boolean |
preEnableTableHandlerCalledOnly() |
void |
preGetNamespaceDescriptor(ObserverContext<MasterCoprocessorEnvironment> ctx,
String namespace)
Called before a getNamespaceDescriptor request has been processed.
|
void |
preGetTableDescriptors(ObserverContext<MasterCoprocessorEnvironment> ctx,
List<TableName> tableNamesList,
List<HTableDescriptor> descriptors)
Called before a getTableDescriptors request has been processed.
|
void |
preGetTableDescriptors(ObserverContext<MasterCoprocessorEnvironment> ctx,
List<TableName> tableNamesList,
List<HTableDescriptor> descriptors,
String regex)
Called before a getTableDescriptors request has been processed.
|
void |
preGetTableNames(ObserverContext<MasterCoprocessorEnvironment> ctx,
List<HTableDescriptor> descriptors,
String regex)
Called before a getTableNames request has been processed.
|
void |
preListNamespaceDescriptors(ObserverContext<MasterCoprocessorEnvironment> env,
List<NamespaceDescriptor> descriptors)
Called before a listNamespaceDescriptors request has been processed.
|
boolean |
preListNamespaceDescriptorsCalledOnly() |
void |
preListProcedures(ObserverContext<MasterCoprocessorEnvironment> ctx)
Called before a listProcedures request has been processed.
|
void |
preListSnapshot(ObserverContext<MasterCoprocessorEnvironment> ctx,
HBaseProtos.SnapshotDescription snapshot)
Called before listSnapshots request has been processed.
|
void |
preMasterInitialization(ObserverContext<MasterCoprocessorEnvironment> ctx)
Call before the master initialization is set to true.
|
void |
preModifyColumn(ObserverContext<MasterCoprocessorEnvironment> env,
TableName tableName,
HColumnDescriptor descriptor)
Called prior to modifying a column family's attributes.
|
boolean |
preModifyColumnCalledOnly() |
void |
preModifyColumnHandler(ObserverContext<MasterCoprocessorEnvironment> env,
TableName tableName,
HColumnDescriptor descriptor)
Called prior to modifying a column family's attributes.
|
boolean |
preModifyColumnHandlerCalledOnly() |
void |
preModifyNamespace(ObserverContext<MasterCoprocessorEnvironment> env,
NamespaceDescriptor ns)
Called prior to modifying a namespace's properties.
|
boolean |
preModifyNamespaceCalledOnly() |
void |
preModifyTable(ObserverContext<MasterCoprocessorEnvironment> env,
TableName tableName,
HTableDescriptor htd)
Called prior to modifying a table's properties.
|
boolean |
preModifyTableCalledOnly() |
void |
preModifyTableHandler(ObserverContext<MasterCoprocessorEnvironment> env,
TableName tableName,
HTableDescriptor htd)
Called prior to modifying a table's properties.
|
void |
preMove(ObserverContext<MasterCoprocessorEnvironment> env,
HRegionInfo region,
ServerName srcServer,
ServerName destServer)
Called prior to moving a given region from one region server to another.
|
boolean |
preMoveCalledOnly() |
void |
preRegionOffline(ObserverContext<MasterCoprocessorEnvironment> env,
HRegionInfo regionInfo)
Called prior to marking a given region as offline.
|
boolean |
preRegionOfflineCalledOnly() |
void |
preRestoreSnapshot(ObserverContext<MasterCoprocessorEnvironment> ctx,
HBaseProtos.SnapshotDescription snapshot,
HTableDescriptor hTableDescriptor)
Called before a snapshot is restored.
|
void |
preSetNamespaceQuota(ObserverContext<MasterCoprocessorEnvironment> ctx,
String namespace,
QuotaProtos.Quotas quotas)
Called before the quota for the namespace is stored.
|
void |
preSetTableQuota(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName,
QuotaProtos.Quotas quotas)
Called before the quota for the table is stored.
|
void |
preSetUserQuota(ObserverContext<MasterCoprocessorEnvironment> ctx,
String userName,
QuotaProtos.Quotas quotas)
Called before the quota for the user is stored.
|
void |
preSetUserQuota(ObserverContext<MasterCoprocessorEnvironment> ctx,
String userName,
String namespace,
QuotaProtos.Quotas quotas)
Called before the quota for the user on the specified namespace is stored.
|
void |
preSetUserQuota(ObserverContext<MasterCoprocessorEnvironment> ctx,
String userName,
TableName tableName,
QuotaProtos.Quotas quotas)
Called before the quota for the user on the specified table is stored.
|
void |
preShutdown(ObserverContext<MasterCoprocessorEnvironment> env)
Called prior to shutting down the full HBase cluster, including this
HMaster process.
|
void |
preSnapshot(ObserverContext<MasterCoprocessorEnvironment> ctx,
HBaseProtos.SnapshotDescription snapshot,
HTableDescriptor hTableDescriptor)
Called before a new snapshot is taken.
|
void |
preStopMaster(ObserverContext<MasterCoprocessorEnvironment> env)
Called immediately prior to stopping this
HMaster process.
|
void |
preTableFlush(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName)
Called before the table memstore is flushed to disk.
|
void |
preTruncateTable(ObserverContext<MasterCoprocessorEnvironment> env,
TableName tableName)
Called before HMaster truncates a
table.
|
boolean |
preTruncateTableCalledOnly() |
void |
preTruncateTableHandler(ObserverContext<MasterCoprocessorEnvironment> env,
TableName tableName)
Called before HMaster truncates a
table.
|
void |
preUnassign(ObserverContext<MasterCoprocessorEnvironment> env,
HRegionInfo regionInfo,
boolean force)
Called prior to unassigning a given region.
|
boolean |
preUnassignCalledOnly() |
void |
resetStates() |
void |
start(CoprocessorEnvironment env) |
void |
stop(CoprocessorEnvironment env) |
boolean |
wasAbortProcedureCalled() |
boolean |
wasAddColumnCalled() |
boolean |
wasAddColumnHandlerCalled() |
boolean |
wasAssignCalled() |
boolean |
wasBalanceCalled() |
boolean |
wasBalanceSwitchCalled() |
boolean |
wasCloneSnapshotCalled() |
boolean |
wasCreateNamespaceCalled() |
boolean |
wasCreateTableCalled() |
boolean |
wasCreateTableHandlerCalled() |
boolean |
wasCreateTableHandlerCalledOnly() |
boolean |
wasDeleteColumnCalled() |
boolean |
wasDeleteColumnHandlerCalled() |
boolean |
wasDeleteNamespaceCalled() |
boolean |
wasDeleteSnapshotCalled() |
boolean |
wasDeleteTableCalled() |
boolean |
wasDeleteTableHandlerCalled() |
boolean |
wasDeleteTableHandlerCalledOnly() |
boolean |
wasDisableTableCalled() |
boolean |
wasDisableTableHandlerCalled() |
boolean |
wasEnableTableCalled() |
boolean |
wasEnableTableHandlerCalled() |
boolean |
wasGetNamespaceDescriptorCalled() |
boolean |
wasGetTableDescriptorsCalled() |
boolean |
wasGetTableNamesCalled() |
boolean |
wasListNamespaceDescriptorsCalled() |
boolean |
wasListProceduresCalled() |
boolean |
wasListSnapshotCalled() |
boolean |
wasMasterInitializationCalled() |
boolean |
wasModifyColumnCalled() |
boolean |
wasModifyColumnHandlerCalled() |
boolean |
wasModifyNamespaceCalled() |
boolean |
wasModifyTableCalled() |
boolean |
wasModifyTableHandlerCalled() |
boolean |
wasModifyTableHandlerCalledOnly() |
boolean |
wasMoveCalled() |
boolean |
wasPreAbortProcedureCalledOnly() |
boolean |
wasPreCreateTableHandlerCalled() |
boolean |
wasPreListProceduresCalledOnly() |
boolean |
wasRegionOfflineCalled() |
boolean |
wasRestoreSnapshotCalled() |
boolean |
wasSnapshotCalled() |
boolean |
wasStarted() |
boolean |
wasStartMasterCalled() |
boolean |
wasStopped() |
boolean |
wasTruncateTableCalled() |
boolean |
wasTruncateTableHandlerCalled() |
boolean |
wasTruncateTableHandlerCalledOnly() |
boolean |
wasUnassignCalled() |