Class VisibilityReplication
java.lang.Object
org.apache.hadoop.hbase.security.visibility.VisibilityReplication
- All Implemented Interfaces:
Coprocessor,RegionServerCoprocessor,RegionServerObserver
@Private
public class VisibilityReplication
extends Object
implements RegionServerCoprocessor, RegionServerObserver
A RegionServerObserver impl that provides the custom VisibilityReplicationEndpoint. This class
should be configured as the 'hbase.coprocessor.regionserver.classes' for the visibility tags to
be replicated as string. The value for the configuration should be
'org.apache.hadoop.hbase.security.visibility.VisibilityController$VisibilityReplication'.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.hadoop.hbase.Coprocessor
Coprocessor.State -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.apache.hadoop.conf.Configurationprivate VisibilityLabelServiceFields inherited from interface org.apache.hadoop.hbase.Coprocessor
PRIORITY_HIGHEST, PRIORITY_LOWEST, PRIORITY_SYSTEM, PRIORITY_USER, VERSION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionpostCreateReplicationEndPoint(ObserverContext<RegionServerCoprocessorEnvironment> ctx, ReplicationEndpoint endpoint) This will be called after the replication endpoint is instantiated.voidCalled by theCoprocessorEnvironmentduring it's own startup to initialize the coprocessor.voidCalled by theCoprocessorEnvironmentduring it's own shutdown to stop the coprocessor.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.hadoop.hbase.Coprocessor
getServicesMethods inherited from interface org.apache.hadoop.hbase.coprocessor.RegionServerObserver
postClearCompactionQueues, postClearRegionBlockCache, postExecuteProcedures, postReplicateLogEntries, postReplicationSinkBatchMutate, postRollWALWriterRequest, postUpdateRegionServerConfiguration, preClearCompactionQueues, preClearRegionBlockCache, preExecuteProcedures, preReplicateLogEntries, preReplicationSinkBatchMutate, preRollWALWriterRequest, preStopRegionServer, preUpdateRegionServerConfiguration
-
Field Details
-
conf
-
visibilityLabelService
-
-
Constructor Details
-
VisibilityReplication
public VisibilityReplication()
-
-
Method Details
-
start
Description copied from interface:CoprocessorCalled by theCoprocessorEnvironmentduring it's own startup to initialize the coprocessor.- Specified by:
startin interfaceCoprocessor- Throws:
IOException
-
stop
Description copied from interface:CoprocessorCalled by theCoprocessorEnvironmentduring it's own shutdown to stop the coprocessor.- Specified by:
stopin interfaceCoprocessor- Throws:
IOException
-
getRegionServerObserver
- Specified by:
getRegionServerObserverin interfaceRegionServerCoprocessor
-
postCreateReplicationEndPoint
public ReplicationEndpoint postCreateReplicationEndPoint(ObserverContext<RegionServerCoprocessorEnvironment> ctx, ReplicationEndpoint endpoint) Description copied from interface:RegionServerObserverThis will be called after the replication endpoint is instantiated.- Specified by:
postCreateReplicationEndPointin interfaceRegionServerObserver- Parameters:
ctx- the environment to interact with the framework and region server.endpoint- - the base endpoint for replication- Returns:
- the endpoint to use during replication.
-