@InterfaceAudience.Private public class RegionServerCoprocessorHost extends CoprocessorHost<RegionServerCoprocessor,RegionServerCoprocessorEnvironment>
Modifier and Type | Class and Description |
---|---|
private static class |
RegionServerCoprocessorHost.RegionServerEnvironment
Coprocessor environment extension providing access to region server related services.
|
private static class |
RegionServerCoprocessorHost.RegionServerEnvironmentForCoreCoprocessors
Special version of RegionServerEnvironment that exposes RegionServerServices for Core
Coprocessors only.
|
(package private) class |
RegionServerCoprocessorHost.RegionServerObserverOperation |
CoprocessorHost.ObserverGetter<C,O>, CoprocessorHost.ObserverOperationWithoutResult<O>, CoprocessorHost.ObserverOperationWithResult<O,R>
Modifier and Type | Field and Description |
---|---|
private static org.slf4j.Logger |
LOG |
private CoprocessorHost.ObserverGetter<RegionServerCoprocessor,RegionServerObserver> |
rsObserverGetter |
private RegionServerServices |
rsServices |
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 and Description |
---|
RegionServerCoprocessorHost(RegionServerServices rsServices,
org.apache.hadoop.conf.Configuration conf) |
Modifier and Type | Method and Description |
---|---|
RegionServerCoprocessor |
checkAndGetInstance(Class<?> implClass)
Called when a new Coprocessor class needs to be loaded.
|
RegionServerCoprocessorHost.RegionServerEnvironment |
createEnvironment(RegionServerCoprocessor instance,
int priority,
int sequence,
org.apache.hadoop.conf.Configuration conf)
Called when a new Coprocessor class is loaded
|
void |
postClearCompactionQueues() |
ReplicationEndpoint |
postCreateReplicationEndPoint(ReplicationEndpoint endpoint) |
void |
postExecuteProcedures() |
void |
postReplicateLogEntries() |
void |
postRollWALWriterRequest() |
void |
preClearCompactionQueues() |
void |
preExecuteProcedures() |
void |
preReplicateLogEntries() |
void |
preRollWALWriterRequest() |
void |
preStop(String message,
User user) |
abortServer, abortServer, checkAndLoadInstance, execOperation, execOperationWithResult, execShutdown, findCoprocessor, findCoprocessor, findCoprocessorEnvironment, findCoprocessors, getCoprocessors, getLoadedCoprocessors, handleCoprocessorThrowable, load, load, load, loadSystemCoprocessors, shutdown
private static final org.slf4j.Logger LOG
private RegionServerServices rsServices
private CoprocessorHost.ObserverGetter<RegionServerCoprocessor,RegionServerObserver> rsObserverGetter
public RegionServerCoprocessorHost(RegionServerServices rsServices, org.apache.hadoop.conf.Configuration conf)
public RegionServerCoprocessorHost.RegionServerEnvironment createEnvironment(RegionServerCoprocessor instance, int priority, int sequence, org.apache.hadoop.conf.Configuration conf)
CoprocessorHost
createEnvironment
in class CoprocessorHost<RegionServerCoprocessor,RegionServerCoprocessorEnvironment>
public RegionServerCoprocessor checkAndGetInstance(Class<?> implClass) throws InstantiationException, IllegalAccessException
CoprocessorHost
checkAndGetInstance
in class CoprocessorHost<RegionServerCoprocessor,RegionServerCoprocessorEnvironment>
InstantiationException
IllegalAccessException
public void preStop(String message, User user) throws IOException
IOException
public void preRollWALWriterRequest() throws IOException
IOException
public void postRollWALWriterRequest() throws IOException
IOException
public void preReplicateLogEntries() throws IOException
IOException
public void postReplicateLogEntries() throws IOException
IOException
public ReplicationEndpoint postCreateReplicationEndPoint(ReplicationEndpoint endpoint) throws IOException
IOException
public void preClearCompactionQueues() throws IOException
IOException
public void postClearCompactionQueues() throws IOException
IOException
public void preExecuteProcedures() throws IOException
IOException
public void postExecuteProcedures() throws IOException
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.