@Experimental public interface RestoreRedundancyResults extends OperationResult
| Modifier and Type | Interface and Description |
|---|---|
static class |
RestoreRedundancyResults.Status
RestoreRedundancyResults.Status.SUCCESS is defined as every included region having fully satisfied redundancy. |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getIncludedRegionsWithNoMembers()
If user specified "includedRegion" list, but some of the regions in the list are not found in
any members, this list would include those regions.
|
String |
getRegionOperationMessage()
Returns a message describing the results of this restore redundancy operation.
|
RestoreRedundancyResults.Status |
getRegionOperationStatus()
Returns the
RestoreRedundancyResults.Status of this restore redundancy operation. |
RegionRedundancyStatus |
getRegionResult(String regionName)
Returns the
RegionRedundancyStatus for a specific region or null if that region
is not present in this RestoreRedundancyResults. |
Map<String,RegionRedundancyStatus> |
getRegionResults()
Returns all the
RegionRedundancyStatuses contained in this
RestoreRedundancyResults. |
Map<String,RegionRedundancyStatus> |
getSatisfiedRedundancyRegionResults()
Returns all the
RegionRedundancyStatuses for regions with
redundancy satisfied. |
int |
getTotalPrimaryTransfersCompleted()
Returns the total number of primaries that were transferred as part of the restore redundancy
operations.
|
long |
getTotalPrimaryTransferTime()
Returns the total time spent transferring primaries as part of the restore redundancy
operations.
|
Map<String,RegionRedundancyStatus> |
getUnderRedundancyRegionResults()
Returns all the
RegionRedundancyStatuses for regions with with
at least one redundant copy, but fewer than the configured number of redundant copies. |
Map<String,RegionRedundancyStatus> |
getZeroRedundancyRegionResults()
Returns all the
RegionRedundancyStatuses for regions with
configured redundancy but zero actual redundant copies. |
getStatusMessage, getSuccessRestoreRedundancyResults.Status getRegionOperationStatus()
RestoreRedundancyResults.Status of this restore redundancy operation. Possible statuses are
RestoreRedundancyResults.Status.SUCCESS, RestoreRedundancyResults.Status.FAILURERestoreRedundancyResults.Status of this restore redundancy operation.String getRegionOperationMessage()
String describing the results of this restore redundancy operation.RegionRedundancyStatus getRegionResult(String regionName)
RegionRedundancyStatus for a specific region or null if that region
is not present in this RestoreRedundancyResults.regionName - The region to which the RegionRedundancyStatus to be returned
belongs.RegionRedundancyStatus for the specified region or null if that region is not
present in this RestoreRedundancyResults.Map<String,RegionRedundancyStatus> getZeroRedundancyRegionResults()
RegionRedundancyStatuses for regions with
configured redundancy but zero actual redundant copies.Map of String region name to RegionRedundancyStatus for every
region contained in this RestoreRedundancyResults with configured redundancy
but zero actual redundant copies.Map<String,RegionRedundancyStatus> getUnderRedundancyRegionResults()
RegionRedundancyStatuses for regions with with
at least one redundant copy, but fewer than the configured number of redundant copies.Map of String region name to RegionRedundancyStatus for every
region contained in this RestoreRedundancyResults with at least one redundant
copy, but fewer than the configured number of redundant copies.Map<String,RegionRedundancyStatus> getSatisfiedRedundancyRegionResults()
RegionRedundancyStatuses for regions with
redundancy satisfied.Map of String region name to RegionRedundancyStatus for every
region contained in this RestoreRedundancyResults with redundancy satisfied.Map<String,RegionRedundancyStatus> getRegionResults()
RegionRedundancyStatuses contained in this
RestoreRedundancyResults. This method may return the actual backing map depending on
implementation.Map of String region name to RegionRedundancyStatus for every
region contained in this RestoreRedundancyResults.int getTotalPrimaryTransfersCompleted()
long getTotalPrimaryTransferTime()
long representing the total time in milliseconds spent transferring primaries