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
    void checkIn​(org.apache.hadoop.hbase.client.Table htable, boolean possiblyTarnished)  
    org.apache.hadoop.hbase.client.Table checkOut​(java.lang.String tableName, io.datarouter.util.mutable.MutableString progress)  
    void forceLogIfInconsistentCounts​(boolean checkOut, java.lang.String tableName)  
    java.lang.Integer getTotalPoolSize()  
    void shutdown()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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)