@InterfaceAudience.Private public class CloseRegionHandler extends EventHandler
EventHandler.EventHandlerListener
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
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-2016 The Apache Software Foundation. All Rights Reserved.