Class HBaseClientManager

java.lang.Object
io.datarouter.storage.client.BaseClientManager
io.datarouter.client.hbase.HBaseClientManager
All Implemented Interfaces:
io.datarouter.storage.client.ClientManager

@Singleton
public class HBaseClientManager
extends io.datarouter.storage.client.BaseClientManager
  • Field Summary

    Fields 
    Modifier and Type Field Description
    static byte[] DEFAULT_FAMILY_QUALIFIER  
    static java.lang.String DUMMY_COL_NAME  
  • Constructor Summary

    Constructors 
    Constructor Description
    HBaseClientManager()  
  • Method Summary

    Modifier and Type Method Description
    void checkInTable​(io.datarouter.storage.client.ClientId clientId, org.apache.hadoop.hbase.client.Table table, boolean possiblyTarnished)  
    org.apache.hadoop.hbase.client.Table checkOutTable​(io.datarouter.storage.client.ClientId clientId, java.lang.String name, io.datarouter.util.mutable.MutableString progress)  
    protected java.util.concurrent.Future<java.util.Optional<io.datarouter.storage.config.schema.SchemaUpdateResult>> doSchemaUpdate​(io.datarouter.storage.node.type.physical.PhysicalNode<?,​?,​?> node)  
    org.apache.hadoop.hbase.client.Admin getAdmin​(io.datarouter.storage.client.ClientId clientId)  
    org.apache.hadoop.hbase.client.Connection getConnection​(io.datarouter.storage.client.ClientId clientId)  
    HBaseTablePool getHTablePool​(io.datarouter.storage.client.ClientId clientId)  
    org.apache.hadoop.hbase.client.Table getTable​(io.datarouter.storage.client.ClientId clientId, java.lang.String tableName)  
    protected org.apache.hadoop.hbase.client.Connection makeConnection​(java.lang.String clientName)  
    protected void safeInitClient​(io.datarouter.storage.client.ClientId clientId)  
    void shutdown​(io.datarouter.storage.client.ClientId clientId)  

    Methods inherited from class io.datarouter.storage.client.BaseClientManager

    doSchemaUpdate, gatherSchemaUpdates, initClient, monitorLatency

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

  • Method Details

    • safeInitClient

      protected void safeInitClient​(io.datarouter.storage.client.ClientId clientId)
      Specified by:
      safeInitClient in class io.datarouter.storage.client.BaseClientManager
    • getConnection

      public org.apache.hadoop.hbase.client.Connection getConnection​(io.datarouter.storage.client.ClientId clientId)
    • getAdmin

      public org.apache.hadoop.hbase.client.Admin getAdmin​(io.datarouter.storage.client.ClientId clientId)
    • getTable

      public org.apache.hadoop.hbase.client.Table getTable​(io.datarouter.storage.client.ClientId clientId, java.lang.String tableName)
    • makeConnection

      protected org.apache.hadoop.hbase.client.Connection makeConnection​(java.lang.String clientName)
    • doSchemaUpdate

      protected java.util.concurrent.Future<java.util.Optional<io.datarouter.storage.config.schema.SchemaUpdateResult>> doSchemaUpdate​(io.datarouter.storage.node.type.physical.PhysicalNode<?,​?,​?> node)
      Overrides:
      doSchemaUpdate in class io.datarouter.storage.client.BaseClientManager
    • getHTablePool

      public HBaseTablePool getHTablePool​(io.datarouter.storage.client.ClientId clientId)
    • checkOutTable

      public org.apache.hadoop.hbase.client.Table checkOutTable​(io.datarouter.storage.client.ClientId clientId, java.lang.String name, io.datarouter.util.mutable.MutableString progress)
    • checkInTable

      public void checkInTable​(io.datarouter.storage.client.ClientId clientId, org.apache.hadoop.hbase.client.Table table, boolean possiblyTarnished)
    • shutdown

      public void shutdown​(io.datarouter.storage.client.ClientId clientId)