public final class GovernanceRepositoryAPIImpl extends Object implements GovernanceRepositoryAPI
| 构造器和说明 |
|---|
GovernanceRepositoryAPIImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
public boolean isExisted(String key)
GovernanceRepositoryAPIisExisted 在接口中 GovernanceRepositoryAPIkey - registry center keypublic void persistJobItemProgress(String jobId, int shardingItem, String progressValue)
GovernanceRepositoryAPIpersistJobItemProgress 在接口中 GovernanceRepositoryAPIjobId - job idshardingItem - sharding itemprogressValue - progress valuepublic String getJobItemProgress(String jobId, int shardingItem)
GovernanceRepositoryAPIgetJobItemProgress 在接口中 GovernanceRepositoryAPIjobId - job idshardingItem - sharding itempublic Optional<String> getCheckLatestJobId(String jobId)
GovernanceRepositoryAPIgetCheckLatestJobId 在接口中 GovernanceRepositoryAPIjobId - job idpublic void persistCheckLatestJobId(String jobId, String checkJobId)
GovernanceRepositoryAPIpersistCheckLatestJobId 在接口中 GovernanceRepositoryAPIjobId - job idcheckJobId - check job idpublic Map<String,DataConsistencyCheckResult> getCheckJobResult(String parentJobId, String checkJobId)
GovernanceRepositoryAPIgetCheckJobResult 在接口中 GovernanceRepositoryAPIparentJobId - job idcheckJobId - check job idpublic void persistCheckJobResult(String jobId, String checkJobId, Map<String,DataConsistencyCheckResult> checkResultMap)
GovernanceRepositoryAPIpersistCheckJobResult 在接口中 GovernanceRepositoryAPIjobId - job idcheckJobId - check job idcheckResultMap - check result mappublic void deleteCheckJobResult(String jobId, String checkJobId)
GovernanceRepositoryAPIdeleteCheckJobResult 在接口中 GovernanceRepositoryAPIjobId - job idcheckJobId - check job idpublic Collection<String> listCheckJobIds(String jobId)
GovernanceRepositoryAPIlistCheckJobIds 在接口中 GovernanceRepositoryAPIjobId - job idpublic void deleteJob(String jobId)
GovernanceRepositoryAPIdeleteJob 在接口中 GovernanceRepositoryAPIjobId - job idpublic List<String> getChildrenKeys(String key)
GovernanceRepositoryAPIgetChildrenKeys 在接口中 GovernanceRepositoryAPIkey - key of datapublic void watch(String key, org.apache.shardingsphere.mode.repository.cluster.listener.DataChangedEventListener listener)
GovernanceRepositoryAPIwatch 在接口中 GovernanceRepositoryAPIkey - key of datalistener - data changed event listenerpublic void persist(String key, String value)
GovernanceRepositoryAPIpersist 在接口中 GovernanceRepositoryAPIkey - key of datavalue - value of datapublic List<Integer> getShardingItems(String jobId)
GovernanceRepositoryAPIgetShardingItems 在接口中 GovernanceRepositoryAPIjobId - job idpublic String getMetaDataDataSources(JobType jobType)
GovernanceRepositoryAPIgetMetaDataDataSources 在接口中 GovernanceRepositoryAPIjobType - job typepublic void persistMetaDataDataSources(JobType jobType, String metaDataDataSources)
GovernanceRepositoryAPIpersistMetaDataDataSources 在接口中 GovernanceRepositoryAPIjobType - job typemetaDataDataSources - data source propertiespublic String getMetaDataProcessConfiguration(JobType jobType)
GovernanceRepositoryAPIgetMetaDataProcessConfiguration 在接口中 GovernanceRepositoryAPIjobType - job type, nullablepublic void persistMetaDataProcessConfiguration(JobType jobType, String processConfigYamlText)
GovernanceRepositoryAPIpersistMetaDataProcessConfiguration 在接口中 GovernanceRepositoryAPIjobType - job type, nullableprocessConfigYamlText - process configuration YAML textpublic String getJobItemErrorMessage(String jobId, int shardingItem)
GovernanceRepositoryAPIgetJobItemErrorMessage 在接口中 GovernanceRepositoryAPIjobId - job idshardingItem - sharding itempublic void cleanJobItemErrorMessage(String jobId, int shardingItem)
GovernanceRepositoryAPIcleanJobItemErrorMessage 在接口中 GovernanceRepositoryAPIjobId - job idshardingItem - sharding itemCopyright © 2022 The Apache Software Foundation. All rights reserved.