Interface ReplicationLink
- All Superinterfaces:
HasId
,HasInner<com.microsoft.azure.management.sql.implementation.ReplicationLinkInner>
,HasName
,HasResourceGroup
,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 TypeMethodDescriptionvoid
delete()
Deletes the replication link.void
failover()
Fails over the Azure SQL Database Replication Link.rx.Completable
Fails over the Azure SQL Database Replication Link.com.microsoft.rest.ServiceFuture<Void>
failoverAsync
(com.microsoft.rest.ServiceCallback<Void> callback) Fails over the Azure SQL Database Replication Link.void
Forces fail over the Azure SQL Database Replication Link which may result in data loss.rx.Completable
Forces fail over the Azure SQL Database Replication Link which may result in data loss.com.microsoft.rest.ServiceFuture<Void>
forceFailoverAllowDataLossAsync
(com.microsoft.rest.ServiceCallback<Void> callback) Forces fail over the Azure SQL Database Replication Link which may result in data loss.boolean
location()
int
role()
org.joda.time.DateTime
Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.arm.models.HasId
id
Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.model.HasInner
inner
Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.arm.models.HasName
name
Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.arm.models.HasResourceGroup
resourceGroupName
Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.model.Refreshable
refresh, refreshAsync
-
Method Details
-
sqlServerName
String sqlServerName()- Returns:
- name of the SQL Server to which this replication belongs
-
databaseName
String databaseName()- Returns:
- name of the SQL Database to which this replication belongs
-
partnerServer
String partnerServer()- Returns:
- the name of the Azure SQL Server hosting the partner Azure SQL Database.
-
partnerDatabase
String partnerDatabase()- Returns:
- the name of the partner Azure SQL Database
-
partnerLocation
String partnerLocation()- Returns:
- the Azure Region of the partner Azure SQL Database
-
role
ReplicationRole role()- Returns:
- the role of the SQL Database in the replication link
-
partnerRole
ReplicationRole partnerRole()- Returns:
- the role of the partner SQL Database in the replication link
-
startTime
org.joda.time.DateTime startTime()- Returns:
- start time for the replication link (ISO8601 format)
-
percentComplete
int percentComplete()- Returns:
- the percentage of the seeding completed for the replication link
-
replicationState
ReplicationState replicationState()- Returns:
- the replication state for the replication link
-
location
- Returns:
- the location of the server that contains this replication link
-
isTerminationAllowed
@Beta(V1_7_0) boolean isTerminationAllowed()- Returns:
- the legacy value indicating whether termination is allowed (currently always returns true)
-
replicationMode
- Returns:
- the replication mode of this replication link
-
delete
void delete()Deletes the replication link. -
failover
void failover()Fails over the Azure SQL Database Replication Link. -
failoverAsync
rx.Completable failoverAsync()Fails over the Azure SQL Database Replication Link.- Returns:
- a representation of the deferred computation of this call
-
failoverAsync
com.microsoft.rest.ServiceFuture<Void> failoverAsync(com.microsoft.rest.ServiceCallback<Void> 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
-
forceFailoverAllowDataLoss
void forceFailoverAllowDataLoss()Forces fail over the Azure SQL Database Replication Link which may result in data loss. -
forceFailoverAllowDataLossAsync
rx.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
-
forceFailoverAllowDataLossAsync
com.microsoft.rest.ServiceFuture<Void> forceFailoverAllowDataLossAsync(com.microsoft.rest.ServiceCallback<Void> 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
-