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
Modifier and TypeFieldDescriptionprivate final HRegionLocation
private final AsyncProcess
private final HTableMultiplexer.AtomicAverageCounter
private final AtomicInteger
private final ScheduledExecutorService
private final AtomicLong
private final int
private final HTableMultiplexer
private final int
private final ExecutorService
private final List<HTableMultiplexer.PutStatus>
private final LinkedBlockingQueue<HTableMultiplexer.PutStatus>
private final AtomicInteger
private final AtomicLong
private final int
-
Constructor Summary
ConstructorDescriptionFlushWorker
(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) ScheduledExecutorService
long
(package private) int
(package private) HTableMultiplexer
(package private) long
getNextDelay
(int retryCount) protected LinkedBlockingQueue<HTableMultiplexer.PutStatus>
getQueue()
(package private) AtomicInteger
long
long
(package private) AtomicLong
(package private) boolean
void
run()
-
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
-