public interface RuleAlteredJobAPI extends PipelineJobAPI, org.apache.shardingsphere.spi.required.RequiredSPI, org.apache.shardingsphere.spi.singleton.SingletonSPI
| Modifier and Type | Method and Description |
|---|---|
boolean |
aggregateDataConsistencyCheckResults(String jobId,
Map<String,DataConsistencyCheckResult> checkResultMap)
Aggregate data consistency check results.
|
Map<String,DataConsistencyCheckResult> |
dataConsistencyCheck(JobConfiguration jobConfig)
Do data consistency check.
|
Map<String,DataConsistencyCheckResult> |
dataConsistencyCheck(String jobId)
Do data consistency check.
|
Map<String,DataConsistencyCheckResult> |
dataConsistencyCheck(String jobId,
String algorithmType)
Do data consistency check.
|
JobConfiguration |
getJobConfig(String jobId)
Get job configuration.
|
Map<Integer,JobProgress> |
getProgress(JobConfiguration jobConfig)
Get job progress.
|
Map<Integer,JobProgress> |
getProgress(String jobId)
Get job progress.
|
boolean |
isDataConsistencyCheckNeeded(JobConfiguration jobConfig)
Is data consistency check needed.
|
boolean |
isDataConsistencyCheckNeeded(String jobId)
Is data consistency check needed.
|
List<JobInfo> |
list()
List all jobs.
|
Collection<DataConsistencyCheckAlgorithmInfo> |
listDataConsistencyCheckAlgorithms()
List all data consistency check algorithms from SPI.
|
void |
reset(String jobId)
Reset scaling job.
|
void |
restoreClusterWriteDB(String jobId)
Restore cluster write to job source schema's underlying DB.
|
void |
restoreClusterWriteDB(String schemaName,
String jobId)
Restore cluster write to job source schema's underlying DB.
|
Optional<String> |
start(JobConfiguration jobConfig)
Start scaling job by config.
|
void |
stopClusterWriteDB(String jobId)
Stop cluster write to job source schema's underlying DB.
|
void |
stopClusterWriteDB(String schemaName,
String jobId)
Stop cluster write to job source schema's underlying DB.
|
void |
switchClusterConfiguration(JobConfiguration jobConfig)
Switch job source schema's configuration to job target configuration.
|
void |
switchClusterConfiguration(String jobId)
Switch job source schema's configuration to job target configuration.
|
remove, startDisabledJob, stopOptional<String> start(JobConfiguration jobConfig)
jobConfig - job configMap<Integer,JobProgress> getProgress(String jobId)
jobId - job idMap<Integer,JobProgress> getProgress(JobConfiguration jobConfig)
jobConfig - job configurationvoid stopClusterWriteDB(String jobId)
jobId - job idvoid stopClusterWriteDB(String schemaName, String jobId)
schemaName - schema namejobId - job idvoid restoreClusterWriteDB(String jobId)
jobId - job idvoid restoreClusterWriteDB(String schemaName, String jobId)
schemaName - schema namejobId - job idCollection<DataConsistencyCheckAlgorithmInfo> listDataConsistencyCheckAlgorithms()
boolean isDataConsistencyCheckNeeded(String jobId)
jobId - job idboolean isDataConsistencyCheckNeeded(JobConfiguration jobConfig)
jobConfig - job configurationMap<String,DataConsistencyCheckResult> dataConsistencyCheck(String jobId)
jobId - job idMap<String,DataConsistencyCheckResult> dataConsistencyCheck(JobConfiguration jobConfig)
jobConfig - job configurationMap<String,DataConsistencyCheckResult> dataConsistencyCheck(String jobId, String algorithmType)
jobId - job idalgorithmType - algorithm typeboolean aggregateDataConsistencyCheckResults(String jobId, Map<String,DataConsistencyCheckResult> checkResultMap)
jobId - job idcheckResultMap - check result mapvoid switchClusterConfiguration(String jobId)
jobId - job idvoid switchClusterConfiguration(JobConfiguration jobConfig)
jobConfig - job configurationvoid reset(String jobId)
jobId - job idJobConfiguration getJobConfig(String jobId)
jobId - job idCopyright © 2022 The Apache Software Foundation. All rights reserved.