@InterfaceAudience.LimitedPrivate(value="Coprocesssor") @InterfaceStability.Evolving public interface RegionServerObserver
HRegionServer process.
 Since most implementations will be interested in only a subset of hooks, this class uses
 'default' functions to avoid having to add unnecessary overrides. When the functions are
 non-empty, it's simply to satisfy the compiler by returning value of expected (non-void) type.
 It is done in a way that these default definitions act as no-op. So our suggestion to
 implementation would be to not call these 'default' methods from overrides.
 IOException are reported back to client.CoprocessorHost.ABORT_ON_ERROR_KEY is set to true, then
         the server aborts.DoNotRetryIOException is returned to the client.| Modifier and Type | Method and Description | 
|---|---|
| default void | postClearCompactionQueues(ObserverContext<RegionServerCoprocessorEnvironment> ctx)This will be called after clearing compaction queues | 
| default ReplicationEndpoint | postCreateReplicationEndPoint(ObserverContext<RegionServerCoprocessorEnvironment> ctx,
                             ReplicationEndpoint endpoint)This will be called after the replication endpoint is instantiated. | 
| default void | postExecuteProcedures(ObserverContext<RegionServerCoprocessorEnvironment> ctx)This will be called after executing procedures | 
| default void | postReplicateLogEntries(ObserverContext<RegionServerCoprocessorEnvironment> ctx)Deprecated. 
 As of release 2.0.0 with out any replacement. This is maintained for internal
 usage by AccessController. Do not use these hooks in custom co-processors. | 
| default void | postRollWALWriterRequest(ObserverContext<RegionServerCoprocessorEnvironment> ctx)This will be called after executing user request to roll a region server WAL. | 
| default void | preClearCompactionQueues(ObserverContext<RegionServerCoprocessorEnvironment> ctx)This will be called before clearing compaction queues | 
| default void | preExecuteProcedures(ObserverContext<RegionServerCoprocessorEnvironment> ctx)This will be called before executing procedures | 
| default void | preReplicateLogEntries(ObserverContext<RegionServerCoprocessorEnvironment> ctx)Deprecated. 
 As of release 2.0.0 with out any replacement. This is maintained for internal
 usage by AccessController. Do not use these hooks in custom co-processors. | 
| default void | preRollWALWriterRequest(ObserverContext<RegionServerCoprocessorEnvironment> ctx)This will be called before executing user request to roll a region server WAL. | 
| default void | preStopRegionServer(ObserverContext<RegionServerCoprocessorEnvironment> ctx)Called before stopping region server. | 
default void preStopRegionServer(ObserverContext<RegionServerCoprocessorEnvironment> ctx) throws IOException
ctx - the environment to interact with the framework and region server.IOExceptiondefault void preRollWALWriterRequest(ObserverContext<RegionServerCoprocessorEnvironment> ctx) throws IOException
ctx - the environment to interact with the framework and region server.IOExceptiondefault void postRollWALWriterRequest(ObserverContext<RegionServerCoprocessorEnvironment> ctx) throws IOException
ctx - the environment to interact with the framework and region server.IOExceptiondefault ReplicationEndpoint postCreateReplicationEndPoint(ObserverContext<RegionServerCoprocessorEnvironment> ctx, ReplicationEndpoint endpoint)
ctx - the environment to interact with the framework and region server.endpoint - - the base endpoint for replication@Deprecated default void preReplicateLogEntries(ObserverContext<RegionServerCoprocessorEnvironment> ctx) throws IOException
ctx - the environment to interact with the framework and region server.IOException@Deprecated default void postReplicateLogEntries(ObserverContext<RegionServerCoprocessorEnvironment> ctx) throws IOException
ctx - the environment to interact with the framework and region server.IOExceptiondefault void preClearCompactionQueues(ObserverContext<RegionServerCoprocessorEnvironment> ctx) throws IOException
ctx - the environment to interact with the framework and region server.IOExceptiondefault void postClearCompactionQueues(ObserverContext<RegionServerCoprocessorEnvironment> ctx) throws IOException
ctx - the environment to interact with the framework and region server.IOExceptiondefault void preExecuteProcedures(ObserverContext<RegionServerCoprocessorEnvironment> ctx) throws IOException
ctx - the environment to interact with the framework and region server.IOExceptiondefault void postExecuteProcedures(ObserverContext<RegionServerCoprocessorEnvironment> ctx) throws IOException
ctx - the environment to interact with the framework and region server.IOExceptionCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.