This is an automated email from the ASF dual-hosted git repository.
sunnianjun pushed a change to branch main
in repository https://gitbox.apache.org/repos/asf/shardingsphere-plugin.git
from e212714 Merge pull request #26 from tuichenchuxin/main
add f69a111 Add mode consul plugin in ShardingSphere Plugin repository
new 149feb9 Merge pull request #28 from strongduanmu/dev-0226
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
README.md | 33 +++
README_ZH.md | 33 +++
mode/cluster/repository/{nacos => consul}/pom.xml | 46 +++-
.../cluster/consul/ConsulRepository.java | 254 +++++++++++++++++++++
.../consul/ShardingSphereConsulClient.java} | 19 +-
.../cluster/consul/ShardingSphereQueryParams.java | 28 ++-
.../cluster/consul/lock/ConsulDistributedLock.java | 166 ++++++++++++++
.../consul/lock/ConsulDistributedLockCreator.java | 19 +-
.../cluster/consul/props/ConsulProperties.java} | 10 +-
.../cluster/consul/props/ConsulPropertyKey.java} | 27 ++-
...ode.repository.cluster.ClusterPersistRepository | 2 +-
...ory.cluster.lock.creator.DistributedLockCreator | 2 +-
.../cluster/consul/ConsulRepositoryTest.java | 237 +++++++++++++++++++
.../cluster/consul/props/ConsulPropertiesTest.java | 23 +-
mode/cluster/repository/pom.xml | 1 +
15 files changed, 843 insertions(+), 57 deletions(-)
copy mode/cluster/repository/{nacos => consul}/pom.xml (54%)
create mode 100644
mode/cluster/repository/consul/src/main/java/org/apache/shardingsphere/mode/repository/cluster/consul/ConsulRepository.java
copy
mode/cluster/repository/{nacos/src/main/java/org/apache/shardingsphere/mode/repository/cluster/nacos/entity/KeyValue.java
=>
consul/src/main/java/org/apache/shardingsphere/mode/repository/cluster/consul/ShardingSphereConsulClient.java}
(64%)
copy
features/sharding/cosid/src/test/java/org/apache/shardingsphere/sharding/cosid/algorithm/keygen/fixture/WorkerIdGeneratorFixture.java
=>
mode/cluster/repository/consul/src/main/java/org/apache/shardingsphere/mode/repository/cluster/consul/ShardingSphereQueryParams.java
(54%)
create mode 100644
mode/cluster/repository/consul/src/main/java/org/apache/shardingsphere/mode/repository/cluster/consul/lock/ConsulDistributedLock.java
copy
infra/data-source-pool/c3p0/src/main/java/org/apache/shardingsphere/infra/datasource/pool/c3p0/metadata/C3P0DataSourcePoolFieldMetaData.java
=>
mode/cluster/repository/consul/src/main/java/org/apache/shardingsphere/mode/repository/cluster/consul/lock/ConsulDistributedLockCreator.java
(53%)
copy
mode/cluster/repository/{nacos/src/main/java/org/apache/shardingsphere/mode/repository/cluster/nacos/props/NacosProperties.java
=>
consul/src/main/java/org/apache/shardingsphere/mode/repository/cluster/consul/props/ConsulProperties.java}
(76%)
copy
mode/cluster/repository/{nacos/src/main/java/org/apache/shardingsphere/mode/repository/cluster/nacos/listener/WatchData.java
=>
consul/src/main/java/org/apache/shardingsphere/mode/repository/cluster/consul/props/ConsulPropertyKey.java}
(63%)
copy mode/cluster/repository/{nacos =>
consul}/src/main/resources/META-INF/services/org.apache.shardingsphere.mode.repository.cluster.ClusterPersistRepository
(91%)
copy
features/encrypt/rc4/src/main/resources/META-INF/services/org.apache.shardingsphere.encrypt.spi.EncryptAlgorithm
=>
mode/cluster/repository/consul/src/main/resources/META-INF/services/org.apache.shardingsphere.mode.repository.cluster.lock.creator.DistributedLockCreator
(89%)
create mode 100644
mode/cluster/repository/consul/src/test/java/org/apache/shardingsphere/mode/repository/cluster/consul/ConsulRepositoryTest.java
copy
features/sharding/nanoid/src/test/java/org/apache/shardingsphere/sharding/nanoid/algorithm/keygen/NanoIdKeyGenerateAlgorithmTest.java
=>
mode/cluster/repository/consul/src/test/java/org/apache/shardingsphere/mode/repository/cluster/consul/props/ConsulPropertiesTest.java
(56%)