HBASE-7986. [REST] Make HTablePool size configurable (binlijin)

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1452770 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Andrew Kyle Purtell 2013-03-05 12:46:58 +00:00
parent 3a1b53f2fc
commit 13f2700645
1 changed files with 2 additions and 1 deletions

View File

@ -70,7 +70,8 @@ public class RESTServlet implements Constants {
*/
RESTServlet(Configuration conf) throws IOException {
this.conf = conf;
this.pool = new HTablePool(conf, 10);
int maxSize = conf.getInt("hbase.rest.htablepool.size", 10);
this.pool = new HTablePool(conf, maxSize);
this.admin = new HBaseAdmin(conf);
}