Package org.apache.hadoop.hbase.client
Interface ConnectionRegistry
- All Superinterfaces:
AutoCloseable
,Closeable
- All Known Implementing Classes:
AbstractRpcBasedConnectionRegistry
,MasterRegistry
,RegionServerRegistry
,RpcConnectionRegistry
,ZKConnectionRegistry
Registry for meta information needed for connection setup to a HBase cluster. Implementations
hold cluster information such as this cluster's id, location of hbase:meta, etc.. Internal use
only.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
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).
-
Method Details
-
getMetaRegionLocations
Get the location of meta region(s). -
getClusterId
Should only be called once.The upper layer should store this value somewhere as it will not be change any more.
-
getActiveMaster
Get the address of active HMaster. -
getConnectionString
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. -
close
void close()Closes this instance and releases any system resources associated with it- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-