@InterfaceAudience.Private static class HTableMultiplexer.FlushWorker extends Object implements Runnable
Modifier and Type | Field and Description |
---|---|
private HRegionLocation |
addr |
private AsyncProcess |
ap |
private HTableMultiplexer.AtomicAverageCounter |
averageLatency |
private AtomicInteger |
currentProcessingCount |
private ScheduledExecutorService |
executor |
private AtomicLong |
maxLatency |
private int |
maxRetryInQueue |
private HTableMultiplexer |
multiplexer |
private int |
operationTimeout |
private ExecutorService |
pool |
private List<HTableMultiplexer.PutStatus> |
processingList |
private LinkedBlockingQueue<HTableMultiplexer.PutStatus> |
queue |
private AtomicInteger |
retryInQueue |
private AtomicLong |
totalFailedPutCount |
private int |
writeRpcTimeout |
Constructor and Description |
---|
FlushWorker(org.apache.hadoop.conf.Configuration conf,
ClusterConnection conn,
HRegionLocation addr,
HTableMultiplexer htableMultiplexer,
int perRegionServerBufferQueueSize,
ExecutorService pool,
ScheduledExecutorService executor) |
Modifier and Type | Method and Description |
---|---|
HTableMultiplexer.AtomicAverageCounter |
getAverageLatencyCounter() |
(package private) ScheduledExecutorService |
getExecutor() |
long |
getMaxLatency() |
(package private) int |
getMaxRetryInQueue() |
(package private) HTableMultiplexer |
getMultiplexer() |
(package private) long |
getNextDelay(int retryCount) |
protected LinkedBlockingQueue<HTableMultiplexer.PutStatus> |
getQueue() |
(package private) AtomicInteger |
getRetryInQueue() |
long |
getTotalBufferedCount() |
long |
getTotalFailedCount() |
(package private) AtomicLong |
getTotalFailedPutCount() |
(package private) boolean |
resubmitFailedPut(HTableMultiplexer.PutStatus ps,
HRegionLocation oldLoc) |
void |
run() |
private final HRegionLocation addr
private final LinkedBlockingQueue<HTableMultiplexer.PutStatus> queue
private final HTableMultiplexer multiplexer
private final AtomicLong totalFailedPutCount
private final AtomicInteger currentProcessingCount
private final HTableMultiplexer.AtomicAverageCounter averageLatency
private final AtomicLong maxLatency
private final AsyncProcess ap
private final List<HTableMultiplexer.PutStatus> processingList
private final ScheduledExecutorService executor
private final int maxRetryInQueue
private final AtomicInteger retryInQueue
private final int writeRpcTimeout
private final int operationTimeout
private final ExecutorService pool
public FlushWorker(org.apache.hadoop.conf.Configuration conf, ClusterConnection conn, HRegionLocation addr, HTableMultiplexer htableMultiplexer, int perRegionServerBufferQueueSize, ExecutorService pool, ScheduledExecutorService executor)
protected LinkedBlockingQueue<HTableMultiplexer.PutStatus> getQueue()
public long getTotalFailedCount()
public long getTotalBufferedCount()
public HTableMultiplexer.AtomicAverageCounter getAverageLatencyCounter()
public long getMaxLatency()
boolean resubmitFailedPut(HTableMultiplexer.PutStatus ps, HRegionLocation oldLoc) throws IOException
IOException
@InterfaceAudience.Private long getNextDelay(int retryCount)
@InterfaceAudience.Private AtomicInteger getRetryInQueue()
@InterfaceAudience.Private int getMaxRetryInQueue()
@InterfaceAudience.Private AtomicLong getTotalFailedPutCount()
@InterfaceAudience.Private HTableMultiplexer getMultiplexer()
@InterfaceAudience.Private ScheduledExecutorService getExecutor()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.