Class GeoReplicationStats
java.lang.Object
com.azure.resourcemanager.storage.models.GeoReplicationStats
- All Implemented Interfaces:
com.azure.json.JsonSerializable<GeoReplicationStats>
public final class GeoReplicationStats
extends Object
implements com.azure.json.JsonSerializable<GeoReplicationStats>
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 -
Method Summary
Modifier and TypeMethodDescriptionGet the canFailover property: A boolean flag which indicates whether or not account failover is supported for the account.Get the canPlannedFailover property: A boolean flag which indicates whether or not planned account failover is supported for the account.static GeoReplicationStatsfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of GeoReplicationStats from the JsonReader.Get the lastSyncTime property: All primary writes preceding this UTC date/time value are guaranteed to be available for read operations.Get the postFailoverRedundancy property: The redundancy type of the account after an account failover is performed.Get the postPlannedFailoverRedundancy property: The redundancy type of the account after a planned account failover is performed.status()Get the status property: The status of the secondary location.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
GeoReplicationStats
public GeoReplicationStats()Creates an instance of GeoReplicationStats class.
-
-
Method Details
-
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
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
Get the canFailover property: A boolean flag which indicates whether or not account failover is supported for the account.- Returns:
- the canFailover value.
-
canPlannedFailover
Get the canPlannedFailover property: A boolean flag which indicates whether or not planned account failover is supported for the account.- Returns:
- the canPlannedFailover value.
-
postFailoverRedundancy
Get the postFailoverRedundancy property: The redundancy type of the account after an account failover is performed.- Returns:
- the postFailoverRedundancy value.
-
postPlannedFailoverRedundancy
Get the postPlannedFailoverRedundancy property: The redundancy type of the account after a planned account failover is performed.- Returns:
- the postPlannedFailoverRedundancy value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<GeoReplicationStats>- Throws:
IOException
-
fromJson
Reads an instance of GeoReplicationStats from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of GeoReplicationStats if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the GeoReplicationStats.
-