Package io.datarouter.client.hbase
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_QUALIFIERstatic StringDUMMY_COL_NAME -
Constructor Summary
Constructors Constructor Description HBaseClientManager() -
Method Summary
Modifier and Type Method Description voidcheckInTable(io.datarouter.storage.client.ClientId clientId, org.apache.hadoop.hbase.client.Table table, boolean possiblyTarnished)org.apache.hadoop.hbase.client.TablecheckOutTable(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.AdmingetAdmin(io.datarouter.storage.client.ClientId clientId)org.apache.hadoop.hbase.client.ConnectiongetConnection(io.datarouter.storage.client.ClientId clientId)HBaseTablePoolgetHTablePool(io.datarouter.storage.client.ClientId clientId)org.apache.hadoop.hbase.client.TablegetTable(io.datarouter.storage.client.ClientId clientId, String tableName)protected org.apache.hadoop.hbase.client.ConnectionmakeConnection(String clientName)protected voidsafeInitClient(io.datarouter.storage.client.ClientId clientId)voidshutdown(io.datarouter.storage.client.ClientId clientId)
-
Field Details
-
DEFAULT_FAMILY_QUALIFIER
public static final byte[] DEFAULT_FAMILY_QUALIFIER -
DUMMY_COL_NAME
-
-
Constructor Details
-
HBaseClientManager
public HBaseClientManager()
-
-
Method Details
-
safeInitClient
protected void safeInitClient(io.datarouter.storage.client.ClientId clientId)- Specified by:
safeInitClientin classio.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
-
doSchemaUpdate
protected Future<Optional<io.datarouter.storage.config.schema.SchemaUpdateResult>> doSchemaUpdate(io.datarouter.storage.node.type.physical.PhysicalNode<?,?,?> node)- Overrides:
doSchemaUpdatein classio.datarouter.storage.client.BaseClientManager
-
getHTablePool
-
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)
-