@Deprecated @InterfaceAudience.Private public class OpenRegionHandler extends EventHandler
This is executed after receiving an OPEN RPC from the master or client.
AssignRegionHandler
Modifier and Type | Class and Description |
---|---|
(package private) static class |
OpenRegionHandler.PostOpenDeployTasksThread
Deprecated.
Thread to run region post open tasks.
|
Modifier and Type | Field and Description |
---|---|
private TableDescriptor |
htd
Deprecated.
|
private static org.slf4j.Logger |
LOG
Deprecated.
|
private long |
masterSystemTime
Deprecated.
|
private RegionInfo |
regionInfo
Deprecated.
|
protected RegionServerServices |
rsServices
Deprecated.
|
eventType, seqids, server, waitingTimeForEvents
Modifier | Constructor and Description |
---|---|
|
OpenRegionHandler(Server server,
RegionServerServices rsServices,
RegionInfo regionInfo,
TableDescriptor htd,
long masterSystemTime)
Deprecated.
|
protected |
OpenRegionHandler(Server server,
RegionServerServices rsServices,
RegionInfo regionInfo,
TableDescriptor htd,
long masterSystemTime,
EventType eventType)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
private void |
cleanupFailedOpen(HRegion region)
Deprecated.
|
private void |
doCleanUpOnFailedOpen(HRegion region)
Deprecated.
|
RegionInfo |
getRegionInfo()
Deprecated.
|
private boolean |
isRegionStillOpening()
Deprecated.
|
private static boolean |
isRegionStillOpening(RegionInfo regionInfo,
RegionServerServices rsServices)
Deprecated.
|
private HRegion |
openRegion()
Deprecated.
|
void |
process()
Deprecated.
This method is the main processing loop to be implemented by the various
subclasses.
|
private boolean |
updateMeta(HRegion r,
long masterSystemTime)
Deprecated.
Update ZK or META.
|
compareTo, getEventType, getInformativeName, getPriority, getSeqid, handleException, prepare, run, toString
private static final org.slf4j.Logger LOG
protected final RegionServerServices rsServices
private final RegionInfo regionInfo
private final TableDescriptor htd
private final long masterSystemTime
public OpenRegionHandler(Server server, RegionServerServices rsServices, RegionInfo regionInfo, TableDescriptor htd, long masterSystemTime)
protected OpenRegionHandler(Server server, RegionServerServices rsServices, RegionInfo regionInfo, TableDescriptor htd, long masterSystemTime, EventType eventType)
public RegionInfo getRegionInfo()
public void process() throws IOException
EventHandler
process
in class EventHandler
IOException
private void doCleanUpOnFailedOpen(HRegion region) throws IOException
IOException
private boolean updateMeta(HRegion r, long masterSystemTime)
private HRegion openRegion()
private void cleanupFailedOpen(HRegion region) throws IOException
IOException
private static boolean isRegionStillOpening(RegionInfo regionInfo, RegionServerServices rsServices)
private boolean isRegionStillOpening()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.