Class TestApiV1ClusterMetricsResource.ClassSetup

java.lang.Object
org.junit.rules.ExternalResource
org.apache.hadoop.hbase.master.http.TestApiV1ClusterMetricsResource.ClassSetup
All Implemented Interfaces:
org.junit.rules.TestRule
Enclosing class:
TestApiV1ClusterMetricsResource

private static final class TestApiV1ClusterMetricsResource.ClassSetup extends org.junit.rules.ExternalResource
  • 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
    ClassSetup(Supplier<org.apache.hadoop.hbase.client.AsyncConnection> connectionSupplier)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    protected void
     
    org.apache.hbase.thirdparty.javax.ws.rs.client.WebTarget
     

    Methods inherited from class org.junit.rules.ExternalResource

    apply

    Methods inherited from class java.lang.Object

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

    • connectionSupplier

      private final Supplier<org.apache.hadoop.hbase.client.AsyncConnection> connectionSupplier
    • 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
  • Constructor Details

    • ClassSetup

      public ClassSetup(Supplier<org.apache.hadoop.hbase.client.AsyncConnection> connectionSupplier)
  • Method Details

    • getTarget

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

      protected void before() throws Throwable
      Overrides:
      before in class org.junit.rules.ExternalResource
      Throws:
      Throwable
    • after

      protected void after()
      Overrides:
      after in class org.junit.rules.ExternalResource