@Experimental public class RestoreRedundancyRequest extends java.lang.Object implements ClusterManagementOperation<RestoreRedundancyResults>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
RESTORE_REDUNDANCY_ENDPOINT
see
getEndpoint() |
| Constructor and Description |
|---|
RestoreRedundancyRequest()
by default, requests all partitioned regions to be rebalanced
|
RestoreRedundancyRequest(RestoreRedundancyRequest 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)
|
java.lang.String |
getOperator() |
boolean |
getReassignPrimaries() |
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 |
setOperator(java.lang.String operator) |
void |
setReassignPrimaries(boolean reassignPrimaries) |
java.lang.String |
toString() |
public static final java.lang.String RESTORE_REDUNDANCY_ENDPOINT
getEndpoint()public RestoreRedundancyRequest()
public RestoreRedundancyRequest(RestoreRedundancyRequest other)
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 void setReassignPrimaries(boolean reassignPrimaries)
public boolean getReassignPrimaries()
public java.lang.String getEndpoint()
ClusterManagementOperationgetEndpoint in interface ClusterManagementOperation<RestoreRedundancyResults>public java.lang.String getOperator()
getOperator in interface ClusterManagementOperation<RestoreRedundancyResults>public void setOperator(java.lang.String operator)
public java.lang.String toString()
toString in class java.lang.Object