ReplicationLink Interface

public interface ReplicationLink extends Refreshable,HasInner,HasResourceGroup,HasName,HasId,Refreshable,HasInner,HasResourceGroup,HasName,HasId

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

Method Summary

Modifier and Type Method and Description
String databaseName()
void delete()

Deletes the replication link.

void failover()

Fails over the Azure SQL Database Replication Link.

Completable failoverAsync()

Fails over the Azure SQL Database Replication Link.

ServiceFuture<Void> failoverAsync(ServiceCallback<Void> callback)

Fails over the Azure SQL Database Replication Link.

void forceFailoverAllowDataLoss()

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

Completable forceFailoverAllowDataLossAsync()

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

ServiceFuture<Void> forceFailoverAllowDataLossAsync(ServiceCallback<Void> callback)

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

boolean isTerminationAllowed()
String location()
String partnerDatabase()
String partnerLocation()
ReplicationRole partnerRole()
String partnerServer()
int percentComplete()
String replicationMode()
ReplicationState replicationState()
ReplicationRole role()
String sqlServerName()
DateTime startTime()

Inherited Members

Method Details

public String databaseName()

Returns:

name of the SQL Database to which this replication belongs

public void delete()

Deletes the replication link.

public void failover()

Fails over the Azure SQL Database Replication Link.

public Completable failoverAsync()

Fails over the Azure SQL Database Replication Link.

Returns:

a representation of the deferred computation of this call

public ServiceFuture failoverAsync(ServiceCallback callback)

Fails over the Azure SQL Database Replication Link.

Parameters:

callback - the callback to call on success or failure

Returns:

a handle to cancel the request

public void forceFailoverAllowDataLoss()

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

public Completable 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 ServiceFuture forceFailoverAllowDataLossAsync(ServiceCallback callback)

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

Parameters:

callback - the callback to call on success or failure

Returns:

a handle to cancel the request

public boolean isTerminationAllowed()

Returns:

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

public String location()

Returns:

the location of the server that contains this replication link

public String partnerDatabase()

Returns:

the name of the partner Azure SQL Database

public String partnerLocation()

Returns:

the Azure Region of the partner Azure SQL Database

public ReplicationRole partnerRole()

Returns:

the role of the partner SQL Database in the replication link

public String partnerServer()

Returns:

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

public int percentComplete()

Returns:

the percentage of the seeding completed for the replication link

public String replicationMode()

Returns:

the replication mode of this replication link

public ReplicationState replicationState()

Returns:

the replication state for the replication link

public ReplicationRole role()

Returns:

the role of the SQL Database in the replication link

public String sqlServerName()

Returns:

name of the SQL Server to which this replication belongs

public DateTime startTime()

Returns:

start time for the replication link (ISO8601 format)

Applies to