public class MigrateOption extends AbstractModel
| Constructor and Description | 
|---|
MigrateOption()  | 
| Modifier and Type | Method and Description | 
|---|---|
ConsistencyParams | 
getConsistencyParams()
Get Only used for "spot data consistency check". 
 | 
Long | 
getConsistencyType()
Get Parameter of spot data consistency check. 
 | 
String | 
getExpectTime()
Get Expected execution time in the format of yyyy-mm-dd hh:mm:ss. 
 | 
String | 
getExternParams()
Get Additional parameters for different databases, which are described in JSON format. 
 | 
Long | 
getIsOverrideRoot()
Get Whether to overwrite the target database with the root account of the source database. 
 | 
Long | 
getMigrateObject()
Get Migration subject. 
 | 
Long | 
getMigrateType()
Get Data migration type. 
 | 
Long | 
getRunMode()
Get Task operation mode. 
 | 
void | 
setConsistencyParams(ConsistencyParams ConsistencyParams)
Set Only used for "spot data consistency check". 
 | 
void | 
setConsistencyType(Long ConsistencyType)
Set Parameter of spot data consistency check. 
 | 
void | 
setExpectTime(String ExpectTime)
Set Expected execution time in the format of yyyy-mm-dd hh:mm:ss. 
 | 
void | 
setExternParams(String ExternParams)
Set Additional parameters for different databases, which are described in JSON format. 
 | 
void | 
setIsOverrideRoot(Long IsOverrideRoot)
Set Whether to overwrite the target database with the root account of the source database. 
 | 
void | 
setMigrateObject(Long MigrateObject)
Set Migration subject. 
 | 
void | 
setMigrateType(Long MigrateType)
Set Data migration type. 
 | 
void | 
setRunMode(Long RunMode)
Set Task operation mode. 
 | 
void | 
toMap(HashMap<String,String> map,
     String prefix)
Internal implementation, normal users should not use it. 
 | 
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonStringpublic Long getRunMode()
public void setRunMode(Long RunMode)
RunMode - Task operation mode. Value range: 1 (immediate execution), 2 (scheduled execution)public String getExpectTime()
public void setExpectTime(String ExpectTime)
ExpectTime - Expected execution time in the format of yyyy-mm-dd hh:mm:ss. If runMode=2, this field is requiredpublic Long getMigrateType()
public void setMigrateType(Long MigrateType)
MigrateType - Data migration type. Value range: 1 (structural migration), 2 (full migration), 3 (full + incremental migration)public Long getMigrateObject()
public void setMigrateObject(Long MigrateObject)
MigrateObject - Migration subject. 1: entire instance; 2: specified tablepublic Long getConsistencyType()
public void setConsistencyType(Long ConsistencyType)
ConsistencyType - Parameter of spot data consistency check. 1: not configured; 2: full check; 3: spot check; 4: check inconsistent tables only; 5: no checkpublic Long getIsOverrideRoot()
public void setIsOverrideRoot(Long IsOverrideRoot)
IsOverrideRoot - Whether to overwrite the target database with the root account of the source database. Value range: 0 (no), 1 (yes). This value should be 0 for table or structural migrationpublic String getExternParams()
public void setExternParams(String ExternParams)
ExternParams - Additional parameters for different databases, which are described in JSON format. 
The following parameters can be defined for Redis: 
{ 
        "ClientOutputBufferHardLimit":512,      Hard capacity limit of slave buffer (MB) 
        "ClientOutputBufferSoftLimit":512,      Soft capacity limit of slave buffer (MB) 
        "ClientOutputBufferPersistTime":60, Soft limit duration of slave buffer (s) 
        "ReplBacklogSize":512,  Circular buffer capacity limit (MB) 
        "ReplTimeout":120,              Replication timeout period (s) 
}
The following parameters can be defined for MongoDB: 
{
        'SrcAuthDatabase':'admin', 
        'SrcAuthFlag': "1", 
        'SrcAuthMechanism':"SCRAM-SHA-1"
}
MySQL currently does not support configuring additional parameters.public ConsistencyParams getConsistencyParams()
public void setConsistencyParams(ConsistencyParams ConsistencyParams)
ConsistencyParams - Only used for "spot data consistency check". It is required if ConsistencyType is spot checkCopyright © 2021. All rights reserved.