Package org.apache.hadoop.hbase.client
Class HTableMultiplexer.FlushWorker
java.lang.Object
org.apache.hadoop.hbase.client.HTableMultiplexer.FlushWorker
- All Implemented Interfaces:
Runnable
- Enclosing class:
- HTableMultiplexer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final HRegionLocationprivate final AsyncProcessprivate final HTableMultiplexer.AtomicAverageCounterprivate final AtomicIntegerprivate final ScheduledExecutorServiceprivate final AtomicLongprivate final intprivate final HTableMultiplexerprivate final intprivate final ExecutorServiceprivate final List<HTableMultiplexer.PutStatus>private final LinkedBlockingQueue<HTableMultiplexer.PutStatus>private final AtomicIntegerprivate final AtomicLongprivate final int -
Constructor Summary
ConstructorsConstructorDescriptionFlushWorker(org.apache.hadoop.conf.Configuration conf, ClusterConnection conn, HRegionLocation addr, HTableMultiplexer htableMultiplexer, int perRegionServerBufferQueueSize, ExecutorService pool, ScheduledExecutorService executor) -
Method Summary
Modifier and TypeMethodDescription(package private) ScheduledExecutorServicelong(package private) int(package private) HTableMultiplexer(package private) longgetNextDelay(int retryCount) protected LinkedBlockingQueue<HTableMultiplexer.PutStatus>getQueue()(package private) AtomicIntegerlonglong(package private) AtomicLong(package private) booleanvoidrun()
-
Field Details
-
addr
-
queue
-
multiplexer
-
totalFailedPutCount
-
currentProcessingCount
-
averageLatency
-
maxLatency
-
ap
-
processingList
-
executor
-
maxRetryInQueue
-
retryInQueue
-
writeRpcTimeout
-
operationTimeout
-
pool
-
-
Constructor Details
-
FlushWorker
public FlushWorker(org.apache.hadoop.conf.Configuration conf, ClusterConnection conn, HRegionLocation addr, HTableMultiplexer htableMultiplexer, int perRegionServerBufferQueueSize, ExecutorService pool, ScheduledExecutorService executor)
-
-
Method Details
-
getQueue
-
getTotalFailedCount
-
getTotalBufferedCount
-
getAverageLatencyCounter
-
getMaxLatency
-
resubmitFailedPut
boolean resubmitFailedPut(HTableMultiplexer.PutStatus ps, HRegionLocation oldLoc) throws IOException - Throws:
IOException
-
getNextDelay
-
getRetryInQueue
-
getMaxRetryInQueue
-
getTotalFailedPutCount
-
getMultiplexer
-
getExecutor
-
run
-