Class RegionServerReadOnlyController
java.lang.Object
org.apache.hadoop.hbase.security.access.AbstractReadOnlyController
org.apache.hadoop.hbase.security.access.RegionServerReadOnlyController
- All Implemented Interfaces:
Coprocessor,RegionServerCoprocessor,RegionServerObserver
@LimitedPrivate("Configuration")
public class RegionServerReadOnlyController
extends AbstractReadOnlyController
implements RegionServerObserver, RegionServerCoprocessor
-
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidThis will be called before executing replication request to shipping log entries.voidpreReplicationSinkBatchMutate(ObserverContext<RegionServerCoprocessorEnvironment> ctx, org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.WALEntry walEntry, Mutation mutation) This will be called before replication sink mutations are executed on the sink table as part of batch call.voidThis will be called before executing user request to roll a region server WAL.Methods inherited from class org.apache.hadoop.hbase.security.access.AbstractReadOnlyController
internalReadOnlyGuard, isWritableInReadOnlyMode, isWritableInReadOnlyMode, manageActiveClusterIdFile, start, stopMethods 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
getServices, start, stopMethods inherited from interface org.apache.hadoop.hbase.coprocessor.RegionServerObserver
postClearCompactionQueues, postClearRegionBlockCache, postCreateReplicationEndPoint, postExecuteProcedures, postReplicateLogEntries, postReplicationSinkBatchMutate, postRollWALWriterRequest, postUpdateRegionServerConfiguration, preClearCompactionQueues, preClearRegionBlockCache, preExecuteProcedures, preStopRegionServer, preUpdateRegionServerConfiguration
-
Constructor Details
-
RegionServerReadOnlyController
public RegionServerReadOnlyController()
-
-
Method Details
-
getRegionServerObserver
- Specified by:
getRegionServerObserverin interfaceRegionServerCoprocessor
-
preRollWALWriterRequest
public void preRollWALWriterRequest(ObserverContext<RegionServerCoprocessorEnvironment> ctx) throws IOException Description copied from interface:RegionServerObserverThis will be called before executing user request to roll a region server WAL.- Specified by:
preRollWALWriterRequestin interfaceRegionServerObserver- Parameters:
ctx- the environment to interact with the framework and region server.- Throws:
IOException
-
preReplicationSinkBatchMutate
public void preReplicationSinkBatchMutate(ObserverContext<RegionServerCoprocessorEnvironment> ctx, org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.WALEntry walEntry, Mutation mutation) throws IOException Description copied from interface:RegionServerObserverThis will be called before replication sink mutations are executed on the sink table as part of batch call.- Specified by:
preReplicationSinkBatchMutatein interfaceRegionServerObserver- Parameters:
ctx- the environment to interact with the framework and region server.walEntry- wal entry from which mutation is formed.mutation- mutation to be applied at sink cluster.- Throws:
IOException- if something goes wrong.
-
preReplicateLogEntries
public void preReplicateLogEntries(ObserverContext<RegionServerCoprocessorEnvironment> ctx) throws IOException Description copied from interface:RegionServerObserverThis will be called before executing replication request to shipping log entries.- Specified by:
preReplicateLogEntriesin interfaceRegionServerObserver- Parameters:
ctx- the environment to interact with the framework and region server.- Throws:
IOException
-