Package org.apache.geode.cache.control
Interface RestoreRedundancyOperation
public interface RestoreRedundancyOperation
Class for defining and starting a
CompletableFuture that returns
RestoreRedundancyResults.-
Method Summary
Modifier and TypeMethodDescriptionexcludeRegions(Set<String> regions) Exclude specific regions from the restore redundancy operation.includeRegions(Set<String> regions) Specify which regions to include in the restore redundancy operation.org.apache.geode.management.runtime.RestoreRedundancyResultsDetermines the current redundancy status for the partitioned regions associated with this operation.shouldReassignPrimaries(boolean shouldReassign) Set whether the restore redundancy operation should reassign primary buckets.CompletableFuture<org.apache.geode.management.runtime.RestoreRedundancyResults>start()Asynchronously starts a new restore redundancy operation.
-
Method Details
-
includeRegions
Specify which regions to include in the restore redundancy operation. The default,null, means all regions should be included. Includes take precedence over excludes.- Parameters:
regions- A set containing the names of regions to include.- Returns:
- this
RestoreRedundancyOperation
-
excludeRegions
Exclude specific regions from the restore redundancy operation. The default,null, means don't exclude any regions.- Parameters:
regions- A set containing the names of regions to exclude.- Returns:
- this
RestoreRedundancyOperation
-
shouldReassignPrimaries
Set whether the restore redundancy operation should reassign primary buckets. The default,true, will result in primary buckets being reassigned for better load balancing across members.- Parameters:
shouldReassign- A boolean indicating whether or not the operation created by this class should reassign primary bucket hosts.- Returns:
- this
RestoreRedundancyOperation
-
start
CompletableFuture<org.apache.geode.management.runtime.RestoreRedundancyResults> start()Asynchronously starts a new restore redundancy operation. Only the cache resources used by this member will have redundancy restored. The operation may queue as needed for resources in contention by other active restore redundancy operations.- Returns:
- a
CompletableFuturewhich will return the results of the restore redundancy operation started by this method.
-
redundancyStatus
org.apache.geode.management.runtime.RestoreRedundancyResults redundancyStatus()Determines the current redundancy status for the partitioned regions associated with this operation.- Returns:
- The
RestoreRedundancyResultscontaining the redundancy information for each included region.
-