Search in sources :

Example 1 with WaitForCompletionTaskRunner

use of org.apache.phoenix.hbase.index.parallel.WaitForCompletionTaskRunner in project phoenix by apache.

the class TrackingParallelWriterIndexCommitter method setup.

/**
     * Setup <tt>this</tt>.
     * <p>
     * Exposed for TESTING
     */
void setup(HTableFactory factory, ExecutorService pool, Abortable abortable, Stoppable stop, int cacheSize, RegionCoprocessorEnvironment env) {
    this.pool = new WaitForCompletionTaskRunner(pool);
    this.factory = new CachingHTableFactory(factory, cacheSize, env);
    this.abortable = new CapturingAbortable(abortable);
    this.stopped = stop;
}
Also used : CachingHTableFactory(org.apache.phoenix.hbase.index.table.CachingHTableFactory) CapturingAbortable(org.apache.phoenix.hbase.index.CapturingAbortable) WaitForCompletionTaskRunner(org.apache.phoenix.hbase.index.parallel.WaitForCompletionTaskRunner)

Aggregations

CapturingAbortable (org.apache.phoenix.hbase.index.CapturingAbortable)1 WaitForCompletionTaskRunner (org.apache.phoenix.hbase.index.parallel.WaitForCompletionTaskRunner)1 CachingHTableFactory (org.apache.phoenix.hbase.index.table.CachingHTableFactory)1