public class MigrationContext
extends java.lang.Object
数据迁移入口类
限定符和类型 | 方法和说明 |
---|---|
boolean |
checkDataExist() |
java.lang.String[] |
getDialectClassList() |
java.lang.Exception |
getException() |
DBConfigBean |
getFineDBConfig() |
static MigrationContext |
getInstance() |
java.lang.String |
getOperatorId() |
int |
getProgress() |
boolean |
isAlreadyTransferred() |
boolean |
isMigrationOperator(java.lang.String operatorId)
检查是否是迁移发起人,如果工程还未完成初始化,返回true
|
boolean |
isTransferring() |
void |
startTransfer(java.lang.String operatorId) |
void |
testDBConnection(DBConfigBean config) |
void |
updateFineDBConfig(DBConfigBean fineDBConfig) |
public static MigrationContext getInstance()
public java.lang.String[] getDialectClassList()
public void testDBConnection(DBConfigBean config) throws java.lang.Exception
java.lang.Exception
public void updateFineDBConfig(DBConfigBean fineDBConfig)
public DBConfigBean getFineDBConfig()
public void startTransfer(java.lang.String operatorId) throws java.lang.Exception
java.lang.Exception
public boolean isTransferring()
public int getProgress()
public java.lang.Exception getException()
public boolean isAlreadyTransferred()
public boolean isMigrationOperator(java.lang.String operatorId)
operatorId
- public boolean checkDataExist()
public java.lang.String getOperatorId()