VMware GemFire Java API Reference
Class RestoreRedundancyRequest
- java.lang.Object
-
- org.apache.geode.management.operation.RestoreRedundancyRequest
-
- All Implemented Interfaces:
java.io.Serializable,ClusterManagementOperation<RestoreRedundancyResults>,JsonSerializable
@Experimental public class RestoreRedundancyRequest extends java.lang.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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringRESTORE_REDUNDANCY_ENDPOINTseegetEndpoint()
-
Constructor Summary
Constructors Constructor Description RestoreRedundancyRequest()By default, requests all partitioned regions to have redundancy restoredRestoreRedundancyRequest(RestoreRedundancyRequest other)Copy constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetEndpoint()must match the REST controller's RequestMappingjava.util.List<java.lang.String>getExcludeRegions()Returns the list of regions NOT to have redundancy restored (iffgetIncludeRegions()is empty)java.util.List<java.lang.String>getIncludeRegions()Returns the list of regions to have redundancy restored (or an empty list for all-except-excluded)java.lang.StringgetOperator()booleangetReassignPrimaries()voidsetExcludeRegions(java.util.List<java.lang.String> excludeRegions)Excludes specific regions from the restore redundancy, ifgetIncludeRegions()is empty, otherwise has no effect default: no regions are excludedvoidsetIncludeRegions(java.util.List<java.lang.String> includeRegions)Requests restore redundancy of the specified region(s) only.voidsetOperator(java.lang.String operator)voidsetReassignPrimaries(boolean reassignPrimaries)java.lang.StringtoString()
-
-
-
Field Detail
-
RESTORE_REDUNDANCY_ENDPOINT
public static final java.lang.String RESTORE_REDUNDANCY_ENDPOINT
seegetEndpoint()- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RestoreRedundancyRequest
public RestoreRedundancyRequest()
By default, requests all partitioned regions to have redundancy restored
-
RestoreRedundancyRequest
public RestoreRedundancyRequest(RestoreRedundancyRequest other)
Copy constructor- Parameters:
other- theRestoreRedundancyRequestto be copied
-
-
Method Detail
-
getIncludeRegions
public java.util.List<java.lang.String> 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
public void setIncludeRegions(java.util.List<java.lang.String> includeRegions)
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
public java.util.List<java.lang.String> 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
public void setExcludeRegions(java.util.List<java.lang.String> excludeRegions)
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
public java.lang.String 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
public java.lang.String getOperator()
- Specified by:
getOperatorin interfaceClusterManagementOperation<RestoreRedundancyResults>
-
setOperator
public void setOperator(java.lang.String operator)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-