@InterfaceAudience.LimitedPrivate(value="Coprocesssor") @InterfaceStability.Evolving public class RegionServerCoprocessorHost extends CoprocessorHost<RegionServerCoprocessorHost.RegionServerEnvironment>
Modifier and Type | Class and Description |
---|---|
private static class |
RegionServerCoprocessorHost.CoprocessOperationWithResult<T> |
private static class |
RegionServerCoprocessorHost.CoprocessorOperation |
(package private) static class |
RegionServerCoprocessorHost.EnvironmentPriorityComparator
Environment priority comparator.
|
(package private) static class |
RegionServerCoprocessorHost.RegionServerEnvironment
Coprocessor environment extension providing access to region server
related services.
|
CoprocessorHost.Environment
Modifier and Type | Field and Description |
---|---|
private static org.apache.commons.logging.Log |
LOG |
private RegionServerServices |
rsServices |
ABORT_ON_ERROR_KEY, abortable, conf, coprocessors, COPROCESSORS_ENABLED_CONF_KEY, DEFAULT_ABORT_ON_ERROR, DEFAULT_COPROCESSORS_ENABLED, DEFAULT_USER_COPROCESSORS_ENABLED, loadSequence, MASTER_COPROCESSOR_CONF_KEY, pathPrefix, REGION_COPROCESSOR_CONF_KEY, REGIONSERVER_COPROCESSOR_CONF_KEY, 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 |
---|---|
RegionServerCoprocessorHost.RegionServerEnvironment |
createEnvironment(Class<?> implClass,
Coprocessor instance,
int priority,
int sequence,
org.apache.hadoop.conf.Configuration conf)
Called when a new Coprocessor class is loaded
|
private boolean |
execOperation(RegionServerCoprocessorHost.CoprocessorOperation ctx) |
private <T> T |
execOperationWithResult(T defaultValue,
RegionServerCoprocessorHost.CoprocessOperationWithResult<T> ctx) |
private boolean |
execShutdown(RegionServerCoprocessorHost.CoprocessorOperation ctx)
RegionServer coprocessor classes can be configured in any order, based on that priority is set
and chained in a sorted order.
|
ReplicationEndpoint |
postCreateReplicationEndPoint(ReplicationEndpoint endpoint) |
void |
postMerge(HRegion regionA,
HRegion regionB,
HRegion mergedRegion) |
void |
postMergeCommit(HRegion regionA,
HRegion regionB,
HRegion mergedRegion) |
void |
postReplicateLogEntries(List<org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry> entries,
CellScanner cells) |
void |
postRollBackMerge(HRegion regionA,
HRegion regionB) |
void |
postRollWALWriterRequest() |
boolean |
preMerge(HRegion regionA,
HRegion regionB) |
boolean |
preMergeCommit(HRegion regionA,
HRegion regionB,
List<Mutation> metaEntries) |
void |
preReplicateLogEntries(List<org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry> entries,
CellScanner cells) |
void |
preRollBackMerge(HRegion regionA,
HRegion regionB) |
void |
preRollWALWriterRequest() |
void |
preStop(String message) |
abortServer, abortServer, findCoprocessor, findCoprocessorEnvironment, findCoprocessors, getCoprocessors, getLoadedCoprocessors, handleCoprocessorThrowable, legacyWarning, load, load, loadInstance, loadSystemCoprocessors, shutdown, useLegacyMethod
private static final org.apache.commons.logging.Log LOG
private RegionServerServices rsServices
public RegionServerCoprocessorHost(RegionServerServices rsServices, org.apache.hadoop.conf.Configuration conf)
public RegionServerCoprocessorHost.RegionServerEnvironment createEnvironment(Class<?> implClass, Coprocessor instance, int priority, int sequence, org.apache.hadoop.conf.Configuration conf)
CoprocessorHost
createEnvironment
in class CoprocessorHost<RegionServerCoprocessorHost.RegionServerEnvironment>
public void preStop(String message) throws IOException
IOException
public boolean preMerge(HRegion regionA, HRegion regionB) throws IOException
IOException
public void postMerge(HRegion regionA, HRegion regionB, HRegion mergedRegion) throws IOException
IOException
public boolean preMergeCommit(HRegion regionA, HRegion regionB, @MetaMutationAnnotation List<Mutation> metaEntries) throws IOException
IOException
public void postMergeCommit(HRegion regionA, HRegion regionB, HRegion mergedRegion) throws IOException
IOException
public void preRollBackMerge(HRegion regionA, HRegion regionB) throws IOException
IOException
public void postRollBackMerge(HRegion regionA, HRegion regionB) throws IOException
IOException
public void preRollWALWriterRequest() throws IOException
IOException
public void postRollWALWriterRequest() throws IOException
IOException
public void preReplicateLogEntries(List<org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry> entries, CellScanner cells) throws IOException
IOException
public void postReplicateLogEntries(List<org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry> entries, CellScanner cells) throws IOException
IOException
public ReplicationEndpoint postCreateReplicationEndPoint(ReplicationEndpoint endpoint) throws IOException
IOException
private <T> T execOperationWithResult(T defaultValue, RegionServerCoprocessorHost.CoprocessOperationWithResult<T> ctx) throws IOException
IOException
private boolean execOperation(RegionServerCoprocessorHost.CoprocessorOperation ctx) throws IOException
IOException
private boolean execShutdown(RegionServerCoprocessorHost.CoprocessorOperation ctx) throws IOException
ctx
- CoprocessorOperationIOException
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.