@InterfaceAudience.Private public class ClosedRegionHandler extends EventHandler implements TotesHRegionInfo
If table is being disabled, deletes ZK unassigned node and removes from regions in transition.
Otherwise, assigns the region to another server.
Modifier and Type | Class and Description |
---|---|
private static class |
ClosedRegionHandler.ClosedPriority |
EventHandler.EventHandlerListener
Modifier and Type | Field and Description |
---|---|
private AssignmentManager |
assignmentManager |
private static org.apache.commons.logging.Log |
LOG |
private ClosedRegionHandler.ClosedPriority |
priority |
private HRegionInfo |
regionInfo |
eventType, seqids, server, waitingTimeForEvents
Constructor and Description |
---|
ClosedRegionHandler(Server server,
AssignmentManager assignmentManager,
HRegionInfo regionInfo) |
Modifier and Type | Method and Description |
---|---|
HRegionInfo |
getHRegionInfo() |
int |
getPriority()
Get the priority level for this handler instance.
|
void |
process()
This method is the main processing loop to be implemented by the various
subclasses.
|
String |
toString() |
compareTo, getEventType, getInformativeName, getListener, getSeqid, handleException, prepare, run, setListener
private static final org.apache.commons.logging.Log LOG
private final AssignmentManager assignmentManager
private final HRegionInfo regionInfo
private final ClosedRegionHandler.ClosedPriority priority
public ClosedRegionHandler(Server server, AssignmentManager assignmentManager, HRegionInfo regionInfo)
public int getPriority()
EventHandler
Lowest priority is Integer.MAX_VALUE. Highest priority is 0.
Subclasses should override this method to allow prioritizing handlers.
Handlers with the same priority are handled in FIFO order.
getPriority
in class EventHandler
public HRegionInfo getHRegionInfo()
getHRegionInfo
in interface TotesHRegionInfo
public String toString()
toString
in class EventHandler
public void process()
EventHandler
process
in class EventHandler
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.