org.apache.hadoop.hbase.master
Class ProcessRegionOpen
java.lang.Object
org.apache.hadoop.hbase.master.ProcessRegionOpen
- All Implemented Interfaces:
- Comparable<Delayed>, Delayed
public class ProcessRegionOpen
- extends Object
ProcessRegionOpen is instantiated when a region server reports that it is
serving a region. This applies to all meta and user regions except the
root region which is handled specially.
serverInfo
protected final HServerInfo serverInfo
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
ProcessRegionOpen
public ProcessRegionOpen(HMaster master,
HServerInfo info,
HRegionInfo regionInfo)
- Parameters:
master
- info
- regionInfo
-
toString
public String toString()
- Overrides:
toString
in class Object
process
protected boolean process()
throws IOException
- Throws:
IOException
getPriority
protected int getPriority()
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)
Copyright © 2010 Apache Software Foundation. All Rights Reserved.