Updated on 2023-11-30 GMT+08:00

Configuring Parameters

  1. 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)

    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.

  2. Write code. For details about APIs, see the dms.sdk.api.chm file described in 1.