Feature/add_rheakv #1
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
1.在JDBC模块中复制DefaultCommonConfigBean、MetadataConfigBean、MetaElectorConfigBean,然后在RaftConfiguration配置类中注入三者。
2.在RaftConfiguration配置类中注入RheaKVStore(通过 @ConditionalOnMissingBean判断用户是否注入RheaKVStore,如果没有自动注入,启动我定义好的RheaKVStore)
3.新增DefaultConfigs(DB_PATH,RAFT_DATA_PATH,ADDRESS,CLUSTER_NAME)
4.新增LeaderLockDomain(lockName(分布式锁名称),dataCenter(集群名称),owner(节点名称),leaderInfo(节点信息),gmtModified(修改时间),duration(过期时间))
5.新增AppRevisionDomain(dataCenter(集群节点 ,revision(revision),appName(应用名),clientVersion(客户端版本),baseParams(基础参数),serviceParams(服务参数),gmtModify(修改时间))
6.在MetaRaftLeaderElector中的JRheaKV存储("DISTRIBUTE-LOCk",Map<String, LeaderLockDomain>
7.Map<String, LeaderLockDomain> leaderInfoMap = new ConcurrentHashMap<>(),表示Map<集群节点,节点信息>