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 final byte[]
     
    static final String
     
    static final byte[]
     
    static final byte[]
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • 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, String name, io.datarouter.util.mutable.MutableString progress)
     
    protected Future<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)
     
    getHTablePool(io.datarouter.storage.client.ClientId clientId)
     
    org.apache.hadoop.hbase.client.Table
    getTable(io.datarouter.storage.client.ClientId clientId, String tableName)
     
    protected org.apache.hadoop.hbase.client.Connection
    makeConnection(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

    • DEFAULT_FAMILY_QUALIFIER

      public static final byte[] DEFAULT_FAMILY_QUALIFIER
    • DUMMY_COL_NAME_BYTES

      public static final byte[] DUMMY_COL_NAME_BYTES
    • DUMMY_COL_NAME

      public static final String DUMMY_COL_NAME
    • DUMMY_FIELD_VALUE

      public static final byte[] DUMMY_FIELD_VALUE
  • Constructor Details

    • HBaseClientManager

      public HBaseClientManager()
  • 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, String tableName)
    • makeConnection

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

      protected Future<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, 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)