Class DoNothingConnectionRegistry

java.lang.Object
org.apache.hadoop.hbase.client.DoNothingConnectionRegistry
All Implemented Interfaces:
Closeable, AutoCloseable, org.apache.hadoop.hbase.client.ConnectionRegistry
Direct Known Subclasses:
TestAsyncMetaRegionLocatorFailFast.FaultyConnectionRegistry, TestConnectionRegistryLeak.ConnectionRegistryForTest, TestWALEntrySinkFilter.DevNullConnectionRegistry, TestZooKeeperTableArchiveClient.MockRegistry

@Private public class DoNothingConnectionRegistry extends Object implements org.apache.hadoop.hbase.client.ConnectionRegistry
Registry that does nothing. Otherwise, default Registry wants zookeeper up and running.
  • Constructor Details

    • DoNothingConnectionRegistry

      public DoNothingConnectionRegistry(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.security.User user)
  • Method Details

    • getMetaRegionLocations

      public CompletableFuture<org.apache.hadoop.hbase.RegionLocations> getMetaRegionLocations()
      Specified by:
      getMetaRegionLocations in interface org.apache.hadoop.hbase.client.ConnectionRegistry
    • getClusterId

      Specified by:
      getClusterId in interface org.apache.hadoop.hbase.client.ConnectionRegistry
    • getActiveMaster

      public CompletableFuture<org.apache.hadoop.hbase.ServerName> getActiveMaster()
      Specified by:
      getActiveMaster in interface org.apache.hadoop.hbase.client.ConnectionRegistry
    • getConnectionString

      Specified by:
      getConnectionString in interface org.apache.hadoop.hbase.client.ConnectionRegistry
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Specified by:
      close in interface org.apache.hadoop.hbase.client.ConnectionRegistry