Class GeoReplicationStats
- java.lang.Object
-
- com.azure.resourcemanager.storage.models.GeoReplicationStats
-
public final class GeoReplicationStats extends Object
Statistics related to replication for storage account's Blob, Table, Queue and File services. It is only available when geo-redundant replication is enabled for the storage account.
-
-
Constructor Summary
Constructors Constructor Description GeoReplicationStats()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleancanFailover()Get the canFailover property: A boolean flag which indicates whether or not account failover is supported for the account.OffsetDateTimelastSyncTime()Get the lastSyncTime property: All primary writes preceding this UTC date/time value are guaranteed to be available for read operations.GeoReplicationStatusstatus()Get the status property: The status of the secondary location.voidvalidate()Validates the instance.
-
-
-
Method Detail
-
status
public GeoReplicationStatus status()
Get the status property: The status of the secondary location. Possible values are: - Live: Indicates that the secondary location is active and operational. - Bootstrap: Indicates initial synchronization from the primary location to the secondary location is in progress.This typically occurs when replication is first enabled. - Unavailable: Indicates that the secondary location is temporarily unavailable.- Returns:
- the status value.
-
lastSyncTime
public OffsetDateTime lastSyncTime()
Get the lastSyncTime property: All primary writes preceding this UTC date/time value are guaranteed to be available for read operations. Primary writes following this point in time may or may not be available for reads. Element may be default value if value of LastSyncTime is not available, this can happen if secondary is offline or we are in bootstrap.- Returns:
- the lastSyncTime value.
-
canFailover
public Boolean canFailover()
Get the canFailover property: A boolean flag which indicates whether or not account failover is supported for the account.- Returns:
- the canFailover value.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-