Class RestoreRedundancyRequest
java.lang.Object
org.apache.geode.management.operation.RestoreRedundancyRequest
- All Implemented Interfaces:
Serializable,ClusterManagementOperation<RestoreRedundancyResults>,JsonSerializable
@Experimental
public class RestoreRedundancyRequest
extends Object
implements ClusterManagementOperation<RestoreRedundancyResults>
Defines a distributed system request to optimize bucket allocation across members.
RestoreRedundancyRequest - is part of an experimental API for performing operations on GEODE
using a REST interface. This API is experimental and may change.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBy default, requests all partitioned regions to have redundancy restoredCopy constructor -
Method Summary
Modifier and TypeMethodDescriptionmust match the REST controller's RequestMappingReturns the list of regions NOT to have redundancy restored (iffgetIncludeRegions()is empty)Returns the list of regions to have redundancy restored (or an empty list for all-except-excluded)booleanvoidsetExcludeRegions(List<String> excludeRegions) Excludes specific regions from the restore redundancy, ifgetIncludeRegions()is empty, otherwise has no effect default: no regions are excludedvoidsetIncludeRegions(List<String> includeRegions) Requests restore redundancy of the specified region(s) only.voidsetOperator(String operator) voidsetReassignPrimaries(boolean reassignPrimaries) toString()
-
Field Details
-
RESTORE_REDUNDANCY_ENDPOINT
seegetEndpoint()- See Also:
-
-
Constructor Details
-
RestoreRedundancyRequest
public RestoreRedundancyRequest()By default, requests all partitioned regions to have redundancy restored -
RestoreRedundancyRequest
Copy constructor- Parameters:
other- theRestoreRedundancyRequestto be copied
-
-
Method Details
-
getIncludeRegions
Returns the list of regions to have redundancy restored (or an empty list for all-except-excluded)- Returns:
- a list of regions to have redundancy restored (or an empty list for all-except-excluded)
-
setIncludeRegions
Requests restore redundancy of the specified region(s) only. When at least one region is specified, this takes precedence over any excluded regions.- Parameters:
includeRegions- a list of region names to include in the restore redundancy operation
-
getExcludeRegions
Returns the list of regions NOT to have redundancy restored (iffgetIncludeRegions()is empty)- Returns:
- the list of regions NOT to have redundancy restored (iff
getIncludeRegions()is empty
-
setExcludeRegions
Excludes specific regions from the restore redundancy, ifgetIncludeRegions()is empty, otherwise has no effect default: no regions are excluded- Parameters:
excludeRegions- a list of region names to exclude from the restore redundancy operation
-
setReassignPrimaries
public void setReassignPrimaries(boolean reassignPrimaries) -
getReassignPrimaries
public boolean getReassignPrimaries() -
getEndpoint
Description copied from interface:ClusterManagementOperationmust match the REST controller's RequestMapping- Specified by:
getEndpointin interfaceClusterManagementOperation<RestoreRedundancyResults>- Returns:
- the portion after /management/v1, e.g. /operations/name
-
getOperator
- Specified by:
getOperatorin interfaceClusterManagementOperation<RestoreRedundancyResults>
-
setOperator
-
toString
-