@Experimental public class RestoreRedundancyRequest extends Object implements ClusterManagementOperation<RestoreRedundancyResults>
Modifier and Type | Field and Description |
---|---|
static 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 |
---|---|
String |
getEndpoint()
must match the REST controller's RequestMapping
|
List<String> |
getExcludeRegions()
Returns the list of regions NOT to be rebalanced (iff
getIncludeRegions() is empty) |
List<String> |
getIncludeRegions()
Returns the list of regions to be rebalanced (or an empty list for all-except-excluded)
|
String |
getOperator() |
boolean |
getReassignPrimaries() |
void |
setExcludeRegions(List<String> excludeRegions)
excludes specific regions from the rebalance, if
getIncludeRegions() is empty,
otherwise has no effect
default: no regions are excluded |
void |
setIncludeRegions(List<String> includeRegions)
requests rebalance of the specified region(s) only.
|
void |
setOperator(String operator) |
void |
setReassignPrimaries(boolean reassignPrimaries) |
String |
toString() |
public static final String RESTORE_REDUNDANCY_ENDPOINT
getEndpoint()
public RestoreRedundancyRequest()
public RestoreRedundancyRequest(RestoreRedundancyRequest other)
public List<String> getIncludeRegions()
public void setIncludeRegions(List<String> includeRegions)
public List<String> getExcludeRegions()
getIncludeRegions()
is empty)public void setExcludeRegions(List<String> excludeRegions)
getIncludeRegions()
is empty,
otherwise has no effect
default: no regions are excludedpublic void setReassignPrimaries(boolean reassignPrimaries)
public boolean getReassignPrimaries()
public String getEndpoint()
ClusterManagementOperation
getEndpoint
in interface ClusterManagementOperation<RestoreRedundancyResults>
public String getOperator()
getOperator
in interface ClusterManagementOperation<RestoreRedundancyResults>
public void setOperator(String operator)