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 Summary
Modifier and TypeClassDescriptionprivate static interface
Deprecated. -
Field Summary
Modifier and TypeFieldDescriptionprivate static final org.slf4j.Logger
Deprecated.private static boolean
Deprecated.private static final Object
Deprecated.private final ReadOnlyZKClient
Deprecated.private final ZNodePaths
Deprecated. -
Constructor Summary
ConstructorDescriptionZKConnectionRegistry
(org.apache.hadoop.conf.Configuration conf, User ignored) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
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 String
getClusterId
(byte[] data) Deprecated.Deprecated.Return the connection string associated with this registry instance.private static org.apache.hadoop.hbase.shaded.protobuf.generated.ZooKeeperProtos.Master
getMasterProto
(byte[] data) Deprecated.private static org.apache.hadoop.hbase.shaded.protobuf.generated.ZooKeeperProtos.MetaRegionServer
getMetaProto
(byte[] data) Deprecated.private void
getMetaRegionLocation
(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) ReadOnlyZKClient
Deprecated.private static void
tryComplete
(org.apache.commons.lang3.mutable.MutableInt remaining, Collection<HRegionLocation> locs, CompletableFuture<RegionLocations> future) Deprecated.
-
Field Details
-
LOG
Deprecated. -
WARN_LOCK
Deprecated. -
NEEDS_LOG_WARN
Deprecated. -
zk
Deprecated. -
znodePaths
Deprecated.
-
-
Constructor Details
-
ZKConnectionRegistry
ZKConnectionRegistry(org.apache.hadoop.conf.Configuration conf, User ignored) Deprecated.
-
-
Method Details
-
getAndConvert
private <T> CompletableFuture<T> getAndConvert(String path, ZKConnectionRegistry.Converter<T> converter) Deprecated. -
getClusterId
Deprecated.- Throws:
DeserializationException
-
getClusterId
Deprecated.Description copied from interface:ConnectionRegistry
Should only be called once.The upper layer should store this value somewhere as it will not be change any more.
- Specified by:
getClusterId
in interfaceConnectionRegistry
-
getZKClient
Deprecated. -
getMetaProto
private static org.apache.hadoop.hbase.shaded.protobuf.generated.ZooKeeperProtos.MetaRegionServer getMetaProto(byte[] data) throws IOException Deprecated.- Throws:
IOException
-
tryComplete
private static void tryComplete(org.apache.commons.lang3.mutable.MutableInt remaining, Collection<HRegionLocation> locs, CompletableFuture<RegionLocations> future) Deprecated. -
getStateAndServerName
private Pair<RegionState.State,ServerName> getStateAndServerName(org.apache.hadoop.hbase.shaded.protobuf.generated.ZooKeeperProtos.MetaRegionServer proto) Deprecated. -
getMetaRegionLocation
private void getMetaRegionLocation(CompletableFuture<RegionLocations> future, List<String> metaReplicaZNodes) Deprecated. -
getMetaRegionLocations
Deprecated.Description copied from interface:ConnectionRegistry
Get the location of meta region(s).- Specified by:
getMetaRegionLocations
in interfaceConnectionRegistry
-
getMasterProto
private static org.apache.hadoop.hbase.shaded.protobuf.generated.ZooKeeperProtos.Master getMasterProto(byte[] data) throws IOException Deprecated.- Throws:
IOException
-
getActiveMaster
Deprecated.Description copied from interface:ConnectionRegistry
Get the address of active HMaster.- Specified by:
getActiveMaster
in interfaceConnectionRegistry
-
getConnectionString
Deprecated.Description copied from interface:ConnectionRegistry
Return 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:
getConnectionString
in interfaceConnectionRegistry
-
close
Deprecated.Description copied from interface:ConnectionRegistry
Closes this instance and releases any system resources associated with it- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceConnectionRegistry
-
RpcConnectionRegistry
, which is the default connection mechanism as of 3.0.0. Expected to be removed in 4.0.0.