org.apache.hadoop.hbase.master.handler
Class MasterCloseRegionHandler
java.lang.Object
org.apache.hadoop.hbase.executor.HBaseEventHandler
org.apache.hadoop.hbase.master.handler.MasterCloseRegionHandler
- All Implemented Interfaces:
- Runnable
public class MasterCloseRegionHandler
- extends HBaseEventHandler
This is the event handler for all events relating to closing regions on the
HMaster. The following event types map to this handler:
- RS_REGION_CLOSING
- RS_REGION_CLOSED
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
serializedData
protected byte[] serializedData
MasterCloseRegionHandler
public MasterCloseRegionHandler(HBaseEventHandler.HBaseEventType eventType,
ServerManager serverManager,
String serverName,
String regionName,
byte[] serializedData)
process
public void process()
- Handle the various events relating to closing regions. We can get the
following events here:
- RS_REGION_CLOSING : No-op
- RS_REGION_CLOSED : The region is closed. If we are not in a shutdown
state, find the RS to open this region. This could
be a part of a region move, or just that the RS has
died. Should result in a M_REQUEST_OPENREGION event
getting created.
- Specified by:
process
in class HBaseEventHandler
getRegionName
public String getRegionName()
Copyright © 2010 Apache Software Foundation. All Rights Reserved.