You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by zh...@apache.org on 2018/01/19 13:24:54 UTC
[20/31] hbase git commit: HBASE-19820 Restore public constructor of
MiniHBaseCluster (API compat).
HBASE-19820 Restore public constructor of MiniHBaseCluster (API compat).
Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/09ffbb5b
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/09ffbb5b
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/09ffbb5b
Branch: refs/heads/HBASE-19064
Commit: 09ffbb5b68caa395407241eb891d567c98aa49b7
Parents: 7573e07
Author: Apekshit Sharma <ap...@apache.org>
Authored: Wed Jan 17 18:45:58 2018 -0800
Committer: Apekshit Sharma <ap...@apache.org>
Committed: Thu Jan 18 09:05:30 2018 -0800
----------------------------------------------------------------------
.../org/apache/hadoop/hbase/MiniHBaseCluster.java | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hbase/blob/09ffbb5b/hbase-server/src/test/java/org/apache/hadoop/hbase/MiniHBaseCluster.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/MiniHBaseCluster.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/MiniHBaseCluster.java
index e7f8496..3a40477 100644
--- a/hbase-server/src/test/java/org/apache/hadoop/hbase/MiniHBaseCluster.java
+++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/MiniHBaseCluster.java
@@ -78,7 +78,20 @@ public class MiniHBaseCluster extends HBaseCluster {
*/
public MiniHBaseCluster(Configuration conf, int numMasters, int numRegionServers)
throws IOException, InterruptedException {
- this(conf, numMasters, numRegionServers, null, null, null);
+ this(conf, numMasters, numRegionServers, null, null);
+ }
+
+ /**
+ * Start a MiniHBaseCluster.
+ * @param conf Configuration to be used for cluster
+ * @param numMasters initial number of masters to start.
+ * @param numRegionServers initial number of region servers to start.
+ */
+ public MiniHBaseCluster(Configuration conf, int numMasters, int numRegionServers,
+ Class<? extends HMaster> masterClass,
+ Class<? extends MiniHBaseCluster.MiniHBaseClusterRegionServer> regionserverClass)
+ throws IOException, InterruptedException {
+ this(conf, numMasters, numRegionServers, null, masterClass, regionserverClass);
}
/**