Share via


DistributedAvailabilityGroupDatabase Class

  • java.lang.Object
    • com.azure.resourcemanager.sql.models.DistributedAvailabilityGroupDatabase

Implements

public final class DistributedAvailabilityGroupDatabase
implements JsonSerializable<DistributedAvailabilityGroupDatabase>

Database specific information.

Constructor Summary

Constructor Description
DistributedAvailabilityGroupDatabase()

Creates an instance of DistributedAvailabilityGroupDatabase class.

Method Summary

Modifier and Type Method and Description
ReplicaConnectedState connectedState()

Get the connectedState property: Link connected state.

String databaseName()

Get the databaseName property: The name of the database in link.

static DistributedAvailabilityGroupDatabase fromJson(JsonReader jsonReader)

Reads an instance of DistributedAvailabilityGroupDatabase from the JsonReader.

Integer instanceRedoReplicationLagSeconds()

Get the instanceRedoReplicationLagSeconds property: Redo lag when Managed Instance link side is primary.

UUID instanceReplicaId()

Get the instanceReplicaId property: Managed instance replica id.

Integer instanceSendReplicationLagSeconds()

Get the instanceSendReplicationLagSeconds property: Replication lag when Managed Instance link side is primary.

String lastBackupLsn()

Get the lastBackupLsn property: Last backup LSN.

OffsetDateTime lastBackupTime()

Get the lastBackupTime property: Last backup LSN time.

String lastCommitLsn()

Get the lastCommitLsn property: Last commit LSN.

OffsetDateTime lastCommitTime()

Get the lastCommitTime property: Last commit LSN time.

String lastHardenedLsn()

Get the lastHardenedLsn property: Last hardened LSN.

OffsetDateTime lastHardenedTime()

Get the lastHardenedTime property: Last hardened LSN time.

String lastReceivedLsn()

Get the lastReceivedLsn property: Last received LSN.

OffsetDateTime lastReceivedTime()

Get the lastReceivedTime property: Last received LSN time.

String lastSentLsn()

Get the lastSentLsn property: Last sent LSN.

OffsetDateTime lastSentTime()

Get the lastSentTime property: Last sent LSN time.

String mostRecentLinkError()

Get the mostRecentLinkError property: The most recent link connection error description.

CertificateInfo partnerAuthCertValidity()

Get the partnerAuthCertValidity property: SQL server certificate validity.

UUID partnerReplicaId()

Get the partnerReplicaId property: SQL server replica id.

String replicaState()

Get the replicaState property: Current link state.

String seedingProgress()

Get the seedingProgress property: Seeding progress.

ReplicaSynchronizationHealth synchronizationHealth()

Get the synchronizationHealth property: Link health state.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

DistributedAvailabilityGroupDatabase withDatabaseName(String databaseName)

Set the databaseName property: The name of the database in link.

Methods inherited from java.lang.Object

Constructor Details

DistributedAvailabilityGroupDatabase

public DistributedAvailabilityGroupDatabase()

Creates an instance of DistributedAvailabilityGroupDatabase class.

Method Details

connectedState

public ReplicaConnectedState connectedState()

Get the connectedState property: Link connected state.

Returns:

the connectedState value.

databaseName

public String databaseName()

Get the databaseName property: The name of the database in link.

Returns:

the databaseName value.

fromJson

public static DistributedAvailabilityGroupDatabase fromJson(JsonReader jsonReader)

Reads an instance of DistributedAvailabilityGroupDatabase from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of DistributedAvailabilityGroupDatabase 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 DistributedAvailabilityGroupDatabase.

instanceRedoReplicationLagSeconds

public Integer instanceRedoReplicationLagSeconds()

Get the instanceRedoReplicationLagSeconds property: Redo lag when Managed Instance link side is primary.

Returns:

the instanceRedoReplicationLagSeconds value.

instanceReplicaId

public UUID instanceReplicaId()

Get the instanceReplicaId property: Managed instance replica id.

Returns:

the instanceReplicaId value.

instanceSendReplicationLagSeconds

public Integer instanceSendReplicationLagSeconds()

Get the instanceSendReplicationLagSeconds property: Replication lag when Managed Instance link side is primary.

Returns:

the instanceSendReplicationLagSeconds value.

lastBackupLsn

public String lastBackupLsn()

Get the lastBackupLsn property: Last backup LSN.

Returns:

the lastBackupLsn value.

lastBackupTime

public OffsetDateTime lastBackupTime()

Get the lastBackupTime property: Last backup LSN time.

Returns:

the lastBackupTime value.

lastCommitLsn

public String lastCommitLsn()

Get the lastCommitLsn property: Last commit LSN.

Returns:

the lastCommitLsn value.

lastCommitTime

public OffsetDateTime lastCommitTime()

Get the lastCommitTime property: Last commit LSN time.

Returns:

the lastCommitTime value.

lastHardenedLsn

public String lastHardenedLsn()

Get the lastHardenedLsn property: Last hardened LSN.

Returns:

the lastHardenedLsn value.

lastHardenedTime

public OffsetDateTime lastHardenedTime()

Get the lastHardenedTime property: Last hardened LSN time.

Returns:

the lastHardenedTime value.

lastReceivedLsn

public String lastReceivedLsn()

Get the lastReceivedLsn property: Last received LSN.

Returns:

the lastReceivedLsn value.

lastReceivedTime

public OffsetDateTime lastReceivedTime()

Get the lastReceivedTime property: Last received LSN time.

Returns:

the lastReceivedTime value.

lastSentLsn

public String lastSentLsn()

Get the lastSentLsn property: Last sent LSN.

Returns:

the lastSentLsn value.

lastSentTime

public OffsetDateTime lastSentTime()

Get the lastSentTime property: Last sent LSN time.

Returns:

the lastSentTime value.

mostRecentLinkError

public String mostRecentLinkError()

Get the mostRecentLinkError property: The most recent link connection error description.

Returns:

the mostRecentLinkError value.

partnerAuthCertValidity

public CertificateInfo partnerAuthCertValidity()

Get the partnerAuthCertValidity property: SQL server certificate validity.

Returns:

the partnerAuthCertValidity value.

partnerReplicaId

public UUID partnerReplicaId()

Get the partnerReplicaId property: SQL server replica id.

Returns:

the partnerReplicaId value.

replicaState

public String replicaState()

Get the replicaState property: Current link state.

Returns:

the replicaState value.

seedingProgress

public String seedingProgress()

Get the seedingProgress property: Seeding progress.

Returns:

the seedingProgress value.

synchronizationHealth

public ReplicaSynchronizationHealth synchronizationHealth()

Get the synchronizationHealth property: Link health state.

Returns:

the synchronizationHealth value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDatabaseName

public DistributedAvailabilityGroupDatabase withDatabaseName(String databaseName)

Set the databaseName property: The name of the database in link.

Parameters:

databaseName - the databaseName value to set.

Returns:

the DistributedAvailabilityGroupDatabase object itself.

Applies to