@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()
ConnectionRegistrygetMetaRegionLocations in interface ConnectionRegistrypublic CompletableFuture<String> getClusterId()
ConnectionRegistryThe upper layer should store this value somewhere as it will not be change any more.
getClusterId in interface ConnectionRegistrypublic CompletableFuture<ServerName> getActiveMaster()
ConnectionRegistrygetActiveMaster in interface ConnectionRegistrypublic String getConnectionString()
ConnectionRegistrygetConnectionString in interface ConnectionRegistrypublic void close()
ConnectionRegistryclose in interface Closeableclose in interface AutoCloseableclose in interface ConnectionRegistryCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.