Skip to content

SubscriptionJob2Props

Properties for defining a SubscriptionJob2.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-dts-subscriptionjob2

Initializer

import com.aliyun.ros.cdk.dts.SubscriptionJob2Props;
SubscriptionJob2Props.builder()
    .dbList(IResolvable)
    .dbList(java.util.Map<java.lang.String, java.lang.Object>)
    .dtsJobName(java.lang.String)
    .dtsJobName(IResolvable)
    .sourceEndpoint(IResolvable)
    .sourceEndpoint(SourceEndpointProperty)
    .subscriptionInstance(IResolvable)
    .subscriptionInstance(SubscriptionInstanceProperty)
//  .checkpoint(java.lang.String)
//  .checkpoint(IResolvable)
//  .dedicatedClusterId(java.lang.String)
//  .dedicatedClusterId(IResolvable)
//  .delayNotice(java.lang.Boolean)
//  .delayNotice(IResolvable)
//  .delayPhone(java.lang.String)
//  .delayPhone(IResolvable)
//  .delayRuleTime(java.lang.Number)
//  .delayRuleTime(IResolvable)
//  .destPrimaryVswId(java.lang.String)
//  .destPrimaryVswId(IResolvable)
//  .destSecondaryVswId(java.lang.String)
//  .destSecondaryVswId(IResolvable)
//  .dtsBisLabel(java.lang.String)
//  .dtsBisLabel(IResolvable)
//  .dtsInstanceId(java.lang.String)
//  .dtsInstanceId(IResolvable)
//  .dtsJobId(java.lang.String)
//  .dtsJobId(IResolvable)
//  .errorNotice(java.lang.Boolean)
//  .errorNotice(IResolvable)
//  .errorPhone(java.lang.String)
//  .errorPhone(IResolvable)
//  .maxDu(java.lang.Number)
//  .maxDu(IResolvable)
//  .minDu(java.lang.Number)
//  .minDu(IResolvable)
//  .reserve(IResolvable)
//  .reserve(java.util.Map<java.lang.String, java.lang.Object>)
//  .resourceGroupId(java.lang.String)
//  .resourceGroupId(IResolvable)
//  .srcPrimaryVswId(java.lang.String)
//  .srcPrimaryVswId(IResolvable)
//  .srcSecondaryVswId(java.lang.String)
//  .srcSecondaryVswId(IResolvable)
//  .status(java.lang.String)
//  .status(IResolvable)
//  .subscriptionDataType(IResolvable)
//  .subscriptionDataType(SubscriptionDataTypeProperty)
    .build();

Properties

Name Type Description
dbList com.aliyun.ros.cdk.core.IResolvable OR java.util.Map Property dbList: The objects for which you want to track data changes.
dtsJobName java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property dtsJobName: The name of the DTS instance.
sourceEndpoint com.aliyun.ros.cdk.core.IResolvable OR SourceEndpointProperty Property sourceEndpoint: Source instance configuration.
subscriptionInstance com.aliyun.ros.cdk.core.IResolvable OR SubscriptionInstanceProperty Property subscriptionInstance: Subscription instance configuration.
checkpoint java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property checkpoint: The start offset of incremental data migration or synchronization.
dedicatedClusterId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property dedicatedClusterId: The ID of the DTS dedicated cluster on which the task runs.
delayNotice java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable Property delayNotice: Specifies whether to monitor the task latency.
delayPhone java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property delayPhone: The mobile numbers that receive latency-related alerts.
delayRuleTime java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property delayRuleTime: The threshold for latency alerts.
destPrimaryVswId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property destPrimaryVswId: The primary VSW ID at the destination end of the VPC NAT.
destSecondaryVswId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property destSecondaryVswId: The secondary VSW ID at the destination end of the VPC NAT.
dtsBisLabel java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property dtsBisLabel: The environment tag of the DTS instance.
dtsInstanceId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property dtsInstanceId: The ID of the DTS instance.
dtsJobId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property dtsJobId: The ID of the DTS task.
errorNotice java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable Property errorNotice: Specifies whether to monitor the task status.
errorPhone java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property errorPhone: The mobile numbers that receive status-related alerts.
maxDu java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property maxDu: The DU upper limit of the Serverless instance, with values being: 2, 4, 8, 16.
minDu java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property minDu: The lower limit of DU for Serverless instances, with values being: 1, 2, 4, 8, 16.
reserve com.aliyun.ros.cdk.core.IResolvable OR java.util.Map Property reserve: The reserved parameter of DTS.
resourceGroupId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property resourceGroupId: The ID of the resource group.
srcPrimaryVswId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property srcPrimaryVswId: The primary VSW ID at the source end of the VPC NAT.
srcSecondaryVswId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property srcSecondaryVswId: The secondary VSW ID at the source end of the VPC NAT.
status java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property status: The status of the resource.
subscriptionDataType com.aliyun.ros.cdk.core.IResolvable OR SubscriptionDataTypeProperty Property subscriptionDataType: Subscription data type.

dbListRequired

public java.lang.Object getDbList();
  • Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.Map

Property dbList: The objects for which you want to track data changes.


dtsJobNameRequired

public java.lang.Object getDtsJobName();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property dtsJobName: The name of the DTS instance.


sourceEndpointRequired

public java.lang.Object getSourceEndpoint();

Property sourceEndpoint: Source instance configuration.


subscriptionInstanceRequired

public java.lang.Object getSubscriptionInstance();

Property subscriptionInstance: Subscription instance configuration.


checkpointOptional

public java.lang.Object getCheckpoint();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property checkpoint: The start offset of incremental data migration or synchronization.

This value is a UNIX timestamp representing the number of seconds that have elapsed since January 1, 1970, 00:00:00 UTC.


dedicatedClusterIdOptional

public java.lang.Object getDedicatedClusterId();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property dedicatedClusterId: The ID of the DTS dedicated cluster on which the task runs.


delayNoticeOptional

public java.lang.Object getDelayNotice();
  • Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable

Property delayNotice: Specifies whether to monitor the task latency.

Valid values: true and false


delayPhoneOptional

public java.lang.Object getDelayPhone();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property delayPhone: The mobile numbers that receive latency-related alerts.

Separate multiple mobile numbers with commas (,). You can specify up to 10 mobile numbers. Note: You can also configure alert rules for DTS tasks in the CloudMonitor console.This parameter is available only for users of the China site (aliyun.com). Only mobile numbers in the Chinese mainland are supported. Users of the international site (alibabacloud.com) cannot receive alerts by using mobile numbers.


delayRuleTimeOptional

public java.lang.Object getDelayRuleTime();
  • Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable

Property delayRuleTime: The threshold for latency alerts.

Unit: seconds. The value must be an integer. You can set the threshold based on your business requirements. To prevent unstable latency caused by network and database overloads, we recommend that you set the threshold to more than 10 seconds.

If DelayNotice is set to true, this parameter is required.


destPrimaryVswIdOptional

public java.lang.Object getDestPrimaryVswId();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property destPrimaryVswId: The primary VSW ID at the destination end of the VPC NAT.


destSecondaryVswIdOptional

public java.lang.Object getDestSecondaryVswId();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property destSecondaryVswId: The secondary VSW ID at the destination end of the VPC NAT.


dtsBisLabelOptional

public java.lang.Object getDtsBisLabel();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property dtsBisLabel: The environment tag of the DTS instance.

Valid values: normal and online.


dtsInstanceIdOptional

public java.lang.Object getDtsInstanceId();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property dtsInstanceId: The ID of the DTS instance.


dtsJobIdOptional

public java.lang.Object getDtsJobId();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property dtsJobId: The ID of the DTS task.


errorNoticeOptional

public java.lang.Object getErrorNotice();
  • Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable

Property errorNotice: Specifies whether to monitor the task status.

Valid values: true and false.


errorPhoneOptional

public java.lang.Object getErrorPhone();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property errorPhone: The mobile numbers that receive status-related alerts.

Separate multiple mobile numbers with commas (,). You can specify up to 10 mobile numbers. Note: You can also configure alert rules for DTS tasks in the CloudMonitor console.This parameter is available only for users of the China site (aliyun.com). Only mobile numbers in the Chinese mainland are supported. Users of the international site (alibabacloud.com) cannot receive alerts by using mobile numbers.


maxDuOptional

public java.lang.Object getMaxDu();
  • Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable

Property maxDu: The DU upper limit of the Serverless instance, with values being: 2, 4, 8, 16.

Currently, this feature is not supported, please do not pass in parameters.


minDuOptional

public java.lang.Object getMinDu();
  • Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable

Property minDu: The lower limit of DU for Serverless instances, with values being: 1, 2, 4, 8, 16.

This feature is currently not supported, please do not pass in parameters.


reserveOptional

public java.lang.Object getReserve();
  • Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.Map

Property reserve: The reserved parameter of DTS.

The value is a JSON string. You can specify this parameter to add more configurations of the source or destination instance to the DTS task. For example, you can specify the data storage format of the destination Kafka database and the CEN instance ID.


resourceGroupIdOptional

public java.lang.Object getResourceGroupId();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property resourceGroupId: The ID of the resource group.


srcPrimaryVswIdOptional

public java.lang.Object getSrcPrimaryVswId();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property srcPrimaryVswId: The primary VSW ID at the source end of the VPC NAT.


srcSecondaryVswIdOptional

public java.lang.Object getSrcSecondaryVswId();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property srcSecondaryVswId: The secondary VSW ID at the source end of the VPC NAT.


statusOptional

public java.lang.Object getStatus();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property status: The status of the resource.

Valid values:

  • Subscribing: Start the task.
  • Suspending: Suspend the task.
  • Stopping: Stop the task.

subscriptionDataTypeOptional

public java.lang.Object getSubscriptionDataType();

Property subscriptionDataType: Subscription data type.