共用方式為


ReplicationLink Interface

Implements

public interface ReplicationLink
extends Refreshable<ReplicationLink>, HasInnerModel<ReplicationLinkInner>, HasResourceGroup, HasName, HasId

An immutable client-side representation of an Azure SQL Replication link.

Method Summary

Modifier and Type Method and Description
abstract String databaseName()

Gets name of the SQL Database to which this replication belongs.

abstract void delete()

Deletes the replication link.

abstract void failover()

Fails over the Azure SQL Database Replication Link.

abstract Mono<Void> failoverAsync()

Fails over the Azure SQL Database Replication Link.

abstract void forceFailoverAllowDataLoss()

Forces fail over the Azure SQL Database Replication Link which may result in data loss.

abstract Mono<Void> forceFailoverAllowDataLossAsync()

Forces fail over the Azure SQL Database Replication Link which may result in data loss.

abstract boolean isTerminationAllowed()

Checks whether termination is allowed.

abstract String partnerDatabase()

Gets the name of the partner Azure SQL Database.

abstract String partnerLocation()

Gets the Azure Region of the partner Azure SQL Database.

abstract ReplicationRole partnerRole()

Gets the role of the partner SQL Database in the replication link.

abstract String partnerServer()

Gets the name of the Azure SQL Server hosting the partner Azure SQL Database.

abstract int percentComplete()

Gets the percentage of the seeding completed for the replication link.

abstract String replicationMode()

Gets the replication mode of this replication link.

abstract ReplicationState replicationState()

Gets the replication state for the replication link.

abstract ReplicationRole role()

Gets the role of the SQL Database in the replication link.

abstract String sqlServerName()

Gets name of the SQL Server to which this replication belongs.

abstract OffsetDateTime startTime()

Gets start time for the replication link.

Method Details

public abstract String databaseName()

Gets name of the SQL Database to which this replication belongs.

Returns:

name of the SQL Database to which this replication belongs

public abstract void delete()

Deletes the replication link.

public abstract void failover()

Fails over the Azure SQL Database Replication Link.

public abstract Mono failoverAsync()

Fails over the Azure SQL Database Replication Link.

Returns:

a representation of the deferred computation of this call

public abstract void forceFailoverAllowDataLoss()

Forces fail over the Azure SQL Database Replication Link which may result in data loss.

public abstract Mono forceFailoverAllowDataLossAsync()

Forces fail over the Azure SQL Database Replication Link which may result in data loss.

Returns:

a representation of the deferred computation of this call

public abstract boolean isTerminationAllowed()

Checks whether termination is allowed.

Returns:

the legacy value indicating whether termination is allowed (currently always returns true)

public abstract String partnerDatabase()

Gets the name of the partner Azure SQL Database.

Returns:

the name of the partner Azure SQL Database

public abstract String partnerLocation()

Gets the Azure Region of the partner Azure SQL Database.

Returns:

the Azure Region of the partner Azure SQL Database

public abstract ReplicationRole partnerRole()

Gets the role of the partner SQL Database in the replication link.

Returns:

the role of the partner SQL Database in the replication link

public abstract String partnerServer()

Gets the name of the Azure SQL Server hosting the partner Azure SQL Database.

Returns:

the name of the Azure SQL Server hosting the partner Azure SQL Database.

public abstract int percentComplete()

Gets the percentage of the seeding completed for the replication link.

Returns:

the percentage of the seeding completed for the replication link

public abstract String replicationMode()

Gets the replication mode of this replication link.

Returns:

the replication mode of this replication link

public abstract ReplicationState replicationState()

Gets the replication state for the replication link.

Returns:

the replication state for the replication link

public abstract ReplicationRole role()

Gets the role of the SQL Database in the replication link.

Returns:

the role of the SQL Database in the replication link

public abstract String sqlServerName()

Gets name of the SQL Server to which this replication belongs.

Returns:

name of the SQL Server to which this replication belongs

public abstract OffsetDateTime startTime()

Gets start time for the replication link.

Returns:

start time for the replication link (ISO8601 format)

Applies to