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 List<HTableMultiplexer.PutStatus> |
processingList |
private LinkedBlockingQueue<HTableMultiplexer.PutStatus> |
queue |
private AtomicInteger |
retryInQueue |
private AtomicLong |
totalFailedPutCount |
Constructor and Description |
---|
HTableMultiplexer.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
public HTableMultiplexer.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
long getNextDelay(int retryCount)
AtomicInteger getRetryInQueue()
int getMaxRetryInQueue()
AtomicLong getTotalFailedPutCount()
HTableMultiplexer getMultiplexer()
ScheduledExecutorService getExecutor()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.