Package io.datarouter.client.hbase.pool
Class HBaseTablePool
java.lang.Object
io.datarouter.client.hbase.pool.HBaseTablePool
public class HBaseTablePool
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description HBaseTablePool(HBaseOptions hbaseOptions, DatarouterHBaseSettingRoot datarouterHBaseSettingRoot, org.apache.hadoop.hbase.client.Connection connection, io.datarouter.storage.client.ClientId clientId, io.datarouter.storage.client.ClientType<?,?> clientType) -
Method Summary
Modifier and Type Method Description voidcheckIn(org.apache.hadoop.hbase.client.Table htable, boolean possiblyTarnished)org.apache.hadoop.hbase.client.TablecheckOut(java.lang.String tableName, io.datarouter.util.mutable.MutableString progress)voidforceLogIfInconsistentCounts(boolean checkOut, java.lang.String tableName)java.lang.IntegergetTotalPoolSize()voidshutdown()
-
Constructor Details
-
HBaseTablePool
public HBaseTablePool(HBaseOptions hbaseOptions, DatarouterHBaseSettingRoot datarouterHBaseSettingRoot, org.apache.hadoop.hbase.client.Connection connection, io.datarouter.storage.client.ClientId clientId, io.datarouter.storage.client.ClientType<?,?> clientType)
-
-
Method Details
-
checkOut
public org.apache.hadoop.hbase.client.Table checkOut(java.lang.String tableName, io.datarouter.util.mutable.MutableString progress) -
checkIn
public void checkIn(org.apache.hadoop.hbase.client.Table htable, boolean possiblyTarnished) -
getTotalPoolSize
public java.lang.Integer getTotalPoolSize() -
shutdown
public void shutdown() -
forceLogIfInconsistentCounts
public void forceLogIfInconsistentCounts(boolean checkOut, java.lang.String tableName)
-