Gemfire JavaDocs
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.String
RESTORE_REDUNDANCY_ENDPOINT
seegetEndpoint()
-
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.String
getEndpoint()
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.String
getOperator()
boolean
getReassignPrimaries()
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 excludedvoid
setIncludeRegions(java.util.List<java.lang.String> includeRegions)
Requests restore redundancy of the specified region(s) only.void
setOperator(java.lang.String operator)
void
setReassignPrimaries(boolean reassignPrimaries)
java.lang.String
toString()
-
-
-
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
- theRestoreRedundancyRequest
to 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:ClusterManagementOperation
must match the REST controller's RequestMapping- Specified by:
getEndpoint
in interfaceClusterManagementOperation<RestoreRedundancyResults>
- Returns:
- the portion after /management/v1, e.g. /operations/name
-
getOperator
public java.lang.String getOperator()
- Specified by:
getOperator
in interfaceClusterManagementOperation<RestoreRedundancyResults>
-
setOperator
public void setOperator(java.lang.String operator)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-