@InterfaceAudience.Private public class VisibilityReplication extends Object implements RegionServerCoprocessor, RegionServerObserver
Coprocessor.State
PRIORITY_HIGHEST, PRIORITY_LOWEST, PRIORITY_SYSTEM, PRIORITY_USER, VERSION
Constructor and Description |
---|
VisibilityReplication() |
Modifier and Type | Method and Description |
---|---|
Optional<RegionServerObserver> |
getRegionServerObserver() |
ReplicationEndpoint |
postCreateReplicationEndPoint(ObserverContext<RegionServerCoprocessorEnvironment> ctx,
ReplicationEndpoint endpoint)
This will be called after the replication endpoint is instantiated.
|
void |
start(CoprocessorEnvironment env)
Called by the
CoprocessorEnvironment during it's own startup to initialize the
coprocessor. |
void |
stop(CoprocessorEnvironment env)
Called by the
CoprocessorEnvironment during it's own shutdown to stop the
coprocessor. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getServices
postClearCompactionQueues, postExecuteProcedures, postReplicateLogEntries, postRollWALWriterRequest, preClearCompactionQueues, preExecuteProcedures, preReplicateLogEntries, preRollWALWriterRequest, preStopRegionServer
public void start(CoprocessorEnvironment env) throws IOException
Coprocessor
CoprocessorEnvironment
during it's own startup to initialize the
coprocessor.start
in interface Coprocessor
IOException
public void stop(CoprocessorEnvironment env) throws IOException
Coprocessor
CoprocessorEnvironment
during it's own shutdown to stop the
coprocessor.stop
in interface Coprocessor
IOException
public Optional<RegionServerObserver> getRegionServerObserver()
getRegionServerObserver
in interface RegionServerCoprocessor
public ReplicationEndpoint postCreateReplicationEndPoint(ObserverContext<RegionServerCoprocessorEnvironment> ctx, ReplicationEndpoint endpoint)
RegionServerObserver
postCreateReplicationEndPoint
in interface RegionServerObserver
ctx
- the environment to interact with the framework and region server.endpoint
- - the base endpoint for replicationCopyright © 2007–2019 Cloudera. All rights reserved.