Package org.apache.hadoop.hbase.client
Class ZKConnectionRegistry
java.lang.Object
org.apache.hadoop.hbase.client.ZKConnectionRegistry
- All Implemented Interfaces:
- Closeable,- AutoCloseable,- ConnectionRegistry
@Deprecated
@LimitedPrivate("Configuration")
class ZKConnectionRegistry
extends Object
implements ConnectionRegistry
Deprecated.
Zookeeper based registry implementation.
- See Also:
- 
- HBASE-23324 and its parent ticket for details.
 
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionprivate static interfaceDeprecated.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate static final org.slf4j.LoggerDeprecated.private static booleanDeprecated.private static final ObjectDeprecated.private final ReadOnlyZKClientDeprecated.private final ZNodePathsDeprecated.
- 
Constructor SummaryConstructorsConstructorDescriptionZKConnectionRegistry(org.apache.hadoop.conf.Configuration conf, User ignored) Deprecated.
- 
Method SummaryModifier and TypeMethodDescriptionvoidclose()Deprecated.Closes this instance and releases any system resources associated with itDeprecated.Get the address of active HMaster.private <T> CompletableFuture<T>getAndConvert(String path, ZKConnectionRegistry.Converter<T> converter) Deprecated.Deprecated.Should only be called once.private static StringgetClusterId(byte[] data) Deprecated.Deprecated.Return the connection string associated with this registry instance.private static org.apache.hadoop.hbase.shaded.protobuf.generated.ZooKeeperProtos.MastergetMasterProto(byte[] data) Deprecated.private static org.apache.hadoop.hbase.shaded.protobuf.generated.ZooKeeperProtos.MetaRegionServergetMetaProto(byte[] data) Deprecated.private voidgetMetaRegionLocation(CompletableFuture<RegionLocations> future, List<String> metaReplicaZNodes) Deprecated.Deprecated.Get the location of meta region(s).private Pair<RegionState.State,ServerName> getStateAndServerName(org.apache.hadoop.hbase.shaded.protobuf.generated.ZooKeeperProtos.MetaRegionServer proto) Deprecated.(package private) ReadOnlyZKClientDeprecated.private static voidtryComplete(org.apache.commons.lang3.mutable.MutableInt remaining, Collection<HRegionLocation> locs, CompletableFuture<RegionLocations> future) Deprecated.
- 
Field Details- 
LOGDeprecated.
- 
WARN_LOCKDeprecated.
- 
NEEDS_LOG_WARNDeprecated.
- 
zkDeprecated.
- 
znodePathsDeprecated.
 
- 
- 
Constructor Details- 
ZKConnectionRegistryZKConnectionRegistry(org.apache.hadoop.conf.Configuration conf, User ignored) Deprecated.
 
- 
- 
Method Details- 
getAndConvertprivate <T> CompletableFuture<T> getAndConvert(String path, ZKConnectionRegistry.Converter<T> converter) Deprecated.
- 
getClusterIdDeprecated.- Throws:
- DeserializationException
 
- 
getClusterIdDeprecated.Description copied from interface:ConnectionRegistryShould only be called once.The upper layer should store this value somewhere as it will not be change any more. - Specified by:
- getClusterIdin interface- ConnectionRegistry
 
- 
getZKClientDeprecated.
- 
getMetaProtoprivate static org.apache.hadoop.hbase.shaded.protobuf.generated.ZooKeeperProtos.MetaRegionServer getMetaProto(byte[] data) throws IOException Deprecated.- Throws:
- IOException
 
- 
tryCompleteprivate static void tryComplete(org.apache.commons.lang3.mutable.MutableInt remaining, Collection<HRegionLocation> locs, CompletableFuture<RegionLocations> future) Deprecated.
- 
getStateAndServerNameprivate Pair<RegionState.State,ServerName> getStateAndServerName(org.apache.hadoop.hbase.shaded.protobuf.generated.ZooKeeperProtos.MetaRegionServer proto) Deprecated.
- 
getMetaRegionLocationprivate void getMetaRegionLocation(CompletableFuture<RegionLocations> future, List<String> metaReplicaZNodes) Deprecated.
- 
getMetaRegionLocationsDeprecated.Description copied from interface:ConnectionRegistryGet the location of meta region(s).- Specified by:
- getMetaRegionLocationsin interface- ConnectionRegistry
 
- 
getMasterProtoprivate static org.apache.hadoop.hbase.shaded.protobuf.generated.ZooKeeperProtos.Master getMasterProto(byte[] data) throws IOException Deprecated.- Throws:
- IOException
 
- 
getActiveMasterDeprecated.Description copied from interface:ConnectionRegistryGet the address of active HMaster.- Specified by:
- getActiveMasterin interface- ConnectionRegistry
 
- 
getConnectionStringDeprecated.Description copied from interface:ConnectionRegistryReturn the connection string associated with this registry instance. This value is informational, used for annotating traces. Values returned may not be valid for establishing a working cluster connection.- Specified by:
- getConnectionStringin interface- ConnectionRegistry
 
- 
closeDeprecated.Description copied from interface:ConnectionRegistryCloses this instance and releases any system resources associated with it- Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- Closeable
- Specified by:
- closein interface- ConnectionRegistry
 
 
- 
RpcConnectionRegistry, which is the default connection mechanism as of 3.0.0. Expected to be removed in 4.0.0.