HBASE-27281 Add default implementation for Connection$getClusterId (#4683)
Signed-off-by: Duo Zhang <zhangduo@apache.org>
This commit is contained in:
parent
1040ab4fd6
commit
ad6770652f
|
@ -171,8 +171,13 @@ public interface Connection extends Abortable, Closeable {
|
||||||
*/
|
*/
|
||||||
TableBuilder getTableBuilder(TableName tableName, ExecutorService pool);
|
TableBuilder getTableBuilder(TableName tableName, ExecutorService pool);
|
||||||
|
|
||||||
/** 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
|
* Retrieve an Hbck implementation to fix an HBase cluster. The returned Hbck is not guaranteed to
|
||||||
|
|
Loading…
Reference in New Issue