@Experimental public class RebalanceOperation extends java.lang.Object implements ClusterManagementOperation<RebalanceResult>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
REBALANCE_ENDPOINT
see
getEndpoint() |
| Constructor and Description |
|---|
RebalanceOperation()
by default, requests all partitioned regions to be rebalanced
|
RebalanceOperation(RebalanceOperation other)
copy constructor
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getEndpoint()
must match the REST controller's RequestMapping
|
java.util.List<java.lang.String> |
getExcludeRegions()
Returns the list of regions NOT to be rebalanced (iff
getIncludeRegions() is empty) |
java.util.List<java.lang.String> |
getIncludeRegions()
Returns the list of regions to be rebalanced (or an empty list for all-except-excluded)
|
boolean |
isSimulate()
Returns true if a "dry run" only is requested
|
void |
setExcludeRegions(java.util.List<java.lang.String> excludeRegions)
excludes specific regions from the rebalance, if
getIncludeRegions() is empty,
otherwise has no effect
default: no regions are excluded |
void |
setIncludeRegions(java.util.List<java.lang.String> includeRegions)
requests rebalance of the specified region(s) only.
|
void |
setSimulate(boolean simulate)
true requests a "dry run" (no actual buckets will be moved)
default is false
|
public static final java.lang.String REBALANCE_ENDPOINT
getEndpoint()public RebalanceOperation()
public RebalanceOperation(RebalanceOperation other)
public boolean isSimulate()
public void setSimulate(boolean simulate)
public java.util.List<java.lang.String> getIncludeRegions()
public void setIncludeRegions(java.util.List<java.lang.String> includeRegions)
public java.util.List<java.lang.String> getExcludeRegions()
getIncludeRegions() is empty)public void setExcludeRegions(java.util.List<java.lang.String> excludeRegions)
getIncludeRegions() is empty,
otherwise has no effect
default: no regions are excludedpublic java.lang.String getEndpoint()
ClusterManagementOperationgetEndpoint in interface ClusterManagementOperation<RebalanceResult>