Java Code Examples for org.hbase.async.HBaseClient

The following examples show how to use org.hbase.async.HBaseClient. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: qmq   Source File: HBaseStoreFactory.java    License: Apache License 2.0 5 votes vote down vote up
HBaseStoreFactory(DynamicConfig config, DicService dicService, BackupKeyGenerator keyGenerator) {
    final DynamicConfig hbaseConfig = DynamicConfigLoader.load(DEFAULT_HBASE_CONFIG_FILE, true);
    final Config HBaseConfig = from(hbaseConfig);
    this.client = new HBaseClient(HBaseConfig);
    this.client.setFlushInterval(CLIENT_FLUSH_INTERVAL);
    this.client.setIncrementBufferSize(CLIENT_BUFFER_SIZE);
    this.table = config.getString(HBASE_MESSAGE_INDEX_TABLE_CONFIG_KEY, DEFAULT_HBASE_MESSAGE_INDEX_TABLE);
    this.delayTable = config.getString(HBASE_DELAY_MESSAGE_INDEX_TABLE_CONFIG_KEY, DEFAULT_HBASE_DELAY_MESSAGE_INDEX_TABLE);
    this.recordTable = config.getString(HBASE_RECORD_TABLE_CONFIG_KEY, DEFAULT_HBASE_RECORD_TABLE);
    this.deadTable = config.getString(HBASE_DEAD_MESSAGE_CONFIG_KEY, DEFAULT_HBASE_DEAD_TABLE);
    this.deadContentTable = config.getString(HBASE_DEAD_MESSAGE_CONTENT_CONFIG_KEY, DEFAULT_HBASE_DEAD_CONTENT_TABLE);

    this.dicService = dicService;
    this.keyGenerator = keyGenerator;
}
 
Example 2
Source Project: qmq   Source File: HBaseRecordStore.java    License: Apache License 2.0 5 votes vote down vote up
HBaseRecordStore(byte[] table, byte[] indexTable, byte[] family, byte[][] qualifiers, HBaseClient client
        , DicService dicService, BackupKeyGenerator keyGenerator) {
    super(table, family, qualifiers, client);
    this.indexTable = indexTable;
    this.dicService = dicService;
    this.keyGenerator = keyGenerator;
}
 
Example 3
Source Project: diver   Source File: AppModule.java    License: Apache License 2.0 5 votes vote down vote up
@Provides
@Singleton
private HBaseClient providesHBaseClient(
    @Named("zk.quorum_spec") final String quorumSpec,
    @Named("zk.base_path")   final String basePath) {
  return new HBaseClient(quorumSpec, basePath);
}
 
Example 4
Source Project: diver   Source File: JavaServer.java    License: Apache License 2.0 5 votes vote down vote up
@Inject
public JavaServer(
    final OtpNode otpNode,
    final HBaseClient hbaseClient,
    @Named("erlang.registered_proc_name") final String registeredProcName) {
  this.otpNode = otpNode;
  this.hbaseClient = hbaseClient;
  this.registeredProcName = registeredProcName;
}
 
Example 5
Source Project: qmq   Source File: HBaseDeadMessageStore.java    License: Apache License 2.0 4 votes vote down vote up
HBaseDeadMessageStore(byte[] table, byte[] family, byte[][] qualifiers, HBaseClient client, DicService dicService) {
    super(table, family, qualifiers, client);
    this.dicService = dicService;
}
 
Example 6
Source Project: qmq   Source File: HBaseIndexStore.java    License: Apache License 2.0 4 votes vote down vote up
HBaseIndexStore(byte[] table, byte[] family, byte[][] qualifiers, HBaseClient client, DicService dicService) {
    super(table, family, qualifiers, client);
    this.dicService = dicService;
}
 
Example 7
Source Project: qmq   Source File: AbstractHBaseMessageStore.java    License: Apache License 2.0 4 votes vote down vote up
AbstractHBaseMessageStore(byte[] table, byte[] family, byte[][] qualifiers, HBaseClient client) {
    super(table, family, qualifiers, client);
}
 
Example 8
Source Project: qmq   Source File: HBaseDeadMessageContentStore.java    License: Apache License 2.0 4 votes vote down vote up
HBaseDeadMessageContentStore(byte[] table, byte[] family, byte[][] qualifiers, HBaseClient client, DicService dicService) {
    super(table, family, qualifiers, client);
    this.dicService = dicService;
}