|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.master.RegionPlan
public class RegionPlan
Stores the plan for the move of an individual region. Contains info for the region being moved, info for the server the region should be moved from, and info for the server the region should be moved to. The comparable implementation of this class compares only the region information and not the source/dest server info.
Constructor Summary | |
---|---|
RegionPlan(HRegionInfo hri,
ServerName source,
ServerName dest)
Instantiate a plan for a region move, moving the specified region from the specified source server to the specified destination server. |
Method Summary | |
---|---|
int |
compareTo(RegionPlan o)
Compare the region info. |
ServerName |
getDestination()
Get the destination server for the plan for this region. |
HRegionInfo |
getRegionInfo()
|
String |
getRegionName()
Get the encoded region name for the region this plan is for. |
ServerName |
getSource()
Get the source server for the plan for this region. |
void |
setDestination(ServerName dest)
Set the destination server for the plan for this region. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RegionPlan(HRegionInfo hri, ServerName source, ServerName dest)
setDestination(ServerName)
.
hri
- region to be movedsource
- regionserver region should be moved fromdest
- regionserver region should be moved toMethod Detail |
---|
public void setDestination(ServerName dest)
public ServerName getSource()
public ServerName getDestination()
public String getRegionName()
public HRegionInfo getRegionInfo()
public int compareTo(RegionPlan o)
compareTo
in interface Comparable<RegionPlan>
o
- region plan you are comparing againstpublic String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |