@InterfaceAudience.Private public interface ConnectionRegistry extends Closeable
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).
|
CompletableFuture<RegionLocations> getMetaRegionLocations()
CompletableFuture<String> getClusterId()
The upper layer should store this value somewhere as it will not be change any more.
CompletableFuture<ServerName> getActiveMaster()
String getConnectionString()
void close()
close
in interface AutoCloseable
close
in interface Closeable
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.