HBASE-27281 Add default implementation for Connection$getClusterId (#4683)
Signed-off-by: Duo Zhang <zhangduo@apache.org>
This commit is contained in:
parent
bffae99f40
commit
39b496e191
|
@ -180,8 +180,13 @@ public interface Connection extends Abortable, Closeable {
|
|||
*/
|
||||
AsyncConnection toAsyncConnection();
|
||||
|
||||
/** Returns the cluster ID unique to this HBase cluster. */
|
||||
String getClusterId();
|
||||
/**
|
||||
* Returns the cluster ID unique to this HBase cluster. <br>
|
||||
* The default implementation is added to keep client compatibility.
|
||||
*/
|
||||
default String getClusterId() {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieve an Hbck implementation to fix an HBase cluster. The returned Hbck is not guaranteed to
|
||||
|
|
Loading…
Reference in New Issue