|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hbase.coprocessor.BaseRegionObserver
org.apache.hadoop.hbase.coprocessor.BaseMasterAndRegionObserver
org.apache.hadoop.hbase.security.visibility.VisibilityController
@InterfaceAudience.LimitedPrivate(value="Configuration") public class VisibilityController
Coprocessor that has both the MasterObserver and RegionObserver implemented that supports in visibility labels
| Nested Class Summary | |
|---|---|
static class |
VisibilityController.VisibilityReplication
A RegionServerObserver impl that provides the custom VisibilityReplicationEndpoint. |
| Nested classes/interfaces inherited from interface org.apache.hadoop.hbase.Coprocessor |
|---|
Coprocessor.State |
| Nested classes/interfaces inherited from interface org.apache.hadoop.hbase.coprocessor.RegionObserver |
|---|
RegionObserver.MutationType |
| Field Summary |
|---|
| Fields inherited from interface org.apache.hadoop.hbase.Coprocessor |
|---|
PRIORITY_HIGHEST, PRIORITY_LOWEST, PRIORITY_SYSTEM, PRIORITY_USER, VERSION |
| Constructor Summary | |
|---|---|
VisibilityController()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public VisibilityController()
| Method Detail |
|---|
public static boolean isAuthorizationSupported(org.apache.hadoop.conf.Configuration conf)
public static boolean isCellAuthorizationSupported(org.apache.hadoop.conf.Configuration conf)
public void start(CoprocessorEnvironment env)
throws IOException
start in interface Coprocessorstart in class BaseMasterAndRegionObserverIOException
public void stop(CoprocessorEnvironment env)
throws IOException
stop in interface Coprocessorstop in class BaseMasterAndRegionObserverIOException
public void postStartMaster(ObserverContext<MasterCoprocessorEnvironment> ctx)
throws IOException
postStartMaster in interface MasterObserverpostStartMaster in class BaseMasterAndRegionObserverIOException
public void preModifyTable(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName,
HTableDescriptor htd)
throws IOException
MasterObserver
preModifyTable in interface MasterObserverpreModifyTable in class BaseMasterAndRegionObserverctx - the environment to interact with the framework and mastertableName - the name of the tablehtd - the HTableDescriptor
IOException
public void preAddColumn(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName,
HColumnDescriptor column)
throws IOException
MasterObserver
preAddColumn in interface MasterObserverpreAddColumn in class BaseMasterAndRegionObserverctx - the environment to interact with the framework and mastertableName - the name of the tablecolumn - the HColumnDescriptor
IOException
public void preModifyColumn(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName,
HColumnDescriptor descriptor)
throws IOException
MasterObserver
preModifyColumn in interface MasterObserverpreModifyColumn in class BaseMasterAndRegionObserverctx - the environment to interact with the framework and mastertableName - the name of the tabledescriptor - the HColumnDescriptor
IOException
public void preDeleteColumn(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName,
byte[] c)
throws IOException
MasterObserver
preDeleteColumn in interface MasterObserverpreDeleteColumn in class BaseMasterAndRegionObserverctx - the environment to interact with the framework and mastertableName - the name of the tablec - the column
IOException
public void preDisableTable(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName)
throws IOException
MasterObserver
preDisableTable in interface MasterObserverpreDisableTable in class BaseMasterAndRegionObserverctx - the environment to interact with the framework and mastertableName - the name of the table
IOExceptionpublic void postOpen(ObserverContext<RegionCoprocessorEnvironment> e)
postOpen in interface RegionObserverpostOpen in class BaseRegionObservere - the environment provided by the region serverpublic void postLogReplay(ObserverContext<RegionCoprocessorEnvironment> e)
RegionObserver
postLogReplay in interface RegionObserverpostLogReplay in class BaseRegionObservere - the environment provided by the region server
public void preBatchMutate(ObserverContext<RegionCoprocessorEnvironment> c,
MiniBatchOperationInProgress<Mutation> miniBatchOp)
throws IOException
RegionObserverMiniBatchOperationInProgress.setOperationStatus(int, OperationStatus)),
RegionObserver can make HRegion to skip these Mutations.
preBatchMutate in interface RegionObserverpreBatchMutate in class BaseRegionObserverc - the environment provided by the region serverminiBatchOp - batch of Mutations getting applied to region.
IOException - if an error occurred on the coprocessor
public void prePrepareTimeStampForDeleteVersion(ObserverContext<RegionCoprocessorEnvironment> ctx,
Mutation delete,
Cell cell,
byte[] byteNow,
Get get)
throws IOException
RegionObserverCall CoprocessorEnvironment#bypass to skip default actions
Call CoprocessorEnvironment#complete to skip any subsequent chained coprocessors
prePrepareTimeStampForDeleteVersion in interface RegionObserverprePrepareTimeStampForDeleteVersion in class BaseRegionObserverctx - the environment provided by the region serverdelete - - the parent mutation associated with this delete cellcell - - The deleteColumn with latest version cellbyteNow - - timestamp bytesget - - the get formed using the current cell's row.
Note that the get does not specify the family and qualifier
IOException
public RegionScanner preScannerOpen(ObserverContext<RegionCoprocessorEnvironment> e,
Scan scan,
RegionScanner s)
throws IOException
RegionObserverCall CoprocessorEnvironment#bypass to skip default actions
Call CoprocessorEnvironment#complete to skip any subsequent chained coprocessors
preScannerOpen in interface RegionObserverpreScannerOpen in class BaseRegionObservere - the environment provided by the region serverscan - the Scan specifications - if not null, the base scanner
IOException - if an error occurred on the coprocessor
public DeleteTracker postInstantiateDeleteTracker(ObserverContext<RegionCoprocessorEnvironment> ctx,
DeleteTracker delTracker)
throws IOException
RegionObserver
postInstantiateDeleteTracker in interface RegionObserverpostInstantiateDeleteTracker in class BaseRegionObserverctx - the environment provided by the region serverdelTracker - the deleteTracker that is created by the QueryMatcher
IOException
public RegionScanner postScannerOpen(ObserverContext<RegionCoprocessorEnvironment> c,
Scan scan,
RegionScanner s)
throws IOException
RegionObserverCall CoprocessorEnvironment#complete to skip any subsequent chained coprocessors
postScannerOpen in interface RegionObserverpostScannerOpen in class BaseRegionObserverc - the environment provided by the region serverscan - the Scan specifications - if not null, the base scanner
IOException - if an error occurred on the coprocessor
public boolean preScannerNext(ObserverContext<RegionCoprocessorEnvironment> c,
InternalScanner s,
List<Result> result,
int limit,
boolean hasNext)
throws IOException
RegionObserverCall CoprocessorEnvironment#bypass to skip default actions
Call CoprocessorEnvironment#complete to skip any subsequent chained coprocessors
preScannerNext in interface RegionObserverpreScannerNext in class BaseRegionObserverc - the environment provided by the region servers - the scannerresult - The result to return to the client if default processing
is bypassed. Can be modified. Will not be returned if default processing
is not bypassed.limit - the maximum number of results to returnhasNext - the 'has more' indication
IOException - if an error occurred on the coprocessor
public void preScannerClose(ObserverContext<RegionCoprocessorEnvironment> c,
InternalScanner s)
throws IOException
RegionObserverCall CoprocessorEnvironment#bypass to skip default actions
Call CoprocessorEnvironment#complete to skip any subsequent chained coprocessors
preScannerClose in interface RegionObserverpreScannerClose in class BaseRegionObserverc - the environment provided by the region servers - the scanner
IOException - if an error occurred on the coprocessor
public void postScannerClose(ObserverContext<RegionCoprocessorEnvironment> c,
InternalScanner s)
throws IOException
RegionObserverCall CoprocessorEnvironment#complete to skip any subsequent chained coprocessors
postScannerClose in interface RegionObserverpostScannerClose in class BaseRegionObserverc - the environment provided by the region servers - the scanner
IOException - if an error occurred on the coprocessor
public void preGetOp(ObserverContext<RegionCoprocessorEnvironment> e,
Get get,
List<Cell> results)
throws IOException
RegionObserverCall CoprocessorEnvironment#bypass to skip default actions
Call CoprocessorEnvironment#complete to skip any subsequent chained coprocessors
preGetOp in interface RegionObserverpreGetOp in class BaseRegionObservere - the environment provided by the region serverget - the Get requestresults - The result to return to the client if default processing
is bypassed. Can be modified. Will not be used if default processing
is not bypassed.
IOException - if an error occurred on the coprocessor
public Result preAppend(ObserverContext<RegionCoprocessorEnvironment> e,
Append append)
throws IOException
RegionObserverCall CoprocessorEnvironment#bypass to skip default actions
Call CoprocessorEnvironment#complete to skip any subsequent chained coprocessors
preAppend in interface RegionObserverpreAppend in class BaseRegionObservere - the environment provided by the region serverappend - Append object
IOException - if an error occurred on the coprocessor
public Result preIncrement(ObserverContext<RegionCoprocessorEnvironment> e,
Increment increment)
throws IOException
RegionObserverCall CoprocessorEnvironment#bypass to skip default actions
Call CoprocessorEnvironment#complete to skip any subsequent chained coprocessors
preIncrement in interface RegionObserverpreIncrement in class BaseRegionObservere - the environment provided by the region serverincrement - increment object
IOException - if an error occurred on the coprocessor
public Cell postMutationBeforeWAL(ObserverContext<RegionCoprocessorEnvironment> ctx,
RegionObserver.MutationType opType,
Mutation mutation,
Cell oldCell,
Cell newCell)
throws IOException
RegionObserverObserverContext.bypass() has no
effect in this hook.
postMutationBeforeWAL in interface RegionObserverpostMutationBeforeWAL in class BaseRegionObserverctx - the environment provided by the region serveropType - the operation typemutation - the current mutationoldCell - old cell containing previous valuenewCell - the new cell containing the computed value
IOExceptionpublic com.google.protobuf.Service getService()
getService in interface CoprocessorService
public void addLabels(com.google.protobuf.RpcController controller,
org.apache.hadoop.hbase.protobuf.generated.VisibilityLabelsProtos.VisibilityLabelsRequest request,
com.google.protobuf.RpcCallback<org.apache.hadoop.hbase.protobuf.generated.VisibilityLabelsProtos.VisibilityLabelsResponse> done)
addLabels in interface org.apache.hadoop.hbase.protobuf.generated.VisibilityLabelsProtos.VisibilityLabelsService.Interface
public void setAuths(com.google.protobuf.RpcController controller,
org.apache.hadoop.hbase.protobuf.generated.VisibilityLabelsProtos.SetAuthsRequest request,
com.google.protobuf.RpcCallback<org.apache.hadoop.hbase.protobuf.generated.VisibilityLabelsProtos.VisibilityLabelsResponse> done)
setAuths in interface org.apache.hadoop.hbase.protobuf.generated.VisibilityLabelsProtos.VisibilityLabelsService.Interface
public void getAuths(com.google.protobuf.RpcController controller,
org.apache.hadoop.hbase.protobuf.generated.VisibilityLabelsProtos.GetAuthsRequest request,
com.google.protobuf.RpcCallback<org.apache.hadoop.hbase.protobuf.generated.VisibilityLabelsProtos.GetAuthsResponse> done)
getAuths in interface org.apache.hadoop.hbase.protobuf.generated.VisibilityLabelsProtos.VisibilityLabelsService.Interface
public void clearAuths(com.google.protobuf.RpcController controller,
org.apache.hadoop.hbase.protobuf.generated.VisibilityLabelsProtos.SetAuthsRequest request,
com.google.protobuf.RpcCallback<org.apache.hadoop.hbase.protobuf.generated.VisibilityLabelsProtos.VisibilityLabelsResponse> done)
clearAuths in interface org.apache.hadoop.hbase.protobuf.generated.VisibilityLabelsProtos.VisibilityLabelsService.Interface
public void listLabels(com.google.protobuf.RpcController controller,
org.apache.hadoop.hbase.protobuf.generated.VisibilityLabelsProtos.ListLabelsRequest request,
com.google.protobuf.RpcCallback<org.apache.hadoop.hbase.protobuf.generated.VisibilityLabelsProtos.ListLabelsResponse> done)
listLabels in interface org.apache.hadoop.hbase.protobuf.generated.VisibilityLabelsProtos.VisibilityLabelsService.Interface
public void preTruncateTable(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName)
throws IOException
MasterObserverHMaster 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.
preTruncateTable in interface MasterObserverctx - the environment to interact with the framework and mastertableName - the name of the table
IOException
public void postTruncateTable(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName)
throws IOException
MasterObserver
postTruncateTable in interface MasterObserverctx - the environment to interact with the framework and mastertableName - the name of the table
IOException
public void preTruncateTableHandler(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName)
throws IOException
MasterObserverHMaster 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.
preTruncateTableHandler in interface MasterObserverctx - the environment to interact with the framework and mastertableName - the name of the table
IOException
public void postTruncateTableHandler(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName)
throws IOException
MasterObserverHMaster 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.
postTruncateTableHandler in interface MasterObserverctx - the environment to interact with the framework and mastertableName - the name of the table
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||