@InterfaceAudience.Private public class MasterAddressRefresher extends Object implements Closeable
MasterRegistry up to date. This
uses the RPC MasterProtos.ClientMetaService.getMasters(org.apache.hbase.thirdparty.com.google.protobuf.RpcController, org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.GetMastersRequest, org.apache.hbase.thirdparty.com.google.protobuf.RpcCallback<org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.GetMastersResponse>) to fetch the latest list of registered masters.
By default the refresh happens periodically (configured via
PERIODIC_REFRESH_INTERVAL_SECS). The refresh can also be triggered on demand via
refreshNow(). To prevent a flood of on-demand refreshes we expect that any attempts two
should be spaced at least MIN_SECS_BETWEEN_REFRESHES seconds apart.| Modifier and Type | Field and Description |
|---|---|
static String |
MIN_SECS_BETWEEN_REFRESHES |
static String |
PERIODIC_REFRESH_INTERVAL_SECS |
public static final String PERIODIC_REFRESH_INTERVAL_SECS
public static final String MIN_SECS_BETWEEN_REFRESHES
public void close()
close in interface Closeableclose in interface AutoCloseableCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.