Class RegionServerCoprocessorHost
java.lang.Object
org.apache.hadoop.hbase.coprocessor.CoprocessorHost<RegionServerCoprocessor,RegionServerCoprocessorEnvironment>
org.apache.hadoop.hbase.regionserver.RegionServerCoprocessorHost
@Private
public class RegionServerCoprocessorHost
extends CoprocessorHost<RegionServerCoprocessor,RegionServerCoprocessorEnvironment>
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate static class
Coprocessor environment extension providing access to region server related services.private static class
Special version of RegionServerEnvironment that exposes RegionServerServices for Core Coprocessors only.(package private) class
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.coprocessor.CoprocessorHost
CoprocessorHost.ObserverGetter<C,
O>, CoprocessorHost.ObserverOperationWithoutResult<O>, CoprocessorHost.ObserverOperationWithResult<O, R> -
Field Summary
Modifier and TypeFieldDescriptionprivate static final org.slf4j.Logger
private RegionServerServices
Fields inherited from class org.apache.hadoop.hbase.coprocessor.CoprocessorHost
ABORT_ON_ERROR_KEY, abortable, conf, coprocEnvironments, COPROCESSORS_ENABLED_CONF_KEY, DEFAULT_ABORT_ON_ERROR, DEFAULT_COPROCESSORS_ENABLED, DEFAULT_SKIP_LOAD_DUPLICATE_TABLE_COPROCESSOR, DEFAULT_USER_COPROCESSORS_ENABLED, loadSequence, MASTER_COPROCESSOR_CONF_KEY, pathPrefix, REGION_COPROCESSOR_CONF_KEY, REGIONSERVER_COPROCESSOR_CONF_KEY, SKIP_LOAD_DUPLICATE_TABLE_COPROCESSOR, USER_COPROCESSORS_ENABLED_CONF_KEY, USER_REGION_COPROCESSOR_CONF_KEY, WAL_COPROCESSOR_CONF_KEY
-
Constructor Summary
ConstructorDescriptionRegionServerCoprocessorHost
(RegionServerServices rsServices, org.apache.hadoop.conf.Configuration conf) -
Method Summary
Modifier and TypeMethodDescriptioncheckAndGetInstance
(Class<?> implClass) Called when a new Coprocessor class needs to be loaded.createEnvironment
(RegionServerCoprocessor instance, int priority, int sequence, org.apache.hadoop.conf.Configuration conf) Called when a new Coprocessor class is loadedvoid
void
void
void
void
postReplicationSinkBatchMutate
(org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.WALEntry walEntry, Mutation mutation) void
void
postUpdateConfiguration
(org.apache.hadoop.conf.Configuration postReloadConf) void
void
void
void
void
preReplicationSinkBatchMutate
(org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.WALEntry walEntry, Mutation mutation) void
void
void
preUpdateConfiguration
(org.apache.hadoop.conf.Configuration preReloadConf) Methods inherited from class org.apache.hadoop.hbase.coprocessor.CoprocessorHost
abortServer, abortServer, checkAndLoadInstance, execOperation, execOperationWithResult, execShutdown, findCoprocessor, findCoprocessor, findCoprocessorEnvironment, findCoprocessors, getCoprocessors, getLoadedCoprocessors, handleCoprocessorThrowable, load, load, load, loadSystemCoprocessors, shutdown
-
Field Details
-
LOG
-
rsServices
-
rsObserverGetter
-
-
Constructor Details
-
RegionServerCoprocessorHost
public RegionServerCoprocessorHost(RegionServerServices rsServices, org.apache.hadoop.conf.Configuration conf)
-
-
Method Details
-
createEnvironment
public RegionServerCoprocessorHost.RegionServerEnvironment createEnvironment(RegionServerCoprocessor instance, int priority, int sequence, org.apache.hadoop.conf.Configuration conf) Description copied from class:CoprocessorHost
Called when a new Coprocessor class is loaded- Specified by:
createEnvironment
in classCoprocessorHost<RegionServerCoprocessor,
RegionServerCoprocessorEnvironment>
-
checkAndGetInstance
public RegionServerCoprocessor checkAndGetInstance(Class<?> implClass) throws InstantiationException, IllegalAccessException Description copied from class:CoprocessorHost
Called when a new Coprocessor class needs to be loaded. Checks if type of the given class is what the corresponding host implementation expects. If it is of correct type, returns an instance of the coprocessor to be loaded. If not, returns null. If an exception occurs when trying to create instance of a coprocessor, it's passed up and eventually results into server aborting.- Specified by:
checkAndGetInstance
in classCoprocessorHost<RegionServerCoprocessor,
RegionServerCoprocessorEnvironment> - Throws:
InstantiationException
IllegalAccessException
-
preStop
- Throws:
IOException
-
preRollWALWriterRequest
- Throws:
IOException
-
postRollWALWriterRequest
- Throws:
IOException
-
preReplicateLogEntries
- Throws:
IOException
-
postReplicateLogEntries
- Throws:
IOException
-
preReplicationSinkBatchMutate
public void preReplicationSinkBatchMutate(org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.WALEntry walEntry, Mutation mutation) throws IOException - Throws:
IOException
-
postReplicationSinkBatchMutate
public void postReplicationSinkBatchMutate(org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.WALEntry walEntry, Mutation mutation) throws IOException - Throws:
IOException
-
postCreateReplicationEndPoint
public ReplicationEndpoint postCreateReplicationEndPoint(ReplicationEndpoint endpoint) throws IOException - Throws:
IOException
-
preClearCompactionQueues
- Throws:
IOException
-
postClearCompactionQueues
- Throws:
IOException
-
preExecuteProcedures
- Throws:
IOException
-
postExecuteProcedures
- Throws:
IOException
-
preUpdateConfiguration
public void preUpdateConfiguration(org.apache.hadoop.conf.Configuration preReloadConf) throws IOException - Throws:
IOException
-
postUpdateConfiguration
public void postUpdateConfiguration(org.apache.hadoop.conf.Configuration postReloadConf) throws IOException - Throws:
IOException
-
preClearRegionBlockCache
- Throws:
IOException
-
postClearRegionBlockCache
- Throws:
IOException
-