public class HBaseQueueClientFactory extends Object implements QueueClientFactory
| Constructor and Description |
|---|
HBaseQueueClientFactory(CConfiguration cConf,
Configuration hConf,
HBaseTableUtil hBaseTableUtil,
QueueAdmin queueAdmin,
co.cask.tephra.TransactionExecutorFactory txExecutorFactory) |
| Modifier and Type | Method and Description |
|---|---|
QueueConsumer |
createConsumer(QueueName queueName,
ConsumerConfig consumerConfig,
int numGroups) |
org.apache.hadoop.hbase.client.HTable |
createHTable(TableId tableId) |
QueueProducer |
createProducer(QueueName queueName) |
QueueProducer |
createProducer(QueueName queueName,
QueueMetrics queueMetrics) |
int |
getDistributorBuckets(org.apache.hadoop.hbase.HTableDescriptor htd) |
HBaseQueueAdmin |
getQueueAdmin() |
@Inject public HBaseQueueClientFactory(CConfiguration cConf, Configuration hConf, HBaseTableUtil hBaseTableUtil, QueueAdmin queueAdmin, co.cask.tephra.TransactionExecutorFactory txExecutorFactory)
public QueueProducer createProducer(QueueName queueName) throws IOException
createProducer in interface QueueClientFactoryIOExceptionpublic QueueProducer createProducer(QueueName queueName, QueueMetrics queueMetrics) throws IOException
createProducer in interface QueueClientFactoryIOExceptionpublic QueueConsumer createConsumer(QueueName queueName, ConsumerConfig consumerConfig, int numGroups) throws IOException
createConsumer in interface QueueClientFactoryIOExceptionpublic HBaseQueueAdmin getQueueAdmin()
public org.apache.hadoop.hbase.client.HTable createHTable(TableId tableId) throws IOException
IOExceptionpublic int getDistributorBuckets(org.apache.hadoop.hbase.HTableDescriptor htd)
Copyright © 2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.