@InterfaceAudience.Private public class RegionReplicaFlushHandler extends EventHandler
Modifier and Type | Field and Description |
---|---|
private ClusterConnection |
connection |
private static org.slf4j.Logger |
LOG |
private int |
operationTimeout |
private HRegion |
region |
private RpcControllerFactory |
rpcControllerFactory |
private RpcRetryingCallerFactory |
rpcRetryingCallerFactory |
eventType, seqids, server, waitingTimeForEvents
Constructor and Description |
---|
RegionReplicaFlushHandler(Server server,
ClusterConnection connection,
RpcRetryingCallerFactory rpcRetryingCallerFactory,
RpcControllerFactory rpcControllerFactory,
int operationTimeout,
HRegion region) |
Modifier and Type | Method and Description |
---|---|
private int |
getRetriesCount(org.apache.hadoop.conf.Configuration conf) |
protected void |
handleException(Throwable t)
Event exception handler, may be overridden
|
void |
process()
This method is the main processing loop to be implemented by the various
subclasses.
|
(package private) void |
triggerFlushInPrimaryRegion(HRegion region) |
compareTo, getEventType, getInformativeName, getPriority, getSeqid, prepare, run, toString
private static final org.slf4j.Logger LOG
private final ClusterConnection connection
private final RpcRetryingCallerFactory rpcRetryingCallerFactory
private final RpcControllerFactory rpcControllerFactory
private final int operationTimeout
public RegionReplicaFlushHandler(Server server, ClusterConnection connection, RpcRetryingCallerFactory rpcRetryingCallerFactory, RpcControllerFactory rpcControllerFactory, int operationTimeout, HRegion region)
public void process() throws IOException
EventHandler
process
in class EventHandler
IOException
protected void handleException(Throwable t)
EventHandler
handleException
in class EventHandler
t
- Throwable objectprivate int getRetriesCount(org.apache.hadoop.conf.Configuration conf)
void triggerFlushInPrimaryRegion(HRegion region) throws IOException, RuntimeException
IOException
RuntimeException
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.