|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.master.LoadBalancer.RegionPlan
public static class LoadBalancer.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 | |
---|---|
LoadBalancer.RegionPlan(HRegionInfo hri,
HServerInfo source,
HServerInfo 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(LoadBalancer.RegionPlan o)
Compare the region info. |
HServerInfo |
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. |
HServerInfo |
getSource()
Get the source server for the plan for this region. |
void |
setDestination(HServerInfo 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 LoadBalancer.RegionPlan(HRegionInfo hri, HServerInfo source, HServerInfo dest)
setDestination(HServerInfo)
.
hri
- region to be movedsource
- regionserver region should be moved fromdest
- regionserver region should be moved toMethod Detail |
---|
public void setDestination(HServerInfo dest)
public HServerInfo getSource()
public HServerInfo getDestination()
public String getRegionName()
public HRegionInfo getRegionInfo()
public int compareTo(LoadBalancer.RegionPlan o)
compareTo
in interface Comparable<LoadBalancer.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 |