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
FieldsModifier and TypeFieldDescriptionstatic final byte[]static final Stringstatic final byte[]static final byte[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoSchemaUpdate(io.datarouter.storage.node.type.physical.PhysicalNode<?, ?, ?> node) org.apache.hadoop.hbase.client.ConnectiongetConnection(io.datarouter.storage.client.ClientId clientId) org.apache.hadoop.hbase.client.Tableprotected org.apache.hadoop.hbase.client.ConnectionmakeConnection(String clientName) protected voidsafeInitClient(io.datarouter.storage.client.ClientId clientId) voidshutdown(io.datarouter.storage.client.ClientId clientId) Methods inherited from class io.datarouter.storage.client.BaseClientManager
doSchemaUpdate, gatherSchemaUpdates, initClient, monitorLatency
-
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
-
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:
safeInitClientin classio.datarouter.storage.client.BaseClientManager
-
getConnection
public org.apache.hadoop.hbase.client.Connection getConnection(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
-
shutdown
public void shutdown(io.datarouter.storage.client.ClientId clientId)
-