Package org.apache.hadoop.hbase.client
Class RegionServerRegistry
java.lang.Object
org.apache.hadoop.hbase.client.RegionServerRegistry
- All Implemented Interfaces:
Closeable,AutoCloseable,ConnectionRegistry
Connection registry implementation for region server.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes this instance and releases any system resources associated with itGet the address of active HMaster.Should only be called once.Return the connection string associated with this registry instance.Get the location of meta region(s).
-
Field Details
-
regionServer
-
-
Constructor Details
-
RegionServerRegistry
-
-
Method Details
-
getMetaRegionLocations
Description copied from interface:ConnectionRegistryGet the location of meta region(s).- Specified by:
getMetaRegionLocationsin interfaceConnectionRegistry
-
getClusterId
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
-
getActiveMaster
Description copied from interface:ConnectionRegistryGet the address of active HMaster.- Specified by:
getActiveMasterin interfaceConnectionRegistry
-
getConnectionString
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
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
-