public interface GovernanceRepositoryAPI
| 限定符和类型 | 方法和说明 |
|---|---|
void |
cleanJobItemErrorMessage(String jobId,
int shardingItem)
Clean job item error message.
|
void |
deleteCheckJobResult(String jobId,
String checkJobId)
Delete check job result.
|
void |
deleteJob(String jobId)
Delete job.
|
Map<String,DataConsistencyCheckResult> |
getCheckJobResult(String parentJobId,
String checkJobId)
Get check job result.
|
Optional<String> |
getCheckLatestJobId(String jobId)
Get check latest job id.
|
List<String> |
getChildrenKeys(String key)
Get node's sub-nodes list.
|
String |
getJobItemErrorMessage(String jobId,
int shardingItem)
Get job item error msg.
|
String |
getJobItemProgress(String jobId,
int shardingItem)
Get job item progress.
|
String |
getMetaDataDataSources(JobType jobType)
Get meta data data sources.
|
String |
getMetaDataProcessConfiguration(JobType jobType)
Get meta data process configuration.
|
List<Integer> |
getShardingItems(String jobId)
Get sharding items of job.
|
boolean |
isExisted(String key)
Whether key existing or not.
|
Collection<String> |
listCheckJobIds(String jobId)
List check job ids.
|
void |
persist(String key,
String value)
Persist data.
|
void |
persistCheckJobResult(String jobId,
String checkJobId,
Map<String,DataConsistencyCheckResult> checkResultMap)
Persist check job result.
|
void |
persistCheckLatestJobId(String jobId,
String checkJobId)
Persist check latest job id.
|
void |
persistJobItemProgress(String jobId,
int shardingItem,
String progressValue)
Persist job item progress.
|
void |
persistMetaDataDataSources(JobType jobType,
String metaDataDataSources)
Persist meta data data sources.
|
void |
persistMetaDataProcessConfiguration(JobType jobType,
String processConfigYamlText)
Persist meta data process configuration.
|
void |
watch(String key,
org.apache.shardingsphere.mode.repository.cluster.listener.DataChangedEventListener listener)
Watch key or path of governance server.
|
boolean isExisted(String key)
key - registry center keyvoid persistJobItemProgress(String jobId, int shardingItem, String progressValue)
jobId - job idshardingItem - sharding itemprogressValue - progress valueString getJobItemProgress(String jobId, int shardingItem)
jobId - job idshardingItem - sharding itemOptional<String> getCheckLatestJobId(String jobId)
jobId - job idvoid persistCheckLatestJobId(String jobId, String checkJobId)
jobId - job idcheckJobId - check job idMap<String,DataConsistencyCheckResult> getCheckJobResult(String parentJobId, String checkJobId)
parentJobId - job idcheckJobId - check job idvoid persistCheckJobResult(String jobId, String checkJobId, Map<String,DataConsistencyCheckResult> checkResultMap)
jobId - job idcheckJobId - check job idcheckResultMap - check result mapvoid deleteCheckJobResult(String jobId, String checkJobId)
jobId - job idcheckJobId - check job idCollection<String> listCheckJobIds(String jobId)
jobId - job idvoid deleteJob(String jobId)
jobId - job idList<String> getChildrenKeys(String key)
key - key of datavoid watch(String key, org.apache.shardingsphere.mode.repository.cluster.listener.DataChangedEventListener listener)
key - key of datalistener - data changed event listenervoid persist(String key, String value)
key - key of datavalue - value of dataList<Integer> getShardingItems(String jobId)
jobId - job idString getMetaDataDataSources(JobType jobType)
jobType - job typevoid persistMetaDataDataSources(JobType jobType, String metaDataDataSources)
jobType - job typemetaDataDataSources - data source propertiesString getMetaDataProcessConfiguration(JobType jobType)
jobType - job type, nullablevoid persistMetaDataProcessConfiguration(JobType jobType, String processConfigYamlText)
jobType - job type, nullableprocessConfigYamlText - process configuration YAML textString getJobItemErrorMessage(String jobId, int shardingItem)
jobId - job idshardingItem - sharding itemvoid cleanJobItemErrorMessage(String jobId, int shardingItem)
jobId - job idshardingItem - sharding itemCopyright © 2022 The Apache Software Foundation. All rights reserved.