Class TestApiV1ClusterMetricsResource.ClassSetupExtension

java.lang.Object
org.apache.hadoop.hbase.master.http.TestApiV1ClusterMetricsResource.ClassSetupExtension
All Implemented Interfaces:
org.junit.jupiter.api.extension.AfterAllCallback, org.junit.jupiter.api.extension.BeforeAllCallback, org.junit.jupiter.api.extension.Extension
Enclosing class:
TestApiV1ClusterMetricsResource

private static final class TestApiV1ClusterMetricsResource.ClassSetupExtension extends Object implements org.junit.jupiter.api.extension.BeforeAllCallback, org.junit.jupiter.api.extension.AfterAllCallback
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private org.apache.hadoop.hbase.client.AsyncAdmin
     
    private final Supplier<org.apache.hadoop.hbase.client.AsyncConnection>
     
    private final org.apache.hadoop.hbase.TableName
     
    private org.apache.hbase.thirdparty.javax.ws.rs.client.WebTarget
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    ClassSetupExtension(Supplier<org.apache.hadoop.hbase.client.AsyncConnection> connectionSupplier)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    afterAll(org.junit.jupiter.api.extension.ExtensionContext context)
     
    void
    beforeAll(org.junit.jupiter.api.extension.ExtensionContext context)
     
    org.apache.hbase.thirdparty.javax.ws.rs.client.WebTarget
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • tableName

      private final org.apache.hadoop.hbase.TableName tableName
    • admin

      private org.apache.hadoop.hbase.client.AsyncAdmin admin
    • target

      private org.apache.hbase.thirdparty.javax.ws.rs.client.WebTarget target
    • connectionSupplier

      private final Supplier<org.apache.hadoop.hbase.client.AsyncConnection> connectionSupplier
  • Constructor Details

  • Method Details

    • getTarget

      public org.apache.hbase.thirdparty.javax.ws.rs.client.WebTarget getTarget()
    • beforeAll

      public void beforeAll(org.junit.jupiter.api.extension.ExtensionContext context) throws Exception
      Specified by:
      beforeAll in interface org.junit.jupiter.api.extension.BeforeAllCallback
      Throws:
      Exception
    • afterAll

      public void afterAll(org.junit.jupiter.api.extension.ExtensionContext context)
      Specified by:
      afterAll in interface org.junit.jupiter.api.extension.AfterAllCallback