From 588a98fa47f02c218f753a90203e461542a61962 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E5=BF=B5=E5=90=9B=20Nianjun=20Sun?= Date: Mon, 18 Mar 2024 14:26:49 +0800 Subject: [PATCH] Document : update the document and fix dead link since package load.balancer has been changed to loadbalancer --- docs/document/content/dev-manual/infra-algorithm.cn.md | 10 +++++----- docs/document/content/dev-manual/infra-algorithm.en.md | 8 ++++---- .../plugin/show-load-balance-algorithm-plugins.cn.md | 4 ++-- .../plugin/show-load-balance-algorithm-plugins.en.md | 4 ++-- .../distsql/syntax/ral/plugin/show-plugins.cn.md | 2 +- .../distsql/syntax/ral/plugin/show-plugins.en.md | 2 +- .../reflect-config.json | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/docs/document/content/dev-manual/infra-algorithm.cn.md b/docs/document/content/dev-manual/infra-algorithm.cn.md index 7f5b8af668f91..fbfacbd908e21 100644 --- a/docs/document/content/dev-manual/infra-algorithm.cn.md +++ b/docs/document/content/dev-manual/infra-algorithm.cn.md @@ -9,7 +9,7 @@ chapter = true ### 全限定类名 -[`org.apache.shardingsphere.infra.algorithm.load.balancer.core.LoadBalanceAlgorithm`](https://github.com/apache/shardingsphere/blob/master/infra/algorithm/load-balancer/core/src/main/java/org/apache/shardingsphere/infra/algorithm/load/balancer/core/LoadBalanceAlgorithm.java) +[`org.apache.shardingsphere.infra.algorithm.loadbalancer.core.LoadBalanceAlgorithm`](https://github.com/apache/shardingsphere/blob/master/infra/algorithm/load-balancer/core/src/main/java/org/apache/shardingsphere/infra/algorithm/loadbalancer/core/LoadBalanceAlgorithm.java) ### 定义 @@ -19,9 +19,9 @@ chapter = true | *配置标识* | *详细说明* | *全限定类名* | |-------------|---------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| ROUND_ROBIN | 基于轮询的负载均衡算法 | [`org.apache.shardingsphere.infra.algorithm.load.balancer.round.robin.RoundRobinLoadBalanceAlgorithm`](https://github.com/apache/shardingsphere/blob/master/infra/algorithm/load-balancer/type/round-robin/src/main/java/org/apache/shardingsphere/infra/algorithm/load/balancer/round/robin/RoundRobinLoadBalanceAlgorithm.java) | -| RANDOM | 基于随机的负载均衡算法 | [`org.apache.shardingsphere.infra.algorithm.load.balancer.random.RandomLoadBalanceAlgorithm`](https://github.com/apache/shardingsphere/blob/master/infra/algorithm/load-balancer/type/random/src/main/java/org/apache/shardingsphere/infra/algorithm/load/balancer/random/RandomLoadBalanceAlgorithm.java) | -| WEIGHT | 基于权重的负载均衡算法 | [`org.apache.shardingsphere.infra.algorithm.load.balancer.weight.WeightLoadBalanceAlgorithm`](https://github.com/apache/shardingsphere/blob/master/infra/algorithm/load-balancer/type/weight/src/main/java/org/apache/shardingsphere/infra/algorithm/load/balancer/weight/WeightLoadBalanceAlgorithm.java) | +| ROUND_ROBIN | 基于轮询的负载均衡算法 | [`org.apache.shardingsphere.infra.algorithm.loadbalancer.round.robin.RoundRobinLoadBalanceAlgorithm`](https://github.com/apache/shardingsphere/blob/master/infra/algorithm/load-balancer/type/round-robin/src/main/java/org/apache/shardingsphere/infra/algorithm/loadbalancer/round/robin/RoundRobinLoadBalanceAlgorithm.java) | +| RANDOM | 基于随机的负载均衡算法 | [`org.apache.shardingsphere.infra.algorithm.loadbalancer.random.RandomLoadBalanceAlgorithm`](https://github.com/apache/shardingsphere/blob/master/infra/algorithm/load-balancer/type/random/src/main/java/org/apache/shardingsphere/infra/algorithm/loadbalancer/random/RandomLoadBalanceAlgorithm.java) | +| WEIGHT | 基于权重的负载均衡算法 | [`org.apache.shardingsphere.infra.algorithm.loadbalancer.weight.WeightLoadBalanceAlgorithm`](https://github.com/apache/shardingsphere/blob/master/infra/algorithm/load-balancer/type/weight/src/main/java/org/apache/shardingsphere/infra/algorithm/loadbalancer/weight/WeightLoadBalanceAlgorithm.java) | ## KeyGenerateAlgorithm @@ -38,4 +38,4 @@ chapter = true | *配置标识* | *详细说明* | *全限定类名* | |-----------------|--------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | SNOWFLAKE | 基于雪花算法的分布式主键生成算法 | [`org.apache.shardingsphere.keygen.snowflake.algorithm.SnowflakeKeyGenerateAlgorithm`](https://github.com/apache/shardingsphere/blob/master/infra/algorithm/key-generator/type/snowflake/src/main/java/org/apache/shardingsphere/infra/algorithm/keygen/snowflake/SnowflakeKeyGenerateAlgorithm.java) | -| UUID | 基于 UUID 的分布式主键生成算法 | [`org.apache.shardingsphere.keygen.uuid.algorithm.UUIDKeyGenerateAlgorithm`](https://github.com/apache/shardingsphere/blob/master/infra/algorithm/key-generator/type/uuid/src/main/java/org/apache/shardingsphere/infra/algorithm/keygen/uuid/UUIDKeyGenerateAlgorithm.java) | \ No newline at end of file +| UUID | 基于 UUID 的分布式主键生成算法 | [`org.apache.shardingsphere.keygen.uuid.algorithm.UUIDKeyGenerateAlgorithm`](https://github.com/apache/shardingsphere/blob/master/infra/algorithm/key-generator/type/uuid/src/main/java/org/apache/shardingsphere/infra/algorithm/keygen/uuid/UUIDKeyGenerateAlgorithm.java) | diff --git a/docs/document/content/dev-manual/infra-algorithm.en.md b/docs/document/content/dev-manual/infra-algorithm.en.md index 06fa22541125d..58f26489a4751 100644 --- a/docs/document/content/dev-manual/infra-algorithm.en.md +++ b/docs/document/content/dev-manual/infra-algorithm.en.md @@ -9,7 +9,7 @@ chapter = true ### Fully-qualified class name -[`org.apache.shardingsphere.infra.algorithm.load.balancer.core.LoadBalanceAlgorithm`](https://github.com/apache/shardingsphere/blob/master/infra/algorithm/load-balancer/core/src/main/java/org/apache/shardingsphere/infra/algorithm/load/balancer/core/LoadBalanceAlgorithm.java) +[`org.apache.shardingsphere.infra.algorithm.loadbalancer.core.LoadBalanceAlgorithm`](https://github.com/apache/shardingsphere/blob/master/infra/algorithm/load-balancer/core/src/main/java/org/apache/shardingsphere/infra/algorithm/loadbalancer/core/LoadBalanceAlgorithm.java) ### Definition @@ -19,9 +19,9 @@ Load balance algorithms, they can be used in readwrite-splitting and traffic fea | *Configuration Type* | *Description* | *Fully-qualified class name* | |----------------------|--------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| ROUND_ROBIN | load balancer algorithm based on polling | [`org.apache.shardingsphere.infra.algorithm.load.balancer.round.robin.RoundRobinLoadBalanceAlgorithm`](https://github.com/apache/shardingsphere/blob/master/infra/algorithm/load-balancer/type/round-robin/src/main/java/org/apache/shardingsphere/infra/algorithm/load/balancer/round/robin/RoundRobinLoadBalanceAlgorithm.java) | -| RANDOM | load balancer algorithm based on random | [`org.apache.shardingsphere.infra.algorithm.load.balancer.random.RandomLoadBalanceAlgorithm`](https://github.com/apache/shardingsphere/blob/master/infra/algorithm/load-balancer/type/random/src/main/java/org/apache/shardingsphere/infra/algorithm/load/balancer/random/RandomLoadBalanceAlgorithm.java) | -| WEIGHT | load balancer algorithm based on weight | [`org.apache.shardingsphere.infra.algorithm.load.balancer.weight.WeightLoadBalanceAlgorithm`](https://github.com/apache/shardingsphere/blob/master/infra/algorithm/load-balancer/type/weight/src/main/java/org/apache/shardingsphere/infra/algorithm/load/balancer/weight/WeightLoadBalanceAlgorithm.java) | +| ROUND_ROBIN | load balancer algorithm based on polling | [`org.apache.shardingsphere.infra.algorithm.loadbalancer.round.robin.RoundRobinLoadBalanceAlgorithm`](https://github.com/apache/shardingsphere/blob/master/infra/algorithm/load-balancer/type/round-robin/src/main/java/org/apache/shardingsphere/infra/algorithm/loadbalancer/round/robin/RoundRobinLoadBalanceAlgorithm.java) | +| RANDOM | load balancer algorithm based on random | [`org.apache.shardingsphere.infra.algorithm.loadbalancer.random.RandomLoadBalanceAlgorithm`](https://github.com/apache/shardingsphere/blob/master/infra/algorithm/load-balancer/type/random/src/main/java/org/apache/shardingsphere/infra/algorithm/loadbalancer/random/RandomLoadBalanceAlgorithm.java) | +| WEIGHT | load balancer algorithm based on weight | [`org.apache.shardingsphere.infra.algorithm.loadbalancer.weight.WeightLoadBalanceAlgorithm`](https://github.com/apache/shardingsphere/blob/master/infra/algorithm/load-balancer/type/weight/src/main/java/org/apache/shardingsphere/infra/algorithm/loadbalancer/weight/WeightLoadBalanceAlgorithm.java) | ## KeyGenerateAlgorithm diff --git a/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/ral/plugin/show-load-balance-algorithm-plugins.cn.md b/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/ral/plugin/show-load-balance-algorithm-plugins.cn.md index bbcde7e6a1dc1..dc8e44ab41568 100644 --- a/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/ral/plugin/show-load-balance-algorithm-plugins.cn.md +++ b/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/ral/plugin/show-load-balance-algorithm-plugins.cn.md @@ -5,7 +5,7 @@ weight = 3 ### 描述 -`SHOW LOAD BALANCE ALGORITHM PLUGINS` 语法用于查询 `org.apache.shardingsphere.infra.algorithm.load.balancer.core.LoadBalanceAlgorithm` 接口的所有实现类。 +`SHOW LOAD BALANCE ALGORITHM PLUGINS` 语法用于查询 `org.apache.shardingsphere.infra.algorithm.loadbalancer.core.LoadBalanceAlgorithm` 接口的所有实现类。 ### 语法 @@ -31,7 +31,7 @@ showLoadBalanceAlgorithmPlugins ::= ### 示例 -- 查询 `org.apache.shardingsphere.infra.algorithm.load.balancer.core.LoadBalanceAlgorithm` 接口的所有实现类 +- 查询 `org.apache.shardingsphere.infra.algorithm.loadbalancer.core.LoadBalanceAlgorithm` 接口的所有实现类 ```sql SHOW LOAD BALANCE ALGORITHM PLUGINS diff --git a/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/ral/plugin/show-load-balance-algorithm-plugins.en.md b/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/ral/plugin/show-load-balance-algorithm-plugins.en.md index c84d1d18e75f0..c67ca4c855e47 100644 --- a/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/ral/plugin/show-load-balance-algorithm-plugins.en.md +++ b/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/ral/plugin/show-load-balance-algorithm-plugins.en.md @@ -5,7 +5,7 @@ weight = 3 ### Description -The `SHOW LOAD BALANCE ALGORITHM PLUGINS` syntax is used to query all the implementations of the interface `org.apache.shardingsphere.infra.algorithm.load.balancer.core.LoadBalanceAlgorithm`. +The `SHOW LOAD BALANCE ALGORITHM PLUGINS` syntax is used to query all the implementations of the interface `org.apache.shardingsphere.infra.algorithm.loadbalancer.core.LoadBalanceAlgorithm`. ### Syntax @@ -31,7 +31,7 @@ showLoadBalanceAlgorithmPlugins ::= ### Example -- Query all the implementations for `org.apache.shardingsphere.infra.algorithm.load.balancer.core.LoadBalanceAlgorithm` interface +- Query all the implementations for `org.apache.shardingsphere.infra.algorithm.loadbalancer.core.LoadBalanceAlgorithm` interface ```sql SHOW LOAD BALANCE ALGORITHM PLUGINS diff --git a/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/ral/plugin/show-plugins.cn.md b/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/ral/plugin/show-plugins.cn.md index 2ffccb24d4901..19314baec07bf 100644 --- a/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/ral/plugin/show-plugins.cn.md +++ b/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/ral/plugin/show-plugins.cn.md @@ -64,7 +64,7 @@ SHOW PLUGINS OF 'org.apache.shardingsphere.sharding.spi.ShardingAlgorithm'; 针对一些常用的接口,ShardingSphere 提供了语法糖,可以简化操作,目前已提供的插件查询语法糖如下: - 查询 `org.apache.shardingsphere.sharding.spi.ShardingAlgorithm` 接口实现:[SHOW SHARDING ALGORITHM PLUGINS](/cn/user-manual/shardingsphere-proxy/distsql/syntax/ral/plugin/show-sharding-algorithm-plugins/) -- 查询 `org.apache.shardingsphere.infra.algorithm.load.balancer.core.LoadBalanceAlgorithm` 接口实现:[SHOW LOAD BALANCE ALGORITHM PLUGINS](/cn/user-manual/shardingsphere-proxy/distsql/syntax/ral/plugin/show-load-balance-algorithm-plugins/) +- 查询 `org.apache.shardingsphere.infra.algorithm.loadbalancer.core.LoadBalanceAlgorithm` 接口实现:[SHOW LOAD BALANCE ALGORITHM PLUGINS](/cn/user-manual/shardingsphere-proxy/distsql/syntax/ral/plugin/show-load-balance-algorithm-plugins/) - 查询 `org.apache.shardingsphere.encrypt.spi.EncryptAlgorithm` 接口实现:[SHOW ENCRYPT ALGORITHM PLUGINS](/cn/user-manual/shardingsphere-proxy/distsql/syntax/ral/plugin/show-encrypt-algorithm-plugins/) - 查询 `org.apache.shardingsphere.mask.spi.MaskAlgorithm` 接口实现:[SHOW MASK ALGORITHM PLUGINS](/cn/user-manual/shardingsphere-proxy/distsql/syntax/ral/plugin/show-mask-algorithm-plugins/) - 查询 `org.apache.shardingsphere.shadow.spi.ShadowAlgorithm` 接口实现:[SHOW SHADOW ALGORITHM PLUGINS](/cn/user-manual/shardingsphere-proxy/distsql/syntax/ral/plugin/show-shadow-algorithm-plugins/) diff --git a/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/ral/plugin/show-plugins.en.md b/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/ral/plugin/show-plugins.en.md index cec3ced21abd2..332293d844927 100644 --- a/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/ral/plugin/show-plugins.en.md +++ b/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/ral/plugin/show-plugins.en.md @@ -66,7 +66,7 @@ For some commonly used interface implementations, ShardingSphere provides syntax The currently provided syntax sugar are as follows: - Show implementations of `org.apache.shardingsphere.sharding.spi.ShardingAlgorithm`: [SHOW SHARDING ALGORITHM PLUGINS](/en/user-manual/shardingsphere-proxy/distsql/syntax/ral/plugin/show-sharding-algorithm-plugins/) -- Show implementations of `org.apache.shardingsphere.infra.algorithm.load.balancer.core.LoadBalanceAlgorithm`: [SHOW LOAD BALANCE ALGORITHM PLUGINS](/en/user-manual/shardingsphere-proxy/distsql/syntax/ral/plugin/show-load-balance-algorithm-plugins/) +- Show implementations of `org.apache.shardingsphere.infra.algorithm.loadbalancer.core.LoadBalanceAlgorithm`: [SHOW LOAD BALANCE ALGORITHM PLUGINS](/en/user-manual/shardingsphere-proxy/distsql/syntax/ral/plugin/show-load-balance-algorithm-plugins/) - Show implementations of `org.apache.shardingsphere.encrypt.spi.EncryptAlgorithm`: [SHOW ENCRYPT ALGORITHM PLUGINS](/en/user-manual/shardingsphere-proxy/distsql/syntax/ral/plugin/show-encrypt-algorithm-plugins/) - Show implementations of `org.apache.shardingsphere.mask.spi.MaskAlgorithm`: [SHOW MASK ALGORITHM PLUGINS](/en/user-manual/shardingsphere-proxy/distsql/syntax/ral/plugin/show-mask-algorithm-plugins/) - Show implementations of `org.apache.shardingsphere.shadow.spi.ShadowAlgorithm`: [SHOW SHADOW ALGORITHM PLUGINS](/en/user-manual/shardingsphere-proxy/distsql/syntax/ral/plugin/show-shadow-algorithm-plugins/) diff --git a/infra/reachability-metadata/src/main/resources/META-INF/native-image/org.apache.shardingsphere/shardingsphere-infra-reachability-metadata/reflect-config.json b/infra/reachability-metadata/src/main/resources/META-INF/native-image/org.apache.shardingsphere/shardingsphere-infra-reachability-metadata/reflect-config.json index 861acb9766512..cff1bd8535b67 100644 --- a/infra/reachability-metadata/src/main/resources/META-INF/native-image/org.apache.shardingsphere/shardingsphere-infra-reachability-metadata/reflect-config.json +++ b/infra/reachability-metadata/src/main/resources/META-INF/native-image/org.apache.shardingsphere/shardingsphere-infra-reachability-metadata/reflect-config.json @@ -200,17 +200,17 @@ }, { "condition":{"typeReachable":"org.apache.shardingsphere.readwritesplitting.rule.ReadwriteSplittingRule"}, - "name":"org.apache.shardingsphere.infra.algorithm.load.balancer.random.RandomLoadBalanceAlgorithm", + "name":"org.apache.shardingsphere.infra.algorithm.loadbalancer.random.RandomLoadBalanceAlgorithm", "methods":[{"name":"","parameterTypes":[] }] }, { "condition":{"typeReachable":"org.apache.shardingsphere.readwritesplitting.rule.ReadwriteSplittingRule"}, - "name":"org.apache.shardingsphere.infra.algorithm.load.balancer.round.robin.RoundRobinLoadBalanceAlgorithm", + "name":"org.apache.shardingsphere.infra.algorithm.loadbalancer.round.robin.RoundRobinLoadBalanceAlgorithm", "methods":[{"name":"","parameterTypes":[] }] }, { "condition":{"typeReachable":"org.apache.shardingsphere.readwritesplitting.rule.ReadwriteSplittingRule"}, - "name":"org.apache.shardingsphere.infra.algorithm.load.balancer.weight.WeightLoadBalanceAlgorithm", + "name":"org.apache.shardingsphere.infra.algorithm.loadbalancer.weight.WeightLoadBalanceAlgorithm", "methods":[{"name":"","parameterTypes":[] }] }, {