|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MasterObserver
Defines coprocessor hooks for interacting with operations on the
HMaster process.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.apache.hadoop.hbase.Coprocessor |
|---|
Coprocessor.State |
| Field Summary |
|---|
| Fields inherited from interface org.apache.hadoop.hbase.Coprocessor |
|---|
PRIORITY_HIGHEST, PRIORITY_LOWEST, PRIORITY_SYSTEM, PRIORITY_USER, VERSION |
| Method Summary | |
|---|---|
void |
postAddColumn(ObserverContext<MasterCoprocessorEnvironment> ctx,
byte[] tableName,
HColumnDescriptor column)
Called after the new column family has been created. |
void |
postAssign(ObserverContext<MasterCoprocessorEnvironment> ctx,
HRegionInfo regionInfo)
Called after the region assignment has been requested. |
void |
postBalance(ObserverContext<MasterCoprocessorEnvironment> ctx)
Called after the balancing plan has been submitted. |
void |
postBalanceSwitch(ObserverContext<MasterCoprocessorEnvironment> ctx,
boolean oldValue,
boolean newValue)
Called after the flag to enable/disable balancing has changed. |
void |
postCreateTable(ObserverContext<MasterCoprocessorEnvironment> ctx,
HTableDescriptor desc,
HRegionInfo[] regions)
Called after the createTable operation has been requested. |
void |
postDeleteColumn(ObserverContext<MasterCoprocessorEnvironment> ctx,
byte[] tableName,
byte[] c)
Called after the column family has been deleted. |
void |
postDeleteTable(ObserverContext<MasterCoprocessorEnvironment> ctx,
byte[] tableName)
Called after the deleteTable operation has been requested. |
void |
postDisableTable(ObserverContext<MasterCoprocessorEnvironment> ctx,
byte[] tableName)
Called after the disableTable operation has been requested. |
void |
postEnableTable(ObserverContext<MasterCoprocessorEnvironment> ctx,
byte[] tableName)
Called after the enableTable operation has been requested. |
void |
postModifyColumn(ObserverContext<MasterCoprocessorEnvironment> ctx,
byte[] tableName,
HColumnDescriptor descriptor)
Called after the column family has been updated. |
void |
postModifyTable(ObserverContext<MasterCoprocessorEnvironment> ctx,
byte[] tableName,
HTableDescriptor htd)
Called after the modifyTable operation has been requested. |
void |
postMove(ObserverContext<MasterCoprocessorEnvironment> ctx,
HRegionInfo region,
ServerName srcServer,
ServerName destServer)
Called after the region move has been requested. |
void |
postStartMaster(ObserverContext<MasterCoprocessorEnvironment> ctx)
Called immediately after an active master instance has completed initialization. |
void |
postUnassign(ObserverContext<MasterCoprocessorEnvironment> ctx,
HRegionInfo regionInfo,
boolean force)
Called after the region unassignment has been requested. |
void |
preAddColumn(ObserverContext<MasterCoprocessorEnvironment> ctx,
byte[] tableName,
HColumnDescriptor column)
Called prior to adding a new column family to the table. |
void |
preAssign(ObserverContext<MasterCoprocessorEnvironment> ctx,
HRegionInfo regionInfo)
Called prior to assigning a specific region. |
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. |
boolean |
preBalanceSwitch(ObserverContext<MasterCoprocessorEnvironment> ctx,
boolean newValue)
Called prior to modifying the flag used to enable/disable region balancing. |
void |
preCreateTable(ObserverContext<MasterCoprocessorEnvironment> ctx,
HTableDescriptor desc,
HRegionInfo[] regions)
Called before a new table is created by HMaster. |
void |
preDeleteColumn(ObserverContext<MasterCoprocessorEnvironment> ctx,
byte[] tableName,
byte[] c)
Called prior to deleting the entire column family. |
void |
preDeleteTable(ObserverContext<MasterCoprocessorEnvironment> ctx,
byte[] tableName)
Called before HMaster deletes a
table
It can't bypass the default action, e.g., ctx.bypass() won't have effect. |
void |
preDisableTable(ObserverContext<MasterCoprocessorEnvironment> ctx,
byte[] tableName)
Called prior to disabling a table. |
void |
preEnableTable(ObserverContext<MasterCoprocessorEnvironment> ctx,
byte[] tableName)
Called prior to enabling a table. |
void |
preModifyColumn(ObserverContext<MasterCoprocessorEnvironment> ctx,
byte[] tableName,
HColumnDescriptor descriptor)
Called prior to modifying a column family's attributes. |
void |
preModifyTable(ObserverContext<MasterCoprocessorEnvironment> ctx,
byte[] tableName,
HTableDescriptor htd)
Called prior to modifying a table's properties. |
void |
preMove(ObserverContext<MasterCoprocessorEnvironment> ctx,
HRegionInfo region,
ServerName srcServer,
ServerName destServer)
Called prior to moving a given region from one region server to another. |
void |
preShutdown(ObserverContext<MasterCoprocessorEnvironment> ctx)
Called prior to shutting down the full HBase cluster, including this HMaster process. |
void |
preStopMaster(ObserverContext<MasterCoprocessorEnvironment> ctx)
Called immediately prior to stopping this HMaster process. |
void |
preUnassign(ObserverContext<MasterCoprocessorEnvironment> ctx,
HRegionInfo regionInfo,
boolean force)
Called prior to unassigning a given region. |
| Methods inherited from interface org.apache.hadoop.hbase.Coprocessor |
|---|
start, stop |
| Method Detail |
|---|
void preCreateTable(ObserverContext<MasterCoprocessorEnvironment> ctx,
HTableDescriptor desc,
HRegionInfo[] regions)
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 masterdesc - the HTableDescriptor for the tableregions - the initial regions created for the table
IOException
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 table
IOException
void preDeleteTable(ObserverContext<MasterCoprocessorEnvironment> ctx,
byte[] tableName)
throws IOException
HMaster deletes a
table
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 table
IOException
void postDeleteTable(ObserverContext<MasterCoprocessorEnvironment> ctx,
byte[] tableName)
throws IOException
ctx - the environment to interact with the framework and mastertableName - the name of the table
IOException
void preModifyTable(ObserverContext<MasterCoprocessorEnvironment> ctx,
byte[] tableName,
HTableDescriptor htd)
throws IOException
ctx - the environment to interact with the framework and mastertableName - the name of the tablehtd - the HTableDescriptor
IOException
void postModifyTable(ObserverContext<MasterCoprocessorEnvironment> ctx,
byte[] tableName,
HTableDescriptor htd)
throws IOException
ctx - the environment to interact with the framework and mastertableName - the name of the tablehtd - the HTableDescriptor
IOException
void preAddColumn(ObserverContext<MasterCoprocessorEnvironment> ctx,
byte[] tableName,
HColumnDescriptor column)
throws IOException
ctx - the environment to interact with the framework and mastertableName - the name of the tablecolumn - the HColumnDescriptor
IOException
void postAddColumn(ObserverContext<MasterCoprocessorEnvironment> ctx,
byte[] tableName,
HColumnDescriptor column)
throws IOException
ctx - the environment to interact with the framework and mastertableName - the name of the tablecolumn - the HColumnDescriptor
IOException
void preModifyColumn(ObserverContext<MasterCoprocessorEnvironment> ctx,
byte[] tableName,
HColumnDescriptor descriptor)
throws IOException
ctx - the environment to interact with the framework and mastertableName - the name of the tabledescriptor - the HColumnDescriptor
IOException
void postModifyColumn(ObserverContext<MasterCoprocessorEnvironment> ctx,
byte[] tableName,
HColumnDescriptor descriptor)
throws IOException
ctx - the environment to interact with the framework and mastertableName - the name of the tabledescriptor - the HColumnDescriptor
IOException
void preDeleteColumn(ObserverContext<MasterCoprocessorEnvironment> ctx,
byte[] tableName,
byte[] c)
throws IOException
ctx - the environment to interact with the framework and mastertableName - the name of the tablec - the column
IOException
void postDeleteColumn(ObserverContext<MasterCoprocessorEnvironment> ctx,
byte[] tableName,
byte[] c)
throws IOException
ctx - the environment to interact with the framework and mastertableName - the name of the tablec - the column
IOException
void preEnableTable(ObserverContext<MasterCoprocessorEnvironment> ctx,
byte[] tableName)
throws IOException
ctx - the environment to interact with the framework and mastertableName - the name of the table
IOException
void postEnableTable(ObserverContext<MasterCoprocessorEnvironment> ctx,
byte[] tableName)
throws IOException
ctx - the environment to interact with the framework and mastertableName - the name of the table
IOException
void preDisableTable(ObserverContext<MasterCoprocessorEnvironment> ctx,
byte[] tableName)
throws IOException
ctx - the environment to interact with the framework and mastertableName - the name of the table
IOException
void postDisableTable(ObserverContext<MasterCoprocessorEnvironment> ctx,
byte[] tableName)
throws IOException
ctx - the environment to interact with the framework and mastertableName - the name of the table
IOException
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 ServerName
IOException
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 ServerName
IOException
void preAssign(ObserverContext<MasterCoprocessorEnvironment> ctx,
HRegionInfo regionInfo)
throws IOException
ctx - the environment to interact with the framework and masterregionInfo - the regionInfo of the region
IOException
void postAssign(ObserverContext<MasterCoprocessorEnvironment> ctx,
HRegionInfo regionInfo)
throws IOException
ctx - the environment to interact with the framework and masterregionInfo - the regionInfo of the region
IOException
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 not
IOException
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 not
IOException
void preBalance(ObserverContext<MasterCoprocessorEnvironment> ctx)
throws IOException
ctx - the environment to interact with the framework and master
IOException
void postBalance(ObserverContext<MasterCoprocessorEnvironment> ctx)
throws IOException
ctx - the environment to interact with the framework and master
IOException
boolean preBalanceSwitch(ObserverContext<MasterCoprocessorEnvironment> ctx,
boolean newValue)
throws IOException
ctx - the coprocessor instance's environmentnewValue - the new flag value submitted in the call
IOException
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 value
IOException
void preShutdown(ObserverContext<MasterCoprocessorEnvironment> ctx)
throws IOException
HMaster process.
IOException
void preStopMaster(ObserverContext<MasterCoprocessorEnvironment> ctx)
throws IOException
HMaster process.
IOException
void postStartMaster(ObserverContext<MasterCoprocessorEnvironment> ctx)
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||