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
Nested ClassesModifier and TypeClassDescriptionprivate static interfaceDeprecated. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.apache.hadoop.conf.ConfigurationDeprecated.static final intDeprecated.private static final org.slf4j.LoggerDeprecated.private static booleanDeprecated.private static final ObjectDeprecated.private final ReadOnlyZKClientDeprecated.static final StringDeprecated.private final intDeprecated.private final ZNodePathsDeprecated. -
Constructor Summary
ConstructorsConstructorDescriptionZKConnectionRegistry(org.apache.hadoop.conf.Configuration conf, User ignored) Deprecated. -
Method Summary
Modifier 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, HRegionLocation[] locs, CompletableFuture<RegionLocations> future) Deprecated.
-
Field Details
-
LOG
Deprecated. -
WARN_LOCK
Deprecated. -
NEEDS_LOG_WARN
Deprecated. -
zk
Deprecated. -
znodePaths
Deprecated. -
conf
Deprecated. -
zkRegistryAsyncTimeout
Deprecated. -
ZK_REGISTRY_ASYNC_GET_TIMEOUT
Deprecated.- See Also:
-
DEFAULT_ZK_REGISTRY_ASYNC_GET_TIMEOUT
Deprecated.- See Also:
-
-
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:ConnectionRegistryShould only be called once.The upper layer should store this value somewhere as it will not be change any more.
- Specified by:
getClusterIdin 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, 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:ConnectionRegistryGet the location of meta region(s).- Specified by:
getMetaRegionLocationsin 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:ConnectionRegistryGet the address of active HMaster.- Specified by:
getActiveMasterin interfaceConnectionRegistry
-
getConnectionString
Deprecated.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 interfaceConnectionRegistry
-
close
Deprecated.Description copied from interface:ConnectionRegistryCloses this instance and releases any system resources associated with it- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceConnectionRegistry
-
RpcConnectionRegistry, which is the default connection mechanism as of 3.0.0. Expected to be removed in 4.0.0.