public class MigrateOption extends AbstractModel
Constructor and Description |
---|
MigrateOption() |
MigrateOption(MigrateOption source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
ConsistencyParams |
getConsistencyParams()
Get 仅用于“抽样数据一致性检测”,ConsistencyType配置为抽样检测时,必选
|
Long |
getConsistencyType()
Get 抽样数据一致性检测参数,1-未配置,2-全量检测,3-抽样检测, 4-仅校验不一致表,5-不检测
|
String |
getExpectTime()
Get 期望执行时间,当runMode=2时,该字段必填,时间格式:yyyy-mm-dd hh:mm:ss
|
String |
getExternParams()
Get 不同数据库用到的额外参数.以JSON格式描述.
|
Long |
getIsOverrideRoot()
Get 是否用源库Root账户覆盖目标库,值包括:0-不覆盖,1-覆盖,选择库表或者结构迁移时应该为0
|
Long |
getMigrateObject()
Get 迁移对象,1-整个实例,2-指定库表
|
Long |
getMigrateType()
Get 数据迁移类型,值包括:1-结构迁移,2-全量迁移,3-全量+增量迁移
|
Long |
getRunMode()
Get 任务运行模式,值包括:1-立即执行,2-定时执行
|
void |
setConsistencyParams(ConsistencyParams ConsistencyParams)
Set 仅用于“抽样数据一致性检测”,ConsistencyType配置为抽样检测时,必选
|
void |
setConsistencyType(Long ConsistencyType)
Set 抽样数据一致性检测参数,1-未配置,2-全量检测,3-抽样检测, 4-仅校验不一致表,5-不检测
|
void |
setExpectTime(String ExpectTime)
Set 期望执行时间,当runMode=2时,该字段必填,时间格式:yyyy-mm-dd hh:mm:ss
|
void |
setExternParams(String ExternParams)
Set 不同数据库用到的额外参数.以JSON格式描述.
|
void |
setIsOverrideRoot(Long IsOverrideRoot)
Set 是否用源库Root账户覆盖目标库,值包括:0-不覆盖,1-覆盖,选择库表或者结构迁移时应该为0
|
void |
setMigrateObject(Long MigrateObject)
Set 迁移对象,1-整个实例,2-指定库表
|
void |
setMigrateType(Long MigrateType)
Set 数据迁移类型,值包括:1-结构迁移,2-全量迁移,3-全量+增量迁移
|
void |
setRunMode(Long RunMode)
Set 任务运行模式,值包括:1-立即执行,2-定时执行
|
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, toJsonString
public MigrateOption()
public MigrateOption(MigrateOption source)
public Long getRunMode()
public void setRunMode(Long RunMode)
RunMode
- 任务运行模式,值包括:1-立即执行,2-定时执行public String getExpectTime()
public void setExpectTime(String ExpectTime)
ExpectTime
- 期望执行时间,当runMode=2时,该字段必填,时间格式:yyyy-mm-dd hh:mm:sspublic Long getMigrateType()
public void setMigrateType(Long MigrateType)
MigrateType
- 数据迁移类型,值包括:1-结构迁移,2-全量迁移,3-全量+增量迁移public Long getMigrateObject()
public void setMigrateObject(Long MigrateObject)
MigrateObject
- 迁移对象,1-整个实例,2-指定库表public Long getConsistencyType()
public void setConsistencyType(Long ConsistencyType)
ConsistencyType
- 抽样数据一致性检测参数,1-未配置,2-全量检测,3-抽样检测, 4-仅校验不一致表,5-不检测public Long getIsOverrideRoot()
public void setIsOverrideRoot(Long IsOverrideRoot)
IsOverrideRoot
- 是否用源库Root账户覆盖目标库,值包括:0-不覆盖,1-覆盖,选择库表或者结构迁移时应该为0public String getExternParams()
public void setExternParams(String ExternParams)
ExternParams
- 不同数据库用到的额外参数.以JSON格式描述.
Redis可定义如下的参数:
{
"ClientOutputBufferHardLimit":512, 从机缓冲区的硬性容量限制(MB)
"ClientOutputBufferSoftLimit":512, 从机缓冲区的软性容量限制(MB)
"ClientOutputBufferPersistTime":60, 从机缓冲区的软性限制持续时间(秒)
"ReplBacklogSize":512, 环形缓冲区容量限制(MB)
"ReplTimeout":120, 复制超时时间(秒)
}
MongoDB可定义如下的参数:
{
'SrcAuthDatabase':'admin',
'SrcAuthFlag': "1",
'SrcAuthMechanism':"SCRAM-SHA-1"
}
MySQL暂不支持额外参数设置。public ConsistencyParams getConsistencyParams()
public void setConsistencyParams(ConsistencyParams ConsistencyParams)
ConsistencyParams
- 仅用于“抽样数据一致性检测”,ConsistencyType配置为抽样检测时,必选Copyright © 2021. All rights reserved.