GeoReplicationStats Class
- java.
lang. Object - com.
azure. resourcemanager. storage. models. GeoReplicationStats
- com.
Implements
public final class GeoReplicationStats
implements 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
Constructor | Description |
---|---|
GeoReplicationStats() |
Creates an instance of Geo |
Method Summary
Modifier and Type | Method and Description |
---|---|
Boolean |
canFailover()
Get the can |
Boolean |
canPlannedFailover()
Get the can |
static
Geo |
fromJson(JsonReader jsonReader)
Reads an instance of Geo |
Offset |
lastSyncTime()
Get the last |
Post |
postFailoverRedundancy()
Get the post |
Post |
postPlannedFailoverRedundancy()
Get the post |
Geo |
status()
Get the status property: The status of the secondary location. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Methods inherited from java.lang.Object
Constructor Details
GeoReplicationStats
public GeoReplicationStats()
Creates an instance of GeoReplicationStats class.
Method Details
canFailover
public Boolean canFailover()
Get the canFailover property: A boolean flag which indicates whether or not account failover is supported for the account.
Returns:
canPlannedFailover
public Boolean canPlannedFailover()
Get the canPlannedFailover property: A boolean flag which indicates whether or not planned account failover is supported for the account.
Returns:
fromJson
public static GeoReplicationStats fromJson(JsonReader jsonReader)
Reads an instance of GeoReplicationStats from the JsonReader.
Parameters:
Returns:
Throws:
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:
postFailoverRedundancy
public PostFailoverRedundancy postFailoverRedundancy()
Get the postFailoverRedundancy property: The redundancy type of the account after an account failover is performed.
Returns:
postPlannedFailoverRedundancy
public PostPlannedFailoverRedundancy postPlannedFailoverRedundancy()
Get the postPlannedFailoverRedundancy property: The redundancy type of the account after a planned account failover is performed.
Returns:
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:
toJson
validate
public void validate()
Validates the instance.
Applies to
Azure SDK for Java