@InterfaceAudience.Private public class RegionServerRegistry extends Object implements ConnectionRegistry
Modifier and Type | Field and Description |
---|---|
private HRegionServer |
regionServer |
Constructor and Description |
---|
RegionServerRegistry(HRegionServer regionServer) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this instance and releases any system resources associated with it
|
CompletableFuture<ServerName> |
getActiveMaster()
Get the address of active HMaster.
|
CompletableFuture<String> |
getClusterId()
Should only be called once.
|
String |
getConnectionString()
Return the connection string associated with this registry instance.
|
CompletableFuture<RegionLocations> |
getMetaRegionLocations()
Get the location of meta region(s).
|
private final HRegionServer regionServer
public RegionServerRegistry(HRegionServer regionServer)
public CompletableFuture<RegionLocations> getMetaRegionLocations()
ConnectionRegistry
getMetaRegionLocations
in interface ConnectionRegistry
public CompletableFuture<String> getClusterId()
ConnectionRegistry
The upper layer should store this value somewhere as it will not be change any more.
getClusterId
in interface ConnectionRegistry
public CompletableFuture<ServerName> getActiveMaster()
ConnectionRegistry
getActiveMaster
in interface ConnectionRegistry
public String getConnectionString()
ConnectionRegistry
getConnectionString
in interface ConnectionRegistry
public void close()
ConnectionRegistry
close
in interface Closeable
close
in interface AutoCloseable
close
in interface ConnectionRegistry
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.