@InterfaceAudience.Private public class RegionReplicaFlushHandler extends EventHandler
EventHandler.EventHandlerListener
Modifier and Type | Field and Description |
---|---|
private ClusterConnection |
connection |
private static org.apache.commons.logging.Log |
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, getListener, getPriority, getSeqid, prepare, run, setListener, toString
private static final org.apache.commons.logging.Log LOG
private final ClusterConnection connection
private final RpcRetryingCallerFactory rpcRetryingCallerFactory
private final RpcControllerFactory rpcControllerFactory
private final int operationTimeout
private final HRegion region
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.