@InterfaceAudience.Private public class OpenedRegionHandler extends EventHandler implements TotesHRegionInfo
| Modifier and Type | Class and Description |
|---|---|
private static class |
OpenedRegionHandler.OpenedPriority |
EventHandler.EventHandlerListener| Modifier and Type | Field and Description |
|---|---|
private AssignmentManager |
assignmentManager |
private OpenRegionCoordination |
coordination |
private static org.apache.commons.logging.Log |
LOG |
private OpenRegionCoordination.OpenRegionDetails |
ord |
private OpenedRegionHandler.OpenedPriority |
priority |
private HRegionInfo |
regionInfo |
eventType, seqids, server, waitingTimeForEvents| Constructor and Description |
|---|
OpenedRegionHandler(Server server,
AssignmentManager assignmentManager,
HRegionInfo regionInfo,
OpenRegionCoordination coordination,
OpenRegionCoordination.OpenRegionDetails ord) |
| 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, setListenerprivate static final org.apache.commons.logging.Log LOG
private final AssignmentManager assignmentManager
private final HRegionInfo regionInfo
private final OpenedRegionHandler.OpenedPriority priority
private OpenRegionCoordination coordination
private OpenRegionCoordination.OpenRegionDetails ord
public OpenedRegionHandler(Server server, AssignmentManager assignmentManager, HRegionInfo regionInfo, OpenRegionCoordination coordination, OpenRegionCoordination.OpenRegionDetails ord)
public int getPriority()
EventHandlerLowest 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 EventHandlerpublic HRegionInfo getHRegionInfo()
getHRegionInfo in interface TotesHRegionInfopublic String toString()
toString in class EventHandlerpublic void process()
EventHandlerprocess in class EventHandlerCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.