@InterfaceAudience.Private public class MasterRegistry extends Object
限定符和类型 | 类和说明 |
---|---|
protected static interface |
MasterRegistry.Callable<T extends com.google.protobuf.Message> |
限定符和类型 | 字段和说明 |
---|---|
protected MasterAddressRefresher |
masterAddressRefresher |
构造器和说明 |
---|
MasterRegistry() |
限定符和类型 | 方法和说明 |
---|---|
void |
close()
Cleanup state, if any.
|
protected <T extends com.google.protobuf.Message> |
doCall(MasterRegistry.Callable<T> callable) |
ServerName |
getActiveMaster() |
String |
getClusterId() |
int |
getCurrentNrHRS() |
static String |
getMasterAddr(org.apache.hadoop.conf.Configuration conf)
Builds the default master address end point if it is not specified in the configuration.
|
RegionLocations |
getMetaRegionLocations() |
void |
init(Connection connection) |
boolean |
isTableOnlineState(TableName tableName,
boolean enabled) |
static Set<ServerName> |
parseMasterAddrs(org.apache.hadoop.conf.Configuration conf)
Parses the list of master addresses from the provided configuration.
|
protected MasterAddressRefresher masterAddressRefresher
public void init(Connection connection) throws IOException
IOException
protected <T extends com.google.protobuf.Message> T doCall(MasterRegistry.Callable<T> callable) throws MasterRegistryFetchException
public ServerName getActiveMaster() throws IOException
IOException
public RegionLocations getMetaRegionLocations() throws IOException
IOException
public String getClusterId() throws IOException
IOException
public int getCurrentNrHRS() throws IOException
IOException
public boolean isTableOnlineState(TableName tableName, boolean enabled) throws IOException
enabled
- Return true if table is enabledIOException
public void close()
@InterfaceAudience.Private public static Set<ServerName> parseMasterAddrs(org.apache.hadoop.conf.Configuration conf) throws UnknownHostException
conf
- Configuration to parse from.UnknownHostException
@InterfaceAudience.Private public static String getMasterAddr(org.apache.hadoop.conf.Configuration conf) throws UnknownHostException
HBaseTestingUtility
.Copyright © 2007–2022 The Apache Software Foundation. All rights reserved.