Class TestCoprocessorMetrics.CustomRegionServerObserver

java.lang.Object
org.apache.hadoop.hbase.coprocessor.TestCoprocessorMetrics.CustomRegionServerObserver
All Implemented Interfaces:
org.apache.hadoop.hbase.Coprocessor, org.apache.hadoop.hbase.coprocessor.RegionServerCoprocessor, org.apache.hadoop.hbase.coprocessor.RegionServerObserver
Enclosing class:
TestCoprocessorMetrics

public static class TestCoprocessorMetrics.CustomRegionServerObserver extends Object implements org.apache.hadoop.hbase.coprocessor.RegionServerCoprocessor, org.apache.hadoop.hbase.coprocessor.RegionServerObserver
RegionServerObserver that has a Counter for rollWAL requests.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.apache.hadoop.hbase.Coprocessor

    org.apache.hadoop.hbase.Coprocessor.State
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private org.apache.hadoop.hbase.metrics.Counter
    This is the Counter metric object to keep track of the current count across invocations

    Fields inherited from interface org.apache.hadoop.hbase.Coprocessor

    PRIORITY_HIGHEST, PRIORITY_LOWEST, PRIORITY_SYSTEM, PRIORITY_USER, VERSION
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Optional<org.apache.hadoop.hbase.coprocessor.RegionServerObserver>
     
    void
    postRollWALWriterRequest(org.apache.hadoop.hbase.coprocessor.ObserverContext<org.apache.hadoop.hbase.coprocessor.RegionServerCoprocessorEnvironment> ctx)
     
    void
    start(org.apache.hadoop.hbase.CoprocessorEnvironment env)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apache.hadoop.hbase.Coprocessor

    getServices, stop

    Methods inherited from interface org.apache.hadoop.hbase.coprocessor.RegionServerObserver

    postClearCompactionQueues, postClearRegionBlockCache, postCreateReplicationEndPoint, postExecuteProcedures, postReplicateLogEntries, postReplicationSinkBatchMutate, postUpdateRegionServerConfiguration, preClearCompactionQueues, preClearRegionBlockCache, preExecuteProcedures, preReplicateLogEntries, preReplicationSinkBatchMutate, preRollWALWriterRequest, preStopRegionServer, preUpdateRegionServerConfiguration
  • Field Details

    • rollWALCounter

      private org.apache.hadoop.hbase.metrics.Counter rollWALCounter
      This is the Counter metric object to keep track of the current count across invocations
  • Constructor Details

  • Method Details

    • getRegionServerObserver

      public Optional<org.apache.hadoop.hbase.coprocessor.RegionServerObserver> getRegionServerObserver()
      Specified by:
      getRegionServerObserver in interface org.apache.hadoop.hbase.coprocessor.RegionServerCoprocessor
    • postRollWALWriterRequest

      public void postRollWALWriterRequest(org.apache.hadoop.hbase.coprocessor.ObserverContext<org.apache.hadoop.hbase.coprocessor.RegionServerCoprocessorEnvironment> ctx) throws IOException
      Specified by:
      postRollWALWriterRequest in interface org.apache.hadoop.hbase.coprocessor.RegionServerObserver
      Throws:
      IOException
    • start

      public void start(org.apache.hadoop.hbase.CoprocessorEnvironment env) throws IOException
      Specified by:
      start in interface org.apache.hadoop.hbase.Coprocessor
      Throws:
      IOException