ReplicationLink Interface

Implements

HasId HasName HasResourceGroup HasInner<com.microsoft.azure.management.sql.implementation.ReplicationLinkInner> Refreshable<ReplicationLink>

public interface ReplicationLink
extends Refreshable<ReplicationLink>, HasInner<com.microsoft.azure.management.sql.implementation.ReplicationLinkInner>, HasResourceGroup, HasName, HasId

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

Method Summary

Modifier and Type Method and Description
abstract java.lang.String databaseName()
abstract void delete()

Deletes the replication link.

abstract void failover()

Fails over the Azure SQL Database Replication Link.

abstract rx.Completable failoverAsync()

Fails over the Azure SQL Database Replication Link.

abstract com.microsoft.rest.ServiceFuture<java.lang.Void> failoverAsync(ServiceCallback<Void> callback)

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 rx.Completable forceFailoverAllowDataLossAsync()

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

abstract com.microsoft.rest.ServiceFuture<java.lang.Void> forceFailoverAllowDataLossAsync(ServiceCallback<Void> callback)

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

abstract boolean isTerminationAllowed()
abstract java.lang.String location()
abstract java.lang.String partnerDatabase()
abstract java.lang.String partnerLocation()
abstract ReplicationRole partnerRole()
abstract java.lang.String partnerServer()
abstract int percentComplete()
abstract java.lang.String replicationMode()
abstract ReplicationState replicationState()
abstract ReplicationRole role()
abstract java.lang.String sqlServerName()
abstract org.joda.time.DateTime startTime()

Method Details

public abstract String databaseName()

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 Completable failoverAsync()

Fails over the Azure SQL Database Replication Link.

Returns:

a representation of the deferred computation of this call

public abstract 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 abstract void forceFailoverAllowDataLoss()

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

public abstract 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 abstract 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 abstract boolean isTerminationAllowed()

Returns:

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

public abstract String location()

Returns:

the location of the server that contains this replication link

public abstract String partnerDatabase()

Returns:

the name of the partner Azure SQL Database

public abstract String partnerLocation()

Returns:

the Azure Region of the partner Azure SQL Database

public abstract ReplicationRole partnerRole()

Returns:

the role of the partner SQL Database in the replication link

public abstract String partnerServer()

Returns:

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

public abstract int percentComplete()

Returns:

the percentage of the seeding completed for the replication link

public abstract String replicationMode()

Returns:

the replication mode of this replication link

public abstract ReplicationState replicationState()

Returns:

the replication state for the replication link

public abstract ReplicationRole role()

Returns:

the role of the SQL Database in the replication link

public abstract String sqlServerName()

Returns:

name of the SQL Server to which this replication belongs

public abstract DateTime startTime()

Returns:

start time for the replication link (ISO8601 format)

Applies to