@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(org.apache.hadoop.hbase.client.RegionInfo hri,
org.apache.hadoop.hbase.ServerName source,
org.apache.hadoop.hbase.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) |
org.apache.hadoop.hbase.ServerName |
getDestination()
Get the destination server for the plan for this region.
|
org.apache.hadoop.hbase.client.RegionInfo |
getRegionInfo() |
String |
getRegionName()
Get the encoded region name for the region this plan is for.
|
org.apache.hadoop.hbase.ServerName |
getSource()
Get the source server for the plan for this region.
|
int |
hashCode() |
void |
setDestination(org.apache.hadoop.hbase.ServerName dest)
Set the destination server for the plan for this region.
|
String |
toString() |
public RegionPlan(org.apache.hadoop.hbase.client.RegionInfo hri,
org.apache.hadoop.hbase.ServerName source,
org.apache.hadoop.hbase.ServerName dest)
setDestination(ServerName).hri - region to be movedsource - regionserver region should be moved fromdest - regionserver region should be moved topublic void setDestination(org.apache.hadoop.hbase.ServerName dest)
public org.apache.hadoop.hbase.ServerName getSource()
public org.apache.hadoop.hbase.ServerName getDestination()
public String getRegionName()
public org.apache.hadoop.hbase.client.RegionInfo getRegionInfo()
public int compareTo(RegionPlan other)
compareTo in interface Comparable<RegionPlan>other - region plan you are comparing againstCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.