Package org.apache.hadoop.hbase.client
Class ShortCircuitConnectionRegistry
java.lang.Object
org.apache.hadoop.hbase.client.ShortCircuitConnectionRegistry
- All Implemented Interfaces:
Closeable
,AutoCloseable
,ConnectionRegistry
A
ConnectionRegistry
implementation used at server side, where we could use the
ConnectionRegistryEndpoint
directly, without any rpcs.-
Field Summary
-
Constructor Summary
-
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).
-
Field Details
-
endpoint
-
-
Constructor Details
-
ShortCircuitConnectionRegistry
-
-
Method Details
-
getMetaRegionLocations
Description copied from interface:ConnectionRegistry
Get the location of meta region(s).- Specified by:
getMetaRegionLocations
in interfaceConnectionRegistry
-
getClusterId
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
-
getActiveMaster
Description copied from interface:ConnectionRegistry
Get the address of active HMaster.- Specified by:
getActiveMaster
in interfaceConnectionRegistry
-
getConnectionString
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
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
-