@InterfaceAudience.Private public class CloseRegionHandler extends EventHandler
EventHandler.EventHandlerListener
Modifier and Type | Field and Description |
---|---|
private boolean |
abort |
private CloseRegionCoordination |
closeRegionCoordination |
private CloseRegionCoordination.CloseRegionDetails |
closeRegionDetails |
private ServerName |
destination |
private static org.apache.commons.logging.Log |
LOG |
private HRegionInfo |
regionInfo |
private RegionServerServices |
rsServices |
private boolean |
useZKForAssignment |
eventType, seqids, server, waitingTimeForEvents
Modifier and Type | Method and Description |
---|---|
HRegionInfo |
getRegionInfo() |
void |
process()
This method is the main processing loop to be implemented by the various
subclasses.
|
compareTo, getEventType, getInformativeName, getListener, getPriority, getSeqid, handleException, prepare, run, setListener, toString
private static final org.apache.commons.logging.Log LOG
private final RegionServerServices rsServices
private final HRegionInfo regionInfo
private final boolean abort
private ServerName destination
private CloseRegionCoordination closeRegionCoordination
private CloseRegionCoordination.CloseRegionDetails closeRegionDetails
private final boolean useZKForAssignment
public CloseRegionHandler(Server server, RegionServerServices rsServices, HRegionInfo regionInfo, boolean abort, CloseRegionCoordination closeRegionCoordination, CloseRegionCoordination.CloseRegionDetails crd)
server
- rsServices
- regionInfo
- abort
- If the regionserver is aborting.closeRegionCoordination
- consensus for closing regionscrd
- object carrying details about region close task.public CloseRegionHandler(Server server, RegionServerServices rsServices, HRegionInfo regionInfo, boolean abort, CloseRegionCoordination closeRegionCoordination, CloseRegionCoordination.CloseRegionDetails crd, ServerName destination)
public CloseRegionHandler(Server server, RegionServerServices rsServices, HRegionInfo regionInfo, boolean abort, CloseRegionCoordination closeRegionCoordination, CloseRegionCoordination.CloseRegionDetails crd, EventType eventType)
protected CloseRegionHandler(Server server, RegionServerServices rsServices, HRegionInfo regionInfo, boolean abort, CloseRegionCoordination closeRegionCoordination, CloseRegionCoordination.CloseRegionDetails crd, EventType eventType, ServerName destination)
public HRegionInfo getRegionInfo()
public void process()
EventHandler
process
in class EventHandler
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.