org.apache.hadoop.hbase.security.visibility
Class VisibilityController.VisibilityReplication

java.lang.Object
  extended by org.apache.hadoop.hbase.coprocessor.BaseRegionServerObserver
      extended by org.apache.hadoop.hbase.security.visibility.VisibilityController.VisibilityReplication
All Implemented Interfaces:
Coprocessor, RegionServerObserver
Enclosing class:
VisibilityController

public static class VisibilityController.VisibilityReplication
extends BaseRegionServerObserver

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
 
Fields inherited from interface org.apache.hadoop.hbase.Coprocessor
PRIORITY_HIGHEST, PRIORITY_LOWEST, PRIORITY_SYSTEM, PRIORITY_USER, VERSION
 
Constructor Summary
VisibilityController.VisibilityReplication()
           
 
Method Summary
 ReplicationEndpoint postCreateReplicationEndPoint(ObserverContext<RegionServerCoprocessorEnvironment> ctx, ReplicationEndpoint endpoint)
          This will be called after the replication endpoint is instantiated.
 void start(CoprocessorEnvironment env)
           
 void stop(CoprocessorEnvironment env)
           
 
Methods inherited from class org.apache.hadoop.hbase.coprocessor.BaseRegionServerObserver
postMerge, postMergeCommit, postReplicateLogEntries, postRollBackMerge, postRollWALWriterRequest, preMerge, preMergeCommit, preReplicateLogEntries, preRollBackMerge, preRollWALWriterRequest, preStopRegionServer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VisibilityController.VisibilityReplication

public VisibilityController.VisibilityReplication()
Method Detail

start

public void start(CoprocessorEnvironment env)
           throws IOException
Specified by:
start in interface Coprocessor
Overrides:
start in class BaseRegionServerObserver
Throws:
IOException

stop

public void stop(CoprocessorEnvironment env)
          throws IOException
Specified by:
stop in interface Coprocessor
Overrides:
stop in class BaseRegionServerObserver
Throws:
IOException

postCreateReplicationEndPoint

public ReplicationEndpoint postCreateReplicationEndPoint(ObserverContext<RegionServerCoprocessorEnvironment> ctx,
                                                         ReplicationEndpoint endpoint)
Description copied from interface: RegionServerObserver
This will be called after the replication endpoint is instantiated.

Specified by:
postCreateReplicationEndPoint in interface RegionServerObserver
Overrides:
postCreateReplicationEndPoint in class BaseRegionServerObserver
endpoint - - the base endpoint for replication
Returns:
the endpoint to use during replication.


Copyright © 2007–2015 The Apache Software Foundation. All rights reserved.