org.apache.hadoop.hbase.master
Class ProcessRegionClose
java.lang.Object
org.apache.hadoop.hbase.master.ProcessRegionClose
- All Implemented Interfaces:
- Comparable<Delayed>, Delayed
public class ProcessRegionClose
- extends Object
ProcessRegionClose is the way we do post-processing on a closed region. We
only spawn one of these asynchronous tasks when the region needs to be
either offlined or deleted. We used to create one of these tasks whenever
a region was closed, but since closing a region that isn't being offlined
or deleted doesn't actually require post processing, it's no longer
necessary.
offlineRegion
protected final boolean offlineRegion
reassignRegion
protected final boolean reassignRegion
isMetaTable
protected final boolean isMetaTable
regionInfo
protected final HRegionInfo regionInfo
metaRegionName
protected volatile byte[] metaRegionName
LOG
protected static final org.apache.commons.logging.Log LOG
master
protected final HMaster master
ProcessRegionClose
public ProcessRegionClose(HMaster master,
HRegionInfo regionInfo,
boolean offlineRegion,
boolean reassignRegion)
- Parameters:
master
- regionInfo
- Region to operate onofflineRegion
- if true, set the region to offline in metareassignRegion
- if true, region is to be reassigned
toString
public String toString()
- Overrides:
toString
in class Object
process
protected boolean process()
throws IOException
- Throws:
IOException
metaRegionAvailable
protected boolean metaRegionAvailable()
getMetaRegion
protected MetaRegion getMetaRegion()
getRegionInfo
public HRegionInfo getRegionInfo()
getDelay
public long getDelay(TimeUnit unit)
- Specified by:
getDelay
in interface Delayed
compareTo
public int compareTo(Delayed o)
- Specified by:
compareTo
in interface Comparable<Delayed>
requeue
protected void requeue()
rootAvailable
protected boolean rootAvailable()
metaTableAvailable
protected boolean metaTableAvailable()
compareTo
public int compareTo(org.apache.hadoop.hbase.master.RegionServerOperation other)
getPriority
protected int getPriority()
Copyright © 2010 Apache Software Foundation. All Rights Reserved.