Configuring Parameters
- Configure parameters described in Table 1.
Table 1 Parameters in the dms.client.properties file Parameter
Description
dms.server.ip
DMS server address (IP address or domain name)
- CN North-Beijing1: dms-tcp.cn-north-1.myhuaweicloud.com
- CN East-Shanghai2: dms-tcp.cn-east-2.myhuaweicloud.com
- CN South-Guangzhou: dms-tcp.cn-south-1.myhuaweicloud.com
dms.server.port
DMS TCP port
Set this parameter to 60010.
dms.client.blocked.worker.num
Number of threads that executes blocking callbacks
By default, this parameter is set to –1.
If this parameter is set to a value smaller than 0, then:
Number of threads = 2 x Number of CPU cores
dms.client.conn.timeout
Connection timeout time
Unit: ms
Default value: 6000
dms.client.reconn.attempt.times
Number of reconnection attempts
Unit: ms
Default value: 3
dms.client.reconn.attempt.interval
Interval at which reconnection attempts are initiated
Unit: ms
Default value: 3000
dms.client.request.timeout
Request timeout time
Unit: ms
Default value: 60000
dms.client.start.timeout
Client startup timeout time
Duration: ms
Default value: 60000
dms.client.project.id
Project ID
For details on how to obtain a project ID, see Obtaining a Project ID.
dms.client.access.key
Access key ID
For details on how to obtain an access key ID, see Obtaining an AK/SK.
dms.client.secret.key
Secret access key
For details on how to obtain a secret access key, see Obtaining an AK/SK.
- Write code. For details about APIs, see the dms.sdk.api.chm file described in 1.
Last Article: Creating a Project
Next Article: Running the Sample Project
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.