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
Replication |
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
Replication |
replicationState()
Gets the replication state for the replication link. |
abstract
Replication |
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
Offset |
startTime()
Gets start time for the replication link. |
Method Details
databaseName
public abstract String databaseName()
Gets name of the SQL Database to which this replication belongs.
Returns:
delete
public abstract void delete()
Deletes the replication link.
failover
public abstract void failover()
Fails over the Azure SQL Database Replication Link.
failoverAsync
public abstract Mono
Fails over the Azure SQL Database Replication Link.
Returns:
forceFailoverAllowDataLoss
public abstract void forceFailoverAllowDataLoss()
Forces fail over the Azure SQL Database Replication Link which may result in data loss.
forceFailoverAllowDataLossAsync
public abstract Mono
Forces fail over the Azure SQL Database Replication Link which may result in data loss.
Returns:
isTerminationAllowed
public abstract boolean isTerminationAllowed()
Checks whether termination is allowed.
Returns:
partnerDatabase
public abstract String partnerDatabase()
Gets the name of the partner Azure SQL Database.
Returns:
partnerLocation
public abstract String partnerLocation()
Gets the Azure Region of the partner Azure SQL Database.
Returns:
partnerRole
public abstract ReplicationRole partnerRole()
Gets the role of the partner SQL Database in the replication link.
Returns:
partnerServer
public abstract String partnerServer()
Gets the name of the Azure SQL Server hosting the partner Azure SQL Database.
Returns:
percentComplete
public abstract int percentComplete()
Gets the percentage of the seeding completed for the replication link.
Returns:
replicationMode
public abstract String replicationMode()
Gets the replication mode of this replication link.
Returns:
replicationState
public abstract ReplicationState replicationState()
Gets the replication state for the replication link.
Returns:
role
public abstract ReplicationRole role()
Gets the role of the SQL Database in the replication link.
Returns:
sqlServerName
public abstract String sqlServerName()
Gets name of the SQL Server to which this replication belongs.
Returns:
startTime
public abstract OffsetDateTime startTime()
Gets start time for the replication link.
Returns: