@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, toStringprivate 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
EventHandlerprocess in class EventHandlerIOExceptionprotected void handleException(Throwable t)
EventHandlerhandleException in class EventHandlert - Throwable objectprivate int getRetriesCount(org.apache.hadoop.conf.Configuration conf)
void triggerFlushInPrimaryRegion(HRegion region) throws IOException, RuntimeException
IOExceptionRuntimeExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.