|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hbase.coprocessor.BaseMasterObserver
public class BaseMasterObserver
| 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 |
| Constructor Summary | |
|---|---|
BaseMasterObserver()
|
|
| 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 b)
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. |
void |
start(CoprocessorEnvironment ctx)
|
void |
stop(CoprocessorEnvironment ctx)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BaseMasterObserver()
| Method Detail |
|---|
public void preCreateTable(ObserverContext<MasterCoprocessorEnvironment> ctx,
HTableDescriptor desc,
HRegionInfo[] regions)
throws IOException
MasterObserverHMaster.
It can't bypass the default action, e.g., ctx.bypass() won't have effect.
preCreateTable in interface MasterObserverctx - the environment to interact with the framework and masterdesc - the HTableDescriptor for the tableregions - the initial regions created for the table
IOException
public void postCreateTable(ObserverContext<MasterCoprocessorEnvironment> ctx,
HTableDescriptor desc,
HRegionInfo[] regions)
throws IOException
MasterObserver
postCreateTable in interface MasterObserverctx - the environment to interact with the framework and masterdesc - the HTableDescriptor for the tableregions - the initial regions created for the table
IOException
public void preDeleteTable(ObserverContext<MasterCoprocessorEnvironment> ctx,
byte[] tableName)
throws IOException
MasterObserverHMaster deletes a
table
It can't bypass the default action, e.g., ctx.bypass() won't have effect.
preDeleteTable in interface MasterObserverctx - the environment to interact with the framework and mastertableName - the name of the table
IOException
public void postDeleteTable(ObserverContext<MasterCoprocessorEnvironment> ctx,
byte[] tableName)
throws IOException
MasterObserver
postDeleteTable in interface MasterObserverctx - the environment to interact with the framework and mastertableName - the name of the table
IOException
public void preModifyTable(ObserverContext<MasterCoprocessorEnvironment> ctx,
byte[] tableName,
HTableDescriptor htd)
throws IOException
MasterObserver
preModifyTable in interface MasterObserverctx - the environment to interact with the framework and mastertableName - the name of the tablehtd - the HTableDescriptor
IOException
public void postModifyTable(ObserverContext<MasterCoprocessorEnvironment> ctx,
byte[] tableName,
HTableDescriptor htd)
throws IOException
MasterObserver
postModifyTable in interface MasterObserverctx - the environment to interact with the framework and mastertableName - the name of the tablehtd - the HTableDescriptor
IOException
public void preAddColumn(ObserverContext<MasterCoprocessorEnvironment> ctx,
byte[] tableName,
HColumnDescriptor column)
throws IOException
MasterObserver
preAddColumn in interface MasterObserverctx - the environment to interact with the framework and mastertableName - the name of the tablecolumn - the HColumnDescriptor
IOException
public void postAddColumn(ObserverContext<MasterCoprocessorEnvironment> ctx,
byte[] tableName,
HColumnDescriptor column)
throws IOException
MasterObserver
postAddColumn in interface MasterObserverctx - the environment to interact with the framework and mastertableName - the name of the tablecolumn - the HColumnDescriptor
IOException
public void preModifyColumn(ObserverContext<MasterCoprocessorEnvironment> ctx,
byte[] tableName,
HColumnDescriptor descriptor)
throws IOException
MasterObserver
preModifyColumn in interface MasterObserverctx - the environment to interact with the framework and mastertableName - the name of the tabledescriptor - the HColumnDescriptor
IOException
public void postModifyColumn(ObserverContext<MasterCoprocessorEnvironment> ctx,
byte[] tableName,
HColumnDescriptor descriptor)
throws IOException
MasterObserver
postModifyColumn in interface MasterObserverctx - the environment to interact with the framework and mastertableName - the name of the tabledescriptor - the HColumnDescriptor
IOException
public void preDeleteColumn(ObserverContext<MasterCoprocessorEnvironment> ctx,
byte[] tableName,
byte[] c)
throws IOException
MasterObserver
preDeleteColumn in interface MasterObserverctx - the environment to interact with the framework and mastertableName - the name of the tablec - the column
IOException
public void postDeleteColumn(ObserverContext<MasterCoprocessorEnvironment> ctx,
byte[] tableName,
byte[] c)
throws IOException
MasterObserver
postDeleteColumn in interface MasterObserverctx - the environment to interact with the framework and mastertableName - the name of the tablec - the column
IOException
public void preEnableTable(ObserverContext<MasterCoprocessorEnvironment> ctx,
byte[] tableName)
throws IOException
MasterObserver
preEnableTable in interface MasterObserverctx - the environment to interact with the framework and mastertableName - the name of the table
IOException
public void postEnableTable(ObserverContext<MasterCoprocessorEnvironment> ctx,
byte[] tableName)
throws IOException
MasterObserver
postEnableTable in interface MasterObserverctx - the environment to interact with the framework and mastertableName - the name of the table
IOException
public void preDisableTable(ObserverContext<MasterCoprocessorEnvironment> ctx,
byte[] tableName)
throws IOException
MasterObserver
preDisableTable in interface MasterObserverctx - the environment to interact with the framework and mastertableName - the name of the table
IOException
public void postDisableTable(ObserverContext<MasterCoprocessorEnvironment> ctx,
byte[] tableName)
throws IOException
MasterObserver
postDisableTable in interface MasterObserverctx - the environment to interact with the framework and mastertableName - the name of the table
IOException
public void preAssign(ObserverContext<MasterCoprocessorEnvironment> ctx,
HRegionInfo regionInfo)
throws IOException
MasterObserver
preAssign in interface MasterObserverctx - the environment to interact with the framework and masterregionInfo - the regionInfo of the region
IOException
public void postAssign(ObserverContext<MasterCoprocessorEnvironment> ctx,
HRegionInfo regionInfo)
throws IOException
MasterObserver
postAssign in interface MasterObserverctx - the environment to interact with the framework and masterregionInfo - the regionInfo of the region
IOException
public void preUnassign(ObserverContext<MasterCoprocessorEnvironment> ctx,
HRegionInfo regionInfo,
boolean force)
throws IOException
MasterObserver
preUnassign in interface MasterObserverctx - the environment to interact with the framework and masterforce - whether to force unassignment or not
IOException
public void postUnassign(ObserverContext<MasterCoprocessorEnvironment> ctx,
HRegionInfo regionInfo,
boolean force)
throws IOException
MasterObserver
postUnassign in interface MasterObserverctx - the environment to interact with the framework and masterforce - whether to force unassignment or not
IOException
public void preBalance(ObserverContext<MasterCoprocessorEnvironment> ctx)
throws IOException
MasterObserver
preBalance in interface MasterObserverctx - the environment to interact with the framework and master
IOException
public void postBalance(ObserverContext<MasterCoprocessorEnvironment> ctx)
throws IOException
MasterObserver
postBalance in interface MasterObserverctx - the environment to interact with the framework and master
IOException
public boolean preBalanceSwitch(ObserverContext<MasterCoprocessorEnvironment> ctx,
boolean b)
throws IOException
MasterObserver
preBalanceSwitch in interface MasterObserverctx - the coprocessor instance's environmentb - the new flag value submitted in the call
IOException
public void postBalanceSwitch(ObserverContext<MasterCoprocessorEnvironment> ctx,
boolean oldValue,
boolean newValue)
throws IOException
MasterObserver
postBalanceSwitch in interface MasterObserverctx - the coprocessor instance's environmentoldValue - the previously set balanceSwitch valuenewValue - the newly set balanceSwitch value
IOException
public void preShutdown(ObserverContext<MasterCoprocessorEnvironment> ctx)
throws IOException
MasterObserverHMaster process.
preShutdown in interface MasterObserverIOException
public void preStopMaster(ObserverContext<MasterCoprocessorEnvironment> ctx)
throws IOException
MasterObserverHMaster process.
preStopMaster in interface MasterObserverIOException
public void postStartMaster(ObserverContext<MasterCoprocessorEnvironment> ctx)
throws IOException
MasterObserver
postStartMaster in interface MasterObserverIOException
public void start(CoprocessorEnvironment ctx)
throws IOException
start in interface CoprocessorIOException
public void stop(CoprocessorEnvironment ctx)
throws IOException
stop in interface CoprocessorIOException
public void preMove(ObserverContext<MasterCoprocessorEnvironment> ctx,
HRegionInfo region,
ServerName srcServer,
ServerName destServer)
throws IOException
MasterObserver
preMove in interface MasterObserverctx - the environment to interact with the framework and masterregion - the HRegionInfosrcServer - the source ServerNamedestServer - the destination ServerName
IOException
public void postMove(ObserverContext<MasterCoprocessorEnvironment> ctx,
HRegionInfo region,
ServerName srcServer,
ServerName destServer)
throws IOException
MasterObserver
postMove in interface MasterObserverctx - the environment to interact with the framework and masterregion - the HRegionInfosrcServer - the source ServerNamedestServer - the destination ServerName
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||