@InterfaceAudience.LimitedPrivate(value="Coprocessors") @InterfaceStability.Evolving public class RegionPlan extends Object implements Comparable<RegionPlan>
Modifier and Type | Class and Description |
---|---|
static class |
RegionPlan.RegionPlanComparator |
Constructor and Description |
---|
RegionPlan(RegionInfo 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.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(RegionPlan other)
Compare the region info.
|
boolean |
equals(Object obj) |
ServerName |
getDestination()
Get the destination server for the plan for this region.
|
RegionInfo |
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.
|
int |
hashCode() |
void |
setDestination(ServerName dest)
Set the destination server for the plan for this region.
|
String |
toString() |
public RegionPlan(RegionInfo hri, ServerName source, ServerName dest)
setDestination(ServerName)
.hri
- region to be movedsource
- regionserver region should be moved fromdest
- regionserver region should be moved topublic void setDestination(ServerName dest)
public ServerName getSource()
public ServerName getDestination()
public String getRegionName()
public RegionInfo getRegionInfo()
public int compareTo(RegionPlan other)
compareTo
in interface Comparable<RegionPlan>
other
- region plan you are comparing againstCopyright © 2007–2019 Cloudera. All rights reserved.