RpcConnectionRegistry
instead.@Deprecated @InterfaceAudience.Private public class MasterRegistry extends Object
MASTER_REGISTRY_HEDGED_REQS_FANOUT_KEY
to a value greater than 1
will enable
it(the default value is AbstractRpcBasedConnectionRegistry.HEDGED_REQS_FANOUT_DEFAULT
).
Modifier and Type | Class and Description |
---|---|
protected static interface |
AbstractRpcBasedConnectionRegistry.Callable<T>
For describing the actual asynchronous rpc call.
|
Modifier and Type | Field and Description |
---|---|
static int |
HEDGED_REQS_FANOUT_DEFAULT
Default value for the fan out of hedged requests.
|
static String |
MASTER_REGISTRY_HEDGED_REQS_FANOUT_KEY
Deprecated.
Configuration key that controls the fan out of requests
|
static String |
MASTER_REGISTRY_INITIAL_REFRESH_DELAY_SECS
Deprecated.
|
static String |
MASTER_REGISTRY_MIN_SECS_BETWEEN_REFRESHES
Deprecated.
|
static String |
MASTER_REGISTRY_PERIODIC_REFRESH_INTERVAL_SECS
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected <T extends org.apache.hbase.thirdparty.com.google.protobuf.Message> |
call(AbstractRpcBasedConnectionRegistry.Callable<T> callable,
Predicate<T> isValidResp,
String debug) |
void |
close()
Closes this instance and releases any system resources associated with it
|
protected CompletableFuture<Set<ServerName>> |
fetchEndpoints()
Deprecated.
|
CompletableFuture<ServerName> |
getActiveMaster()
Get the address of active HMaster.
|
protected Set<ServerName> |
getBootstrapNodes(org.apache.hadoop.conf.Configuration conf)
Deprecated.
|
CompletableFuture<String> |
getClusterId()
Should only be called once.
|
String |
getConnectionString()
Deprecated.
Return the connection string associated with this registry instance.
|
static String |
getMasterAddr(org.apache.hadoop.conf.Configuration conf)
Deprecated.
Builds the default master address end point if it is not specified in the configuration.
|
CompletableFuture<RegionLocations> |
getMetaRegionLocations()
Get the location of meta region(s).
|
static Set<ServerName> |
parseMasterAddrs(org.apache.hadoop.conf.Configuration conf)
Deprecated.
Parses the list of master addresses from the provided configuration.
|
public static final String MASTER_REGISTRY_HEDGED_REQS_FANOUT_KEY
public static final String MASTER_REGISTRY_INITIAL_REFRESH_DELAY_SECS
public static final String MASTER_REGISTRY_PERIODIC_REFRESH_INTERVAL_SECS
public static final String MASTER_REGISTRY_MIN_SECS_BETWEEN_REFRESHES
public static final int HEDGED_REQS_FANOUT_DEFAULT
public static Set<ServerName> parseMasterAddrs(org.apache.hadoop.conf.Configuration conf) throws UnknownHostException
conf
- Configuration to parse from.UnknownHostException
protected Set<ServerName> getBootstrapNodes(org.apache.hadoop.conf.Configuration conf) throws IOException
IOException
protected CompletableFuture<Set<ServerName>> fetchEndpoints()
public String getConnectionString()
ConnectionRegistry
public static String getMasterAddr(org.apache.hadoop.conf.Configuration conf) throws UnknownHostException
HBaseTestingUtility
.UnknownHostException
protected final <T extends org.apache.hbase.thirdparty.com.google.protobuf.Message> CompletableFuture<T> call(AbstractRpcBasedConnectionRegistry.Callable<T> callable, Predicate<T> isValidResp, String debug)
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 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.