@InterfaceAudience.Private public class OpenRegionHandler extends EventHandler
This is executed after receiving an OPEN RPC from the master or client.
EventHandler.EventHandlerListener| Modifier and Type | Field and Description |
|---|---|
protected RegionServerServices |
rsServices |
eventType, seqids, server, waitingTimeForEvents| Modifier | Constructor and Description |
|---|---|
|
OpenRegionHandler(Server server,
RegionServerServices rsServices,
HRegionInfo regionInfo,
HTableDescriptor htd) |
protected |
OpenRegionHandler(Server server,
RegionServerServices rsServices,
HRegionInfo regionInfo,
HTableDescriptor htd,
EventType eventType,
int versionOfOfflineNode) |
|
OpenRegionHandler(Server server,
RegionServerServices rsServices,
HRegionInfo regionInfo,
HTableDescriptor htd,
int versionOfOfflineNode) |
| Modifier and Type | Method and Description |
|---|---|
HRegionInfo |
getRegionInfo() |
void |
process()
This method is the main processing loop to be implemented by the various
subclasses.
|
static boolean |
tryTransitionFromOfflineToFailedOpen(RegionServerServices rsServices,
HRegionInfo hri,
int versionOfOfflineNode)
Try to transition to open.
|
compareTo, getEventType, getInformativeName, getListener, getPriority, getSeqid, handleException, prepare, run, setListener, toStringprotected final RegionServerServices rsServices
public OpenRegionHandler(Server server, RegionServerServices rsServices, HRegionInfo regionInfo, HTableDescriptor htd)
public OpenRegionHandler(Server server, RegionServerServices rsServices, HRegionInfo regionInfo, HTableDescriptor htd, int versionOfOfflineNode)
protected OpenRegionHandler(Server server, RegionServerServices rsServices, HRegionInfo regionInfo, HTableDescriptor htd, EventType eventType, int versionOfOfflineNode)
public HRegionInfo getRegionInfo()
public void process()
throws IOException
EventHandlerprocess in class EventHandlerIOExceptionpublic static boolean tryTransitionFromOfflineToFailedOpen(RegionServerServices rsServices, HRegionInfo hri, int versionOfOfflineNode)
rsServices - hri - Region we're working on.versionOfOfflineNode - version to checked.Copyright © 2014 The Apache Software Foundation. All rights reserved.