DMLTSConnectionParameters
Defines a struct to configure the parameters to connect to license tracking server.
Attributes
Attribute | Type |
---|---|
mainServerURL |
String |
standbyServerURL |
String |
handshakeCode |
String |
sessionPassword |
String |
deploymentType |
int |
chargeWay |
int |
uuidGenerationMethod |
int |
maxBufferDays |
int |
limitedLicenseModules |
int[] |
maxConcurrentInstanceCount |
int |
mainServerURL
The URL of the license tracking server.
String com.dynamsoft.dbr.DMLTSConnectionParameters.mainServerURL
-
Value range
Any string value -
Default value
null -
Remarks
If you choose “Dynamsoft-hosting”, then no need to change the value of MainServerURL and StandbyServerURL. When both are set to null (default value), it will connect to Dynamsoft’s license tracking servers for online verification.
standbyServerURL
The URL of the standby license tracking server.
String com.dynamsoft.dbr.DMLTSConnectionParameters.standbyServerURL
-
Value range
Any string value -
Default value
null -
Remarks
If you choose “Dynamsoft-hosting”, then no need to change the value of MainServerURL and StandbyServerURL. When both are set to null (default value), it will connect to Dynamsoft’s license tracking servers for online verification.
handshakeCode
The handshake code.
String com.dynamsoft.dbr.DMLTSConnectionParameters.handshakeCode
-
Value range
Any string value -
Default value
null
sessionPassword
The session password of the handshake code set in license tracking server.
String com.dynamsoft.dbr.DMLTSConnectionParameters.sessionPassword
-
Value range
Any string value -
Default value
null
deploymentType
Sets the deployment type.
int com.dynamsoft.dbr.DMLTSConnectionParameters.deploymentType
-
Value range
Any one of theEnumDMDeploymentType
Enumeration items. -
Default value
DM_DT_DESKTOP -
See also
EnumDMDeploymentType
chargeWay
Sets the charge way.
int com.dynamsoft.dbr.DMLTSConnectionParameters.chargeWay
-
Value range
Any one of theEnumDMChargeWay
Enumeration items. -
Default value
DM_CW_AUTO -
See also
EnumDMChargeWay
uuidGenerationMethod
Sets the method to generate UUID.
int com.dynamsoft.dbr.DMLTSConnectionParameters.uuidGenerationMethod
-
Value range
Any one of theEnumDMUUIDGenerationMethod
Enumeration items. -
Default value
DM_UUIDGM_RANDOM -
See also
EnumDMUUIDGenerationMethod
maxBufferDays
Sets the max days to buffer the license info.
int com.dynamsoft.dbr.DMLTSConnectionParameters.maxBufferDays
-
Value range
[7,0x7fffffff] -
Default value
7
limitedLicenseModules
Sets the license modules to use.
int[] com.dynamsoft.dbr.DMLTSConnectionParameters.limitedLicenseModules
-
Value range
Each array item can be any one of theEnumDMLicenseModule
Enumeration items. -
Default value
null -
See also
EnumDMLicenseModule
maxConcurrentInstanceCount
Sets the max concurrent instance count.
int com.dynamsoft.dbr.DMLTSConnectionParameters.maxConcurrentInstanceCount
-
Value range
[1,0x7fffffff] - Default value
1 - Remarks
It works only when chargeWay is setting to DM_CW_CONCURRENT_INSTANCE_COUNT It is the total number of instances used by multiple processes. For example, if there are two .EXE are running on the server and each .EXE may have 10 instances at most, then you should set maxConcurrentInstanceCount to 20.