You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by me...@apache.org on 2020/08/31 10:53:15 UTC
[shardingsphere] branch master updated: rename governance
This is an automated email from the ASF dual-hosted git repository.
menghaoran pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git
The following commit(s) were added to refs/heads/master by this push:
new 335069e rename governance
new 9990c20 Merge pull request #7184 from kimmking/exam1
335069e is described below
commit 335069e0cffb4dad9718d7d1ad34ef885f411a1c
Author: kimmking <ki...@apache.org>
AuthorDate: Mon Aug 31 15:57:53 2020 +0800
rename governance
---
examples/README.md | 10 ++--
examples/README_ZH.md | 10 ++--
.../docker-compose.yml | 0
.../{orchestration => governance}/run.sh | 0
.../{orchestration => governance}/stop.sh | 0
.../sharding-proxy/sharding/conf/server.yaml | 6 +-
examples/pom.xml | 12 ++--
.../governance-raw-jdbc-example}/pom.xml | 11 ++--
.../raw/jdbc/JavaConfigurationExampleMain.java | 42 ++++++-------
.../raw/jdbc/YamlConfigurationExampleMain.java | 16 ++---
.../GovernanceRepositoryConfigurationUtil.java | 68 ++++++++++++++++++++++
.../config/cloud/CloudEncryptConfiguration.java | 14 ++---
.../cloud/CloudMasterSlaveConfiguration.java | 14 ++---
.../config/cloud/CloudShadowConfiguration.java | 14 ++---
...oudShardingDatabasesAndTablesConfiguration.java | 14 ++---
.../config/local/LocalEncryptConfiguration.java | 16 ++---
.../local/LocalMasterSlaveConfiguration.java | 14 ++---
.../config/local/LocalShadowConfiguration.java | 16 ++---
...calShardingDatabasesAndTablesConfiguration.java | 16 ++---
.../local/LocalShardingDatabasesConfiguration.java | 16 ++---
.../LocalShardingMasterSlaveConfiguration.java | 14 ++---
.../local/LocalShardingTablesConfiguration.java | 16 ++---
.../resources/META-INF/nacos/cloud/encrypt.yaml | 2 +-
.../META-INF/nacos/cloud/master-slave.yaml | 2 +-
.../resources/META-INF/nacos/cloud/shadow.yaml | 2 +-
.../nacos/cloud/sharding-databases-tables.yaml | 2 +-
.../resources/META-INF/nacos/local/encrypt.yaml | 2 +-
.../META-INF/nacos/local/master-slave.yaml | 2 +-
.../resources/META-INF/nacos/local/shadow.yaml | 2 +-
.../nacos/local/sharding-databases-tables.yaml | 2 +-
.../META-INF/zookeeper/cloud/encrypt.yaml | 2 +-
.../META-INF/zookeeper/cloud/master-slave.yaml | 2 +-
.../resources/META-INF/zookeeper/cloud/shadow.yaml | 2 +-
.../zookeeper/cloud/sharding-databases-tables.yaml | 2 +-
.../META-INF/zookeeper/local/encrypt.yaml | 2 +-
.../META-INF/zookeeper/local/master-slave.yaml | 2 +-
.../resources/META-INF/zookeeper/local/shadow.yaml | 2 +-
.../zookeeper/local/sharding-databases-tables.yaml | 2 +-
.../src/main/resources/logback.xml | 2 +-
.../governance-spring-boot-example}/pom.xml | 10 ++--
.../governance}/spring/boot/ExampleMain.java | 2 +-
.../application-cloud-nacos-encrypt.properties} | 18 +++---
...pplication-cloud-nacos-master-slave.properties} | 13 +++--
.../application-cloud-nacos-shadow.properties} | 13 +++--
...oud-nacos-sharding-databases-tables.properties} | 13 +++--
...application-cloud-zookeeper-encrypt.properties} | 7 ++-
...cation-cloud-zookeeper-master-slave.properties} | 7 ++-
.../application-cloud-zookeeper-shadow.properties} | 7 ++-
...zookeeper-sharding-databases-tables.properties} | 7 ++-
.../application-local-nacos-encrypt.properties | 12 ++--
...application-local-nacos-master-slave.properties | 12 ++--
.../application-local-nacos-shadow.properties | 12 ++--
...ocal-nacos-sharding-databases-tables.properties | 12 ++--
.../application-local-zookeeper-encrypt.properties | 8 +--
...ication-local-zookeeper-master-slave.properties | 8 +--
.../application-local-zookeeper-shadow.properties | 8 +--
...-zookeeper-sharding-databases-tables.properties | 8 +--
.../src/main/resources/application.properties | 0
.../governance-spring-namespace-example}/pom.xml | 10 ++--
.../spring/namespace/ExampleMain.java | 2 +-
.../META-INF/nacos/cloud/application-encrypt.xml | 8 +--
.../nacos/cloud/application-master-slave.xml | 8 +--
.../META-INF/nacos/cloud/application-shadow.xml | 8 +--
.../application-sharding-databases-tables.xml | 10 ++--
.../META-INF/nacos/local/application-encrypt.xml | 8 +--
.../nacos/local/application-master-slave.xml | 8 +--
.../META-INF/nacos/local/application-shadow.xml | 8 +--
.../application-sharding-databases-tables.xml | 8 +--
.../resources/META-INF/nacos/registry-center.xml | 14 ++---
.../zookeeper/cloud/application-encrypt.xml | 8 +--
.../zookeeper/cloud/application-master-slave.xml | 8 +--
.../zookeeper/cloud/application-shadow.xml | 8 +--
.../application-sharding-databases-tables.xml | 8 +--
.../zookeeper/local/application-encrypt.xml | 8 +--
.../zookeeper/local/application-master-slave.xml | 8 +--
.../zookeeper/local/application-shadow.xml | 8 +--
.../application-sharding-databases-tables.xml | 8 +--
.../META-INF/zookeeper/registry-center.xml | 10 ++--
.../src/main/resources/logback.xml | 0
.../pom.xml | 8 +--
.../OrchestrationRepositoryConfigurationUtil.java | 68 ----------------------
.../application-cloud-nacos-encrypt.properties | 27 ---------
.../application-cloud-nacos-shadow.properties | 27 ---------
...loud-nacos-sharding-databases-tables.properties | 27 ---------
...-zookeeper-sharding-databases-tables.properties | 22 -------
examples/shardingsphere-jdbc-example/pom.xml | 2 +-
.../src/main/resources/conf/server.yaml | 6 +-
.../src/main/resources/conf/server.yaml | 6 +-
88 files changed, 416 insertions(+), 493 deletions(-)
diff --git a/examples/README.md b/examples/README.md
index a8f76fb..6b1be15 100644
--- a/examples/README.md
+++ b/examples/README.md
@@ -47,10 +47,10 @@ shardingsphere-example
│ │ ├── sharding-spring-boot-mybatis-example
│ │ ├── sharding-spring-namespace-jpa-example
│ │ └── sharding-spring-namespace-mybatis-example
- │ ├── orchestration-example
- │ │ ├── orchestration-raw-jdbc-example
- │ │ ├── orchestration-spring-boot-example
- │ │ └── orchestration-spring-namespace-example
+ │ ├── governance-example
+ │ │ ├── governance-raw-jdbc-example
+ │ │ ├── governance-spring-boot-example
+ │ │ └── governance-spring-namespace-example
│ ├── transaction-example
│ │ ├── transaction-2pc-xa-example
│ │ └── transaction-base-seata-example
@@ -71,7 +71,7 @@ shardingsphere-example
| [sharding](shardingsphere-jdbc-example/sharding-example) | show how to use sharding-table\sharding-database\master-slave with ShardingSphere-JDBC |
| [springboot jpa](shardingsphere-jdbc-example/sharding-example/sharding-spring-boot-jpa-example) | show how to use SpringBoot JPA with ShardingSphere |
| [springboot mybatis](shardingsphere-jdbc-example/sharding-example/sharding-spring-boot-mybatis-example) | show how to use SpringBoot Mybatis with ShardingSphere |
-| [orchestration](shardingsphere-jdbc-example/orchestration-example) | show how to use ShardingSphere orchestration |
+| [governance](shardingsphere-jdbc-example/governance-example) | show how to use ShardingSphere governance |
| [transaction](shardingsphere-jdbc-example/transaction-example) | show how to use ShardingSphere transaction |
| [hint](shardingsphere-jdbc-example/other-feature-example/hint-example) | show how to use ShardingSphere hint |
| [encryption](shardingsphere-jdbc-example/other-feature-example/encrypt-example) | show how to use ShardingSphere encryption |
diff --git a/examples/README_ZH.md b/examples/README_ZH.md
index 22fd51a..88bc919 100644
--- a/examples/README_ZH.md
+++ b/examples/README_ZH.md
@@ -46,10 +46,10 @@ shardingsphere-example
│ │ ├── sharding-spring-boot-mybatis-example
│ │ ├── sharding-spring-namespace-jpa-example
│ │ └── sharding-spring-namespace-mybatis-example
- │ ├── orchestration-example
- │ │ ├── orchestration-raw-jdbc-example
- │ │ ├── orchestration-spring-boot-example
- │ │ └── orchestration-spring-namespace-example
+ │ ├── governance-example
+ │ │ ├── governance-raw-jdbc-example
+ │ │ ├── governance-spring-boot-example
+ │ │ └── governance-spring-namespace-example
│ ├── transaction-example
│ │ ├── transaction-2pc-xa-example
│ │ └── transaction-base-seata-example
@@ -70,7 +70,7 @@ shardingsphere-example
| [分片](shardingsphere-jdbc-example/sharding-example) | 演示了如何通过 ShardingSphere-JDBC 进行分库、分表、主从等 |
| [springboot jpa](shardingsphere-jdbc-example/sharding-example/sharding-spring-boot-jpa-example) | 演示了如何通过 SpringBoot JPA 对接 ShardingSphere |
| [springboot mybatis](shardingsphere-jdbc-example/sharding-example/sharding-spring-boot-mybatis-example) | 演示了如何通过 SpringBoot Mybatis 对接 ShardingSphere |
-| [orchestration](shardingsphere-jdbc-example/orchestration-example) | 演示了如何在 ShardingSphere 中使用 orchestration |
+| [governance](shardingsphere-jdbc-example/governance-example) | 演示了如何在 ShardingSphere 中使用 governance |
| [事务](shardingsphere-jdbc-example/transaction-example) | 演示了如何在 ShardingSphere 中使用事务 |
| [hint](shardingsphere-jdbc-example/other-feature-example/hint-example) | 演示了如何在 ShardingSphere 中使用 hint |
| [加密](shardingsphere-jdbc-example/other-feature-example/encrypt-example) | 演示了如何在 ShardingSphere 中使用加密 |
diff --git a/examples/docker/sharding-proxy/orchestration/docker-compose.yml b/examples/docker/sharding-proxy/governance/docker-compose.yml
similarity index 100%
rename from examples/docker/sharding-proxy/orchestration/docker-compose.yml
rename to examples/docker/sharding-proxy/governance/docker-compose.yml
diff --git a/examples/docker/sharding-proxy/orchestration/run.sh b/examples/docker/sharding-proxy/governance/run.sh
similarity index 100%
rename from examples/docker/sharding-proxy/orchestration/run.sh
rename to examples/docker/sharding-proxy/governance/run.sh
diff --git a/examples/docker/sharding-proxy/orchestration/stop.sh b/examples/docker/sharding-proxy/governance/stop.sh
similarity index 100%
copy from examples/docker/sharding-proxy/orchestration/stop.sh
copy to examples/docker/sharding-proxy/governance/stop.sh
diff --git a/examples/docker/sharding-proxy/sharding/conf/server.yaml b/examples/docker/sharding-proxy/sharding/conf/server.yaml
index 0972a3d..0915646 100644
--- a/examples/docker/sharding-proxy/sharding/conf/server.yaml
+++ b/examples/docker/sharding-proxy/sharding/conf/server.yaml
@@ -17,12 +17,12 @@
######################################################################################################
#
-# If you want to configure orchestration, authorization and proxy properties, please refer to this file.
+# If you want to configure governance, authorization and proxy properties, please refer to this file.
#
######################################################################################################
-#orchestration:
-# name: orchestration_ds
+#governance:
+# name: governance_ds
# registryCenter:
# type: ZooKeeper
# serverLists: localhost:2181
diff --git a/examples/pom.xml b/examples/pom.xml
index c3ff6b4..4cc2a9d 100644
--- a/examples/pom.xml
+++ b/examples/pom.xml
@@ -93,7 +93,7 @@
</dependency>
<dependency>
<groupId>org.apache.shardingsphere</groupId>
- <artifactId>shardingsphere-jdbc-orchestration</artifactId>
+ <artifactId>shardingsphere-jdbc-governance</artifactId>
<version>${shardingsphere.version}</version>
</dependency>
<dependency>
@@ -128,7 +128,7 @@
</dependency>
<dependency>
<groupId>org.apache.shardingsphere</groupId>
- <artifactId>shardingsphere-jdbc-orchestration-spring-boot-starter</artifactId>
+ <artifactId>shardingsphere-jdbc-governance-spring-boot-starter</artifactId>
<version>${shardingsphere.version}</version>
</dependency>
<dependency>
@@ -138,22 +138,22 @@
</dependency>
<dependency>
<groupId>org.apache.shardingsphere</groupId>
- <artifactId>shardingsphere-jdbc-orchestration-spring-namespace</artifactId>
+ <artifactId>shardingsphere-jdbc-governance-spring-namespace</artifactId>
<version>${shardingsphere.version}</version>
</dependency>
<dependency>
<groupId>org.apache.shardingsphere</groupId>
- <artifactId>shardingsphere-orchestration-repository-zookeeper-curator</artifactId>
+ <artifactId>shardingsphere-governance-repository-zookeeper-curator</artifactId>
<version>${shardingsphere.version}</version>
</dependency>
<dependency>
<groupId>org.apache.shardingsphere</groupId>
- <artifactId>shardingsphere-orchestration-repository-nacos</artifactId>
+ <artifactId>shardingsphere-governance-repository-nacos</artifactId>
<version>${shardingsphere.version}</version>
</dependency>
<dependency>
<groupId>org.apache.shardingsphere</groupId>
- <artifactId>shardingsphere-orchestration-repository-etcd</artifactId>
+ <artifactId>shardingsphere-governance-repository-etcd</artifactId>
<version>${shardingsphere.version}</version>
</dependency>
<dependency>
diff --git a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/pom.xml b/examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/pom.xml
similarity index 85%
rename from examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/pom.xml
rename to examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/pom.xml
index bb40f0e..d620169 100644
--- a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/pom.xml
+++ b/examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/pom.xml
@@ -22,10 +22,10 @@
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.apache.shardingsphere.example</groupId>
- <artifactId>orchestration-example</artifactId>
+ <artifactId>governance-example</artifactId>
<version>5.0.0-RC1-SNAPSHOT</version>
</parent>
- <artifactId>orchestration-raw-jdbc-example</artifactId>
+ <artifactId>governance-raw-jdbc-example</artifactId>
<name>${project.artifactId}</name>
<dependencies>
@@ -39,18 +39,17 @@
<artifactId>config-utility</artifactId>
<version>${project.version}</version>
</dependency>
-
<dependency>
<groupId>org.apache.shardingsphere</groupId>
- <artifactId>shardingsphere-jdbc-orchestration</artifactId>
+ <artifactId>shardingsphere-jdbc-governance</artifactId>
</dependency>
<dependency>
<groupId>org.apache.shardingsphere</groupId>
- <artifactId>shardingsphere-orchestration-repository-zookeeper-curator</artifactId>
+ <artifactId>shardingsphere-governance-repository-zookeeper-curator</artifactId>
</dependency>
<dependency>
<groupId>org.apache.shardingsphere</groupId>
- <artifactId>shardingsphere-orchestration-repository-nacos</artifactId>
+ <artifactId>shardingsphere-governance-repository-nacos</artifactId>
</dependency>
<dependency>
<groupId>com.alibaba.nacos</groupId>
diff --git a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/orchestration/raw/jdbc/JavaConfigurationExampleMain.java b/examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/governance/raw/jdbc/JavaConfigurationExampleMain.java
similarity index 61%
rename from examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/orchestration/raw/jdbc/JavaConfigurationExampleMain.java
rename to examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/governance/raw/jdbc/JavaConfigurationExampleMain.java
index 7957048..19a2487 100644
--- a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/orchestration/raw/jdbc/JavaConfigurationExampleMain.java
+++ b/examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/governance/raw/jdbc/JavaConfigurationExampleMain.java
@@ -15,33 +15,33 @@
* limitations under the License.
*/
-package org.apache.shardingsphere.example.orchestration.raw.jdbc;
+package org.apache.shardingsphere.example.governance.raw.jdbc;
import org.apache.shardingsphere.driver.jdbc.core.datasource.ShardingSphereDataSource;
import org.apache.shardingsphere.example.config.ExampleConfiguration;
import org.apache.shardingsphere.example.core.api.ExampleExecuteTemplate;
import org.apache.shardingsphere.example.core.api.service.ExampleService;
import org.apache.shardingsphere.example.core.jdbc.service.OrderServiceImpl;
-import org.apache.shardingsphere.example.orchestration.raw.jdbc.config.OrchestrationRepositoryConfigurationUtil;
-import org.apache.shardingsphere.example.orchestration.raw.jdbc.config.cloud.CloudEncryptConfiguration;
-import org.apache.shardingsphere.example.orchestration.raw.jdbc.config.cloud.CloudMasterSlaveConfiguration;
-import org.apache.shardingsphere.example.orchestration.raw.jdbc.config.cloud.CloudShadowConfiguration;
-import org.apache.shardingsphere.example.orchestration.raw.jdbc.config.cloud.CloudShardingDatabasesAndTablesConfiguration;
-import org.apache.shardingsphere.example.orchestration.raw.jdbc.config.local.LocalEncryptConfiguration;
-import org.apache.shardingsphere.example.orchestration.raw.jdbc.config.local.LocalMasterSlaveConfiguration;
-import org.apache.shardingsphere.example.orchestration.raw.jdbc.config.local.LocalShadowConfiguration;
-import org.apache.shardingsphere.example.orchestration.raw.jdbc.config.local.LocalShardingDatabasesAndTablesConfiguration;
+import org.apache.shardingsphere.example.governance.raw.jdbc.config.GovernanceRepositoryConfigurationUtil;
+import org.apache.shardingsphere.example.governance.raw.jdbc.config.cloud.CloudEncryptConfiguration;
+import org.apache.shardingsphere.example.governance.raw.jdbc.config.cloud.CloudMasterSlaveConfiguration;
+import org.apache.shardingsphere.example.governance.raw.jdbc.config.cloud.CloudShadowConfiguration;
+import org.apache.shardingsphere.example.governance.raw.jdbc.config.cloud.CloudShardingDatabasesAndTablesConfiguration;
+import org.apache.shardingsphere.example.governance.raw.jdbc.config.local.LocalEncryptConfiguration;
+import org.apache.shardingsphere.example.governance.raw.jdbc.config.local.LocalMasterSlaveConfiguration;
+import org.apache.shardingsphere.example.governance.raw.jdbc.config.local.LocalShadowConfiguration;
+import org.apache.shardingsphere.example.governance.raw.jdbc.config.local.LocalShardingDatabasesAndTablesConfiguration;
import org.apache.shardingsphere.example.type.RegistryCenterType;
import org.apache.shardingsphere.example.type.ShardingType;
-import org.apache.shardingsphere.orchestration.repository.api.config.OrchestrationConfiguration;
+import org.apache.shardingsphere.governance.repository.api.config.GovernanceConfiguration;
import javax.sql.DataSource;
import java.sql.SQLException;
/*
* 1. Please make sure master-slave data sync on MySQL is running correctly. Otherwise this example will query empty data from slave.
- * 2. Please make sure sharding-orchestration-center-zookeeper-curator in your pom if registryCenterType = RegistryCenterType.ZOOKEEPER.
- * 3. Please make sure sharding-orchestration-center-nacos in your pom if registryCenterType = RegistryCenterType.NACOS.
+ * 2. Please make sure sharding-governance-center-zookeeper-curator in your pom if registryCenterType = RegistryCenterType.ZOOKEEPER.
+ * 3. Please make sure sharding-governance-center-nacos in your pom if registryCenterType = RegistryCenterType.NACOS.
*/
public final class JavaConfigurationExampleMain {
@@ -66,21 +66,21 @@ public final class JavaConfigurationExampleMain {
}
private static DataSource getDataSource(final ShardingType shardingType, final boolean loadConfigFromRegCenter) throws SQLException {
- OrchestrationConfiguration orchestrationConfiguration = getOrchestrationConfiguration(registryCenterType, shardingType);
+ GovernanceConfiguration governanceConfiguration = getGovernanceConfiguration(registryCenterType, shardingType);
ExampleConfiguration configuration;
switch (shardingType) {
case SHARDING_DATABASES_AND_TABLES:
configuration = loadConfigFromRegCenter
- ? new CloudShardingDatabasesAndTablesConfiguration(orchestrationConfiguration) : new LocalShardingDatabasesAndTablesConfiguration(orchestrationConfiguration);
+ ? new CloudShardingDatabasesAndTablesConfiguration(governanceConfiguration) : new LocalShardingDatabasesAndTablesConfiguration(governanceConfiguration);
break;
case MASTER_SLAVE:
- configuration = loadConfigFromRegCenter ? new CloudMasterSlaveConfiguration(orchestrationConfiguration) : new LocalMasterSlaveConfiguration(orchestrationConfiguration);
+ configuration = loadConfigFromRegCenter ? new CloudMasterSlaveConfiguration(governanceConfiguration) : new LocalMasterSlaveConfiguration(governanceConfiguration);
break;
case ENCRYPT:
- configuration = loadConfigFromRegCenter ? new CloudEncryptConfiguration(orchestrationConfiguration) : new LocalEncryptConfiguration(orchestrationConfiguration);
+ configuration = loadConfigFromRegCenter ? new CloudEncryptConfiguration(governanceConfiguration) : new LocalEncryptConfiguration(governanceConfiguration);
break;
case SHADOW:
- configuration = loadConfigFromRegCenter ? new CloudShadowConfiguration(orchestrationConfiguration) : new LocalShadowConfiguration(orchestrationConfiguration);
+ configuration = loadConfigFromRegCenter ? new CloudShadowConfiguration(governanceConfiguration) : new LocalShadowConfiguration(governanceConfiguration);
break;
default:
throw new UnsupportedOperationException(shardingType.name());
@@ -88,10 +88,10 @@ public final class JavaConfigurationExampleMain {
return configuration.getDataSource();
}
- private static OrchestrationConfiguration getOrchestrationConfiguration(final RegistryCenterType registryCenterType, final ShardingType shardingType) {
+ private static GovernanceConfiguration getGovernanceConfiguration(final RegistryCenterType registryCenterType, final ShardingType shardingType) {
return RegistryCenterType.ZOOKEEPER == registryCenterType
- ? OrchestrationRepositoryConfigurationUtil.getZooKeeperConfiguration(!loadConfigFromRegCenter, shardingType)
- : OrchestrationRepositoryConfigurationUtil.getNacosConfiguration(!loadConfigFromRegCenter, shardingType);
+ ? GovernanceRepositoryConfigurationUtil.getZooKeeperConfiguration(!loadConfigFromRegCenter, shardingType)
+ : GovernanceRepositoryConfigurationUtil.getNacosConfiguration(!loadConfigFromRegCenter, shardingType);
}
private static ExampleService getExampleService(final DataSource dataSource) {
diff --git a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/orchestration/raw/jdbc/YamlConfigurationExampleMain.java b/examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/governance/raw/jdbc/YamlConfigurationExampleMain.java
similarity index 82%
rename from examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/orchestration/raw/jdbc/YamlConfigurationExampleMain.java
rename to examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/governance/raw/jdbc/YamlConfigurationExampleMain.java
index 4f7cb4d..2f0644f 100644
--- a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/orchestration/raw/jdbc/YamlConfigurationExampleMain.java
+++ b/examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/governance/raw/jdbc/YamlConfigurationExampleMain.java
@@ -15,10 +15,10 @@
* limitations under the License.
*/
-package org.apache.shardingsphere.example.orchestration.raw.jdbc;
+package org.apache.shardingsphere.example.governance.raw.jdbc;
import org.apache.shardingsphere.driver.jdbc.core.datasource.ShardingSphereDataSource;
-import org.apache.shardingsphere.driver.orchestration.api.yaml.YamlOrchestrationShardingSphereDataSourceFactory;
+import org.apache.shardingsphere.driver.governance.api.yaml.YamlGovernanceShardingSphereDataSourceFactory;
import org.apache.shardingsphere.example.core.api.ExampleExecuteTemplate;
import org.apache.shardingsphere.example.core.api.service.ExampleService;
import org.apache.shardingsphere.example.core.jdbc.service.OrderServiceImpl;
@@ -32,8 +32,8 @@ import java.sql.SQLException;
/*
* 1. Please make sure master-slave data sync on MySQL is running correctly. Otherwise this example will query empty data from slave.
- * 2. Please make sure sharding-orchestration-center-zookeeper-curator in your pom if registryCenterType = RegistryCenterType.ZOOKEEPER.
- * 3. Please make sure sharding-orchestration-center-nacos in your pom if registryCenterType = RegistryCenterType.NACOS.
+ * 2. Please make sure sharding-governance-center-zookeeper-curator in your pom if registryCenterType = RegistryCenterType.ZOOKEEPER.
+ * 3. Please make sure sharding-governance-center-nacos in your pom if registryCenterType = RegistryCenterType.NACOS.
*/
public final class YamlConfigurationExampleMain {
@@ -62,16 +62,16 @@ public final class YamlConfigurationExampleMain {
switch (shardingType) {
case SHARDING_DATABASES_AND_TABLES:
yamlFilePath = String.format("/META-INF/%s/%s/sharding-databases-tables.yaml", registryCenterType.name().toLowerCase(), loadConfigFromRegCenter ? "cloud" : "local");
- return YamlOrchestrationShardingSphereDataSourceFactory.createDataSource(getFile(yamlFilePath));
+ return YamlGovernanceShardingSphereDataSourceFactory.createDataSource(getFile(yamlFilePath));
case MASTER_SLAVE:
yamlFilePath = String.format("/META-INF/%s/%s/master-slave.yaml", registryCenterType.name().toLowerCase(), loadConfigFromRegCenter ? "cloud" : "local");
- return YamlOrchestrationShardingSphereDataSourceFactory.createDataSource(getFile(yamlFilePath));
+ return YamlGovernanceShardingSphereDataSourceFactory.createDataSource(getFile(yamlFilePath));
case ENCRYPT:
yamlFilePath = String.format("/META-INF/%s/%s/encrypt.yaml", registryCenterType.name().toLowerCase(), loadConfigFromRegCenter ? "cloud" : "local");
- return YamlOrchestrationShardingSphereDataSourceFactory.createDataSource(getFile(yamlFilePath));
+ return YamlGovernanceShardingSphereDataSourceFactory.createDataSource(getFile(yamlFilePath));
case SHADOW:
yamlFilePath = String.format("/META-INF/%s/%s/shadow.yaml", registryCenterType.name().toLowerCase(), loadConfigFromRegCenter ? "cloud" : "local");
- return YamlOrchestrationShardingSphereDataSourceFactory.createDataSource(getFile(yamlFilePath));
+ return YamlGovernanceShardingSphereDataSourceFactory.createDataSource(getFile(yamlFilePath));
default:
throw new UnsupportedOperationException(shardingType.name());
}
diff --git a/examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/governance/raw/jdbc/config/GovernanceRepositoryConfigurationUtil.java b/examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/governance/raw/jdbc/config/GovernanceRepositoryConfigurationUtil.java
new file mode 100644
index 0000000..35adca5
--- /dev/null
+++ b/examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/governance/raw/jdbc/config/GovernanceRepositoryConfigurationUtil.java
@@ -0,0 +1,68 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.shardingsphere.example.governance.raw.jdbc.config;
+
+import org.apache.shardingsphere.example.type.ShardingType;
+import org.apache.shardingsphere.governance.repository.api.config.GovernanceConfiguration;
+import org.apache.shardingsphere.governance.repository.api.config.GovernanceCenterConfiguration;
+
+import java.util.Properties;
+
+public final class GovernanceRepositoryConfigurationUtil {
+
+ private static final String ZOOKEEPER_CONNECTION_STRING = "localhost:2181";
+
+ private static final String NACOS_CONNECTION_STRING = "localhost:8848";
+
+ public static GovernanceConfiguration getZooKeeperConfiguration(final boolean overwrite, final ShardingType shardingType) {
+ GovernanceCenterConfiguration governanceCenterConfig = new GovernanceCenterConfiguration("ZooKeeper", ZOOKEEPER_CONNECTION_STRING, new Properties());
+ switch (shardingType) {
+ case SHARDING_DATABASES_AND_TABLES:
+ return new GovernanceConfiguration("governance-sharding-data-source", governanceCenterConfig, overwrite);
+ case MASTER_SLAVE:
+ return new GovernanceConfiguration("governance-ms-data-source", governanceCenterConfig, overwrite);
+ case ENCRYPT:
+ return new GovernanceConfiguration("governance-encrypt-data-source", governanceCenterConfig, overwrite);
+ case SHADOW:
+ return new GovernanceConfiguration("governance-shadow-data-source", governanceCenterConfig, overwrite);
+ default:
+ throw new UnsupportedOperationException(shardingType.toString());
+ }
+ }
+
+ public static GovernanceConfiguration getNacosConfiguration(final boolean overwrite, final ShardingType shardingType) {
+ Properties nacosProperties = new Properties();
+ nacosProperties.setProperty("group", "SHARDING_SPHERE_DEFAULT_GROUP");
+ nacosProperties.setProperty("timeout", "3000");
+ GovernanceCenterConfiguration nacosConfig = new GovernanceCenterConfiguration("Nacos", NACOS_CONNECTION_STRING, nacosProperties);
+ Properties zookeeperProperties = new Properties();
+ GovernanceCenterConfiguration zookeeperConfig = new GovernanceCenterConfiguration("ZooKeeper", ZOOKEEPER_CONNECTION_STRING, zookeeperProperties);
+ switch (shardingType) {
+ case SHARDING_DATABASES_AND_TABLES:
+ return new GovernanceConfiguration("governance-zookeeper-sharding-data-source", zookeeperConfig, nacosConfig, overwrite);
+ case MASTER_SLAVE:
+ return new GovernanceConfiguration("governance-zookeeper-ms-data-source", zookeeperConfig, nacosConfig, overwrite);
+ case ENCRYPT:
+ return new GovernanceConfiguration("governance-zookeeper-encrypt-data-source", zookeeperConfig, nacosConfig, overwrite);
+ case SHADOW:
+ return new GovernanceConfiguration("governance-zookeeper-shadow-data-source", zookeeperConfig, nacosConfig, overwrite);
+ default:
+ throw new UnsupportedOperationException(shardingType.toString());
+ }
+ }
+}
diff --git a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/orchestration/raw/jdbc/config/cloud/CloudEncryptConfiguration.java b/examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/governance/raw/jdbc/config/cloud/CloudEncryptConfiguration.java
similarity index 63%
rename from examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/orchestration/raw/jdbc/config/cloud/CloudEncryptConfiguration.java
rename to examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/governance/raw/jdbc/config/cloud/CloudEncryptConfiguration.java
index 70f1b30..123ceb2 100644
--- a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/orchestration/raw/jdbc/config/cloud/CloudEncryptConfiguration.java
+++ b/examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/governance/raw/jdbc/config/cloud/CloudEncryptConfiguration.java
@@ -15,25 +15,25 @@
* limitations under the License.
*/
-package org.apache.shardingsphere.example.orchestration.raw.jdbc.config.cloud;
+package org.apache.shardingsphere.example.governance.raw.jdbc.config.cloud;
-import org.apache.shardingsphere.driver.orchestration.api.OrchestrationShardingSphereDataSourceFactory;
+import org.apache.shardingsphere.driver.governance.api.GovernanceShardingSphereDataSourceFactory;
import org.apache.shardingsphere.example.config.ExampleConfiguration;
-import org.apache.shardingsphere.orchestration.repository.api.config.OrchestrationConfiguration;
+import org.apache.shardingsphere.governance.repository.api.config.GovernanceConfiguration;
import javax.sql.DataSource;
import java.sql.SQLException;
public class CloudEncryptConfiguration implements ExampleConfiguration {
- private final OrchestrationConfiguration orchestrationConfiguration;
+ private final GovernanceConfiguration governanceConfiguration;
- public CloudEncryptConfiguration(final OrchestrationConfiguration orchestrationConfiguration) {
- this.orchestrationConfiguration = orchestrationConfiguration;
+ public CloudEncryptConfiguration(final GovernanceConfiguration governanceConfiguration) {
+ this.governanceConfiguration = governanceConfiguration;
}
@Override
public DataSource getDataSource() throws SQLException {
- return OrchestrationShardingSphereDataSourceFactory.createDataSource(orchestrationConfiguration);
+ return GovernanceShardingSphereDataSourceFactory.createDataSource(governanceConfiguration);
}
}
diff --git a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/orchestration/raw/jdbc/config/cloud/CloudMasterSlaveConfiguration.java b/examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/governance/raw/jdbc/config/cloud/CloudMasterSlaveConfiguration.java
similarity index 63%
rename from examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/orchestration/raw/jdbc/config/cloud/CloudMasterSlaveConfiguration.java
rename to examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/governance/raw/jdbc/config/cloud/CloudMasterSlaveConfiguration.java
index e4c0a03..98b66e8 100644
--- a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/orchestration/raw/jdbc/config/cloud/CloudMasterSlaveConfiguration.java
+++ b/examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/governance/raw/jdbc/config/cloud/CloudMasterSlaveConfiguration.java
@@ -15,25 +15,25 @@
* limitations under the License.
*/
-package org.apache.shardingsphere.example.orchestration.raw.jdbc.config.cloud;
+package org.apache.shardingsphere.example.governance.raw.jdbc.config.cloud;
-import org.apache.shardingsphere.driver.orchestration.api.OrchestrationShardingSphereDataSourceFactory;
+import org.apache.shardingsphere.driver.governance.api.GovernanceShardingSphereDataSourceFactory;
import org.apache.shardingsphere.example.config.ExampleConfiguration;
-import org.apache.shardingsphere.orchestration.repository.api.config.OrchestrationConfiguration;
+import org.apache.shardingsphere.governance.repository.api.config.GovernanceConfiguration;
import javax.sql.DataSource;
import java.sql.SQLException;
public final class CloudMasterSlaveConfiguration implements ExampleConfiguration {
- private final OrchestrationConfiguration orchestrationConfiguration;
+ private final GovernanceConfiguration governanceConfiguration;
- public CloudMasterSlaveConfiguration(final OrchestrationConfiguration orchestrationConfiguration) {
- this.orchestrationConfiguration = orchestrationConfiguration;
+ public CloudMasterSlaveConfiguration(final GovernanceConfiguration governanceConfiguration) {
+ this.governanceConfiguration = governanceConfiguration;
}
@Override
public DataSource getDataSource() throws SQLException {
- return OrchestrationShardingSphereDataSourceFactory.createDataSource(orchestrationConfiguration);
+ return GovernanceShardingSphereDataSourceFactory.createDataSource(governanceConfiguration);
}
}
diff --git a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/orchestration/raw/jdbc/config/cloud/CloudShadowConfiguration.java b/examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/governance/raw/jdbc/config/cloud/CloudShadowConfiguration.java
similarity index 63%
rename from examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/orchestration/raw/jdbc/config/cloud/CloudShadowConfiguration.java
rename to examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/governance/raw/jdbc/config/cloud/CloudShadowConfiguration.java
index 9794470..da80829 100644
--- a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/orchestration/raw/jdbc/config/cloud/CloudShadowConfiguration.java
+++ b/examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/governance/raw/jdbc/config/cloud/CloudShadowConfiguration.java
@@ -15,25 +15,25 @@
* limitations under the License.
*/
-package org.apache.shardingsphere.example.orchestration.raw.jdbc.config.cloud;
+package org.apache.shardingsphere.example.governance.raw.jdbc.config.cloud;
-import org.apache.shardingsphere.driver.orchestration.api.OrchestrationShardingSphereDataSourceFactory;
+import org.apache.shardingsphere.driver.governance.api.GovernanceShardingSphereDataSourceFactory;
import org.apache.shardingsphere.example.config.ExampleConfiguration;
-import org.apache.shardingsphere.orchestration.repository.api.config.OrchestrationConfiguration;
+import org.apache.shardingsphere.governance.repository.api.config.GovernanceConfiguration;
import javax.sql.DataSource;
import java.sql.SQLException;
public final class CloudShadowConfiguration implements ExampleConfiguration {
- private final OrchestrationConfiguration orchestrationConfiguration;
+ private final GovernanceConfiguration governanceConfiguration;
- public CloudShadowConfiguration(final OrchestrationConfiguration orchestrationConfiguration) {
- this.orchestrationConfiguration = orchestrationConfiguration;
+ public CloudShadowConfiguration(final GovernanceConfiguration governanceConfiguration) {
+ this.governanceConfiguration = governanceConfiguration;
}
@Override
public DataSource getDataSource() throws SQLException {
- return OrchestrationShardingSphereDataSourceFactory.createDataSource(orchestrationConfiguration);
+ return GovernanceShardingSphereDataSourceFactory.createDataSource(governanceConfiguration);
}
}
diff --git a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/orchestration/raw/jdbc/config/cloud/CloudShardingDatabasesAndTablesConfiguration.java b/examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/governance/raw/jdbc/config/cloud/CloudShardingDatabasesAndTablesConfiguration.java
similarity index 63%
rename from examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/orchestration/raw/jdbc/config/cloud/CloudShardingDatabasesAndTablesConfiguration.java
rename to examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/governance/raw/jdbc/config/cloud/CloudShardingDatabasesAndTablesConfiguration.java
index 06c786e..ca414db 100644
--- a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/orchestration/raw/jdbc/config/cloud/CloudShardingDatabasesAndTablesConfiguration.java
+++ b/examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/governance/raw/jdbc/config/cloud/CloudShardingDatabasesAndTablesConfiguration.java
@@ -15,25 +15,25 @@
* limitations under the License.
*/
-package org.apache.shardingsphere.example.orchestration.raw.jdbc.config.cloud;
+package org.apache.shardingsphere.example.governance.raw.jdbc.config.cloud;
-import org.apache.shardingsphere.driver.orchestration.api.OrchestrationShardingSphereDataSourceFactory;
+import org.apache.shardingsphere.driver.governance.api.GovernanceShardingSphereDataSourceFactory;
import org.apache.shardingsphere.example.config.ExampleConfiguration;
-import org.apache.shardingsphere.orchestration.repository.api.config.OrchestrationConfiguration;
+import org.apache.shardingsphere.governance.repository.api.config.GovernanceConfiguration;
import javax.sql.DataSource;
import java.sql.SQLException;
public final class CloudShardingDatabasesAndTablesConfiguration implements ExampleConfiguration {
- private final OrchestrationConfiguration orchestrationConfiguration;
+ private final GovernanceConfiguration governanceConfiguration;
- public CloudShardingDatabasesAndTablesConfiguration(final OrchestrationConfiguration orchestrationConfiguration) {
- this.orchestrationConfiguration = orchestrationConfiguration;
+ public CloudShardingDatabasesAndTablesConfiguration(final GovernanceConfiguration governanceConfiguration) {
+ this.governanceConfiguration = governanceConfiguration;
}
@Override
public DataSource getDataSource() throws SQLException {
- return OrchestrationShardingSphereDataSourceFactory.createDataSource(orchestrationConfiguration);
+ return GovernanceShardingSphereDataSourceFactory.createDataSource(governanceConfiguration);
}
}
diff --git a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/orchestration/raw/jdbc/config/local/LocalEncryptConfiguration.java b/examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/governance/raw/jdbc/config/local/LocalEncryptConfiguration.java
similarity index 80%
rename from examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/orchestration/raw/jdbc/config/local/LocalEncryptConfiguration.java
rename to examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/governance/raw/jdbc/config/local/LocalEncryptConfiguration.java
index d85b56c..801c922 100644
--- a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/orchestration/raw/jdbc/config/local/LocalEncryptConfiguration.java
+++ b/examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/governance/raw/jdbc/config/local/LocalEncryptConfiguration.java
@@ -15,17 +15,17 @@
* limitations under the License.
*/
-package org.apache.shardingsphere.example.orchestration.raw.jdbc.config.local;
+package org.apache.shardingsphere.example.governance.raw.jdbc.config.local;
import com.google.common.collect.ImmutableMap;
-import org.apache.shardingsphere.driver.orchestration.api.OrchestrationShardingSphereDataSourceFactory;
+import org.apache.shardingsphere.driver.governance.api.GovernanceShardingSphereDataSourceFactory;
import org.apache.shardingsphere.encrypt.api.config.EncryptRuleConfiguration;
import org.apache.shardingsphere.encrypt.api.config.rule.EncryptColumnRuleConfiguration;
import org.apache.shardingsphere.encrypt.api.config.rule.EncryptTableRuleConfiguration;
import org.apache.shardingsphere.example.config.ExampleConfiguration;
import org.apache.shardingsphere.example.core.api.DataSourceUtil;
import org.apache.shardingsphere.infra.config.algorithm.ShardingSphereAlgorithmConfiguration;
-import org.apache.shardingsphere.orchestration.repository.api.config.OrchestrationConfiguration;
+import org.apache.shardingsphere.governance.repository.api.config.GovernanceConfiguration;
import javax.sql.DataSource;
import java.sql.SQLException;
@@ -34,16 +34,16 @@ import java.util.Properties;
public final class LocalEncryptConfiguration implements ExampleConfiguration {
- private final OrchestrationConfiguration orchestrationConfiguration;
+ private final GovernanceConfiguration governanceConfiguration;
- public LocalEncryptConfiguration(final OrchestrationConfiguration orchestrationConfiguration) {
- this.orchestrationConfiguration = orchestrationConfiguration;
+ public LocalEncryptConfiguration(final GovernanceConfiguration governanceConfiguration) {
+ this.governanceConfiguration = governanceConfiguration;
}
@Override
public DataSource getDataSource() throws SQLException {
- return OrchestrationShardingSphereDataSourceFactory.createDataSource(
- DataSourceUtil.createDataSource("demo_ds"), Collections.singleton(getEncryptRuleConfiguration()), new Properties(), orchestrationConfiguration);
+ return GovernanceShardingSphereDataSourceFactory.createDataSource(
+ DataSourceUtil.createDataSource("demo_ds"), Collections.singleton(getEncryptRuleConfiguration()), new Properties(), governanceConfiguration);
}
private EncryptRuleConfiguration getEncryptRuleConfiguration() {
diff --git a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/orchestration/raw/jdbc/config/local/LocalMasterSlaveConfiguration.java b/examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/governance/raw/jdbc/config/local/LocalMasterSlaveConfiguration.java
similarity index 76%
rename from examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/orchestration/raw/jdbc/config/local/LocalMasterSlaveConfiguration.java
rename to examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/governance/raw/jdbc/config/local/LocalMasterSlaveConfiguration.java
index 01de62e..294a8cf 100644
--- a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/orchestration/raw/jdbc/config/local/LocalMasterSlaveConfiguration.java
+++ b/examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/governance/raw/jdbc/config/local/LocalMasterSlaveConfiguration.java
@@ -15,14 +15,14 @@
* limitations under the License.
*/
-package org.apache.shardingsphere.example.orchestration.raw.jdbc.config.local;
+package org.apache.shardingsphere.example.governance.raw.jdbc.config.local;
-import org.apache.shardingsphere.driver.orchestration.api.OrchestrationShardingSphereDataSourceFactory;
+import org.apache.shardingsphere.driver.governance.api.GovernanceShardingSphereDataSourceFactory;
import org.apache.shardingsphere.example.config.ExampleConfiguration;
import org.apache.shardingsphere.example.core.api.DataSourceUtil;
import org.apache.shardingsphere.masterslave.api.config.MasterSlaveRuleConfiguration;
import org.apache.shardingsphere.masterslave.api.config.rule.MasterSlaveDataSourceRuleConfiguration;
-import org.apache.shardingsphere.orchestration.repository.api.config.OrchestrationConfiguration;
+import org.apache.shardingsphere.governance.repository.api.config.GovernanceConfiguration;
import javax.sql.DataSource;
import java.sql.SQLException;
@@ -34,10 +34,10 @@ import java.util.Properties;
public final class LocalMasterSlaveConfiguration implements ExampleConfiguration {
- private final OrchestrationConfiguration orchestrationConfiguration;
+ private final GovernanceConfiguration governanceConfiguration;
- public LocalMasterSlaveConfiguration(final OrchestrationConfiguration orchestrationConfiguration) {
- this.orchestrationConfiguration = orchestrationConfiguration;
+ public LocalMasterSlaveConfiguration(final GovernanceConfiguration governanceConfiguration) {
+ this.governanceConfiguration = governanceConfiguration;
}
@Override
@@ -45,7 +45,7 @@ public final class LocalMasterSlaveConfiguration implements ExampleConfiguration
MasterSlaveDataSourceRuleConfiguration dataSourceConfiguration = new MasterSlaveDataSourceRuleConfiguration(
"demo_ds_master_slave", "demo_ds_master", Arrays.asList("demo_ds_slave_0", "demo_ds_slave_1"), null);
MasterSlaveRuleConfiguration masterSlaveRuleConfig = new MasterSlaveRuleConfiguration(Collections.singleton(dataSourceConfiguration), Collections.emptyMap());
- return OrchestrationShardingSphereDataSourceFactory.createDataSource(createDataSourceMap(), Collections.singleton(masterSlaveRuleConfig), new Properties(), orchestrationConfiguration);
+ return GovernanceShardingSphereDataSourceFactory.createDataSource(createDataSourceMap(), Collections.singleton(masterSlaveRuleConfig), new Properties(), governanceConfiguration);
}
private Map<String, DataSource> createDataSourceMap() {
diff --git a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/orchestration/raw/jdbc/config/local/LocalShadowConfiguration.java b/examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/governance/raw/jdbc/config/local/LocalShadowConfiguration.java
similarity index 73%
rename from examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/orchestration/raw/jdbc/config/local/LocalShadowConfiguration.java
rename to examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/governance/raw/jdbc/config/local/LocalShadowConfiguration.java
index 1a08e04..b5d1741 100644
--- a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/orchestration/raw/jdbc/config/local/LocalShadowConfiguration.java
+++ b/examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/governance/raw/jdbc/config/local/LocalShadowConfiguration.java
@@ -15,12 +15,12 @@
* limitations under the License.
*/
-package org.apache.shardingsphere.example.orchestration.raw.jdbc.config.local;
+package org.apache.shardingsphere.example.governance.raw.jdbc.config.local;
-import org.apache.shardingsphere.driver.orchestration.api.OrchestrationShardingSphereDataSourceFactory;
+import org.apache.shardingsphere.driver.governance.api.GovernanceShardingSphereDataSourceFactory;
import org.apache.shardingsphere.example.config.ExampleConfiguration;
import org.apache.shardingsphere.example.core.api.DataSourceUtil;
-import org.apache.shardingsphere.orchestration.repository.api.config.OrchestrationConfiguration;
+import org.apache.shardingsphere.governance.repository.api.config.GovernanceConfiguration;
import org.apache.shardingsphere.shadow.api.config.ShadowRuleConfiguration;
import javax.sql.DataSource;
@@ -32,16 +32,16 @@ import java.util.Properties;
public final class LocalShadowConfiguration implements ExampleConfiguration {
- private final OrchestrationConfiguration orchestrationConfiguration;
+ private final GovernanceConfiguration governanceConfiguration;
- public LocalShadowConfiguration(final OrchestrationConfiguration orchestrationConfiguration) {
- this.orchestrationConfiguration = orchestrationConfiguration;
+ public LocalShadowConfiguration(final GovernanceConfiguration governanceConfiguration) {
+ this.governanceConfiguration = governanceConfiguration;
}
@Override
public DataSource getDataSource() throws SQLException {
- return OrchestrationShardingSphereDataSourceFactory.createDataSource(
- createDataSourceMap(), Collections.singleton(getShadowRuleConfiguration()), new Properties(), orchestrationConfiguration);
+ return GovernanceShardingSphereDataSourceFactory.createDataSource(
+ createDataSourceMap(), Collections.singleton(getShadowRuleConfiguration()), new Properties(), governanceConfiguration);
}
private Map<String, DataSource> createDataSourceMap() {
diff --git a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/orchestration/raw/jdbc/config/local/LocalShardingDatabasesAndTablesConfiguration.java b/examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/governance/raw/jdbc/config/local/LocalShardingDatabasesAndTablesConfiguration.java
similarity index 85%
rename from examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/orchestration/raw/jdbc/config/local/LocalShardingDatabasesAndTablesConfiguration.java
rename to examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/governance/raw/jdbc/config/local/LocalShardingDatabasesAndTablesConfiguration.java
index 14adcf7..30ca423 100644
--- a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/orchestration/raw/jdbc/config/local/LocalShardingDatabasesAndTablesConfiguration.java
+++ b/examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/governance/raw/jdbc/config/local/LocalShardingDatabasesAndTablesConfiguration.java
@@ -15,13 +15,13 @@
* limitations under the License.
*/
-package org.apache.shardingsphere.example.orchestration.raw.jdbc.config.local;
+package org.apache.shardingsphere.example.governance.raw.jdbc.config.local;
-import org.apache.shardingsphere.driver.orchestration.api.OrchestrationShardingSphereDataSourceFactory;
+import org.apache.shardingsphere.driver.governance.api.GovernanceShardingSphereDataSourceFactory;
import org.apache.shardingsphere.example.config.ExampleConfiguration;
import org.apache.shardingsphere.example.core.api.DataSourceUtil;
import org.apache.shardingsphere.infra.config.algorithm.ShardingSphereAlgorithmConfiguration;
-import org.apache.shardingsphere.orchestration.repository.api.config.OrchestrationConfiguration;
+import org.apache.shardingsphere.governance.repository.api.config.GovernanceConfiguration;
import org.apache.shardingsphere.sharding.api.config.ShardingRuleConfiguration;
import org.apache.shardingsphere.sharding.api.config.rule.ShardingTableRuleConfiguration;
import org.apache.shardingsphere.sharding.api.config.strategy.keygen.KeyGenerateStrategyConfiguration;
@@ -36,10 +36,10 @@ import java.util.Properties;
public final class LocalShardingDatabasesAndTablesConfiguration implements ExampleConfiguration {
- private final OrchestrationConfiguration orchestrationConfiguration;
+ private final GovernanceConfiguration governanceConfiguration;
- public LocalShardingDatabasesAndTablesConfiguration(final OrchestrationConfiguration orchestrationConfiguration) {
- this.orchestrationConfiguration = orchestrationConfiguration;
+ public LocalShardingDatabasesAndTablesConfiguration(final GovernanceConfiguration governanceConfiguration) {
+ this.governanceConfiguration = governanceConfiguration;
}
private static KeyGenerateStrategyConfiguration getKeyGeneratorConfiguration() {
@@ -48,8 +48,8 @@ public final class LocalShardingDatabasesAndTablesConfiguration implements Examp
@Override
public DataSource getDataSource() throws SQLException {
- return OrchestrationShardingSphereDataSourceFactory.createDataSource(
- createDataSourceMap(), Collections.singleton(createShardingRuleConfiguration()), new Properties(), orchestrationConfiguration);
+ return GovernanceShardingSphereDataSourceFactory.createDataSource(
+ createDataSourceMap(), Collections.singleton(createShardingRuleConfiguration()), new Properties(), governanceConfiguration);
}
private ShardingRuleConfiguration createShardingRuleConfiguration() {
diff --git a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/orchestration/raw/jdbc/config/local/LocalShardingDatabasesConfiguration.java b/examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/governance/raw/jdbc/config/local/LocalShardingDatabasesConfiguration.java
similarity index 84%
rename from examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/orchestration/raw/jdbc/config/local/LocalShardingDatabasesConfiguration.java
rename to examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/governance/raw/jdbc/config/local/LocalShardingDatabasesConfiguration.java
index 2fc7611..622531a 100644
--- a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/orchestration/raw/jdbc/config/local/LocalShardingDatabasesConfiguration.java
+++ b/examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/governance/raw/jdbc/config/local/LocalShardingDatabasesConfiguration.java
@@ -15,13 +15,13 @@
* limitations under the License.
*/
-package org.apache.shardingsphere.example.orchestration.raw.jdbc.config.local;
+package org.apache.shardingsphere.example.governance.raw.jdbc.config.local;
-import org.apache.shardingsphere.driver.orchestration.api.OrchestrationShardingSphereDataSourceFactory;
+import org.apache.shardingsphere.driver.governance.api.GovernanceShardingSphereDataSourceFactory;
import org.apache.shardingsphere.example.config.ExampleConfiguration;
import org.apache.shardingsphere.example.core.api.DataSourceUtil;
import org.apache.shardingsphere.infra.config.algorithm.ShardingSphereAlgorithmConfiguration;
-import org.apache.shardingsphere.orchestration.repository.api.config.OrchestrationConfiguration;
+import org.apache.shardingsphere.governance.repository.api.config.GovernanceConfiguration;
import org.apache.shardingsphere.sharding.api.config.ShardingRuleConfiguration;
import org.apache.shardingsphere.sharding.api.config.rule.ShardingTableRuleConfiguration;
import org.apache.shardingsphere.sharding.api.config.strategy.keygen.KeyGenerateStrategyConfiguration;
@@ -36,10 +36,10 @@ import java.util.Properties;
public final class LocalShardingDatabasesConfiguration implements ExampleConfiguration {
- private final OrchestrationConfiguration orchestrationConfiguration;
+ private final GovernanceConfiguration governanceConfiguration;
- public LocalShardingDatabasesConfiguration(final OrchestrationConfiguration orchestrationConfiguration) {
- this.orchestrationConfiguration = orchestrationConfiguration;
+ public LocalShardingDatabasesConfiguration(final GovernanceConfiguration governanceConfiguration) {
+ this.governanceConfiguration = governanceConfiguration;
}
private static KeyGenerateStrategyConfiguration getKeyGeneratorConfiguration() {
@@ -48,8 +48,8 @@ public final class LocalShardingDatabasesConfiguration implements ExampleConfigu
@Override
public DataSource getDataSource() throws SQLException {
- return OrchestrationShardingSphereDataSourceFactory.createDataSource(
- createDataSourceMap(), Collections.singleton(createShardingRuleConfiguration()), new Properties(), orchestrationConfiguration);
+ return GovernanceShardingSphereDataSourceFactory.createDataSource(
+ createDataSourceMap(), Collections.singleton(createShardingRuleConfiguration()), new Properties(), governanceConfiguration);
}
private ShardingRuleConfiguration createShardingRuleConfiguration() {
diff --git a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/orchestration/raw/jdbc/config/local/LocalShardingMasterSlaveConfiguration.java b/examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/governance/raw/jdbc/config/local/LocalShardingMasterSlaveConfiguration.java
similarity index 89%
rename from examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/orchestration/raw/jdbc/config/local/LocalShardingMasterSlaveConfiguration.java
rename to examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/governance/raw/jdbc/config/local/LocalShardingMasterSlaveConfiguration.java
index 9a6f830..2d9f9e8 100644
--- a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/orchestration/raw/jdbc/config/local/LocalShardingMasterSlaveConfiguration.java
+++ b/examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/governance/raw/jdbc/config/local/LocalShardingMasterSlaveConfiguration.java
@@ -15,16 +15,16 @@
* limitations under the License.
*/
-package org.apache.shardingsphere.example.orchestration.raw.jdbc.config.local;
+package org.apache.shardingsphere.example.governance.raw.jdbc.config.local;
-import org.apache.shardingsphere.driver.orchestration.api.OrchestrationShardingSphereDataSourceFactory;
+import org.apache.shardingsphere.driver.governance.api.GovernanceShardingSphereDataSourceFactory;
import org.apache.shardingsphere.example.config.ExampleConfiguration;
import org.apache.shardingsphere.example.core.api.DataSourceUtil;
import org.apache.shardingsphere.infra.config.RuleConfiguration;
import org.apache.shardingsphere.infra.config.algorithm.ShardingSphereAlgorithmConfiguration;
import org.apache.shardingsphere.masterslave.api.config.MasterSlaveRuleConfiguration;
import org.apache.shardingsphere.masterslave.api.config.rule.MasterSlaveDataSourceRuleConfiguration;
-import org.apache.shardingsphere.orchestration.repository.api.config.OrchestrationConfiguration;
+import org.apache.shardingsphere.governance.repository.api.config.GovernanceConfiguration;
import org.apache.shardingsphere.sharding.api.config.ShardingRuleConfiguration;
import org.apache.shardingsphere.sharding.api.config.rule.ShardingTableRuleConfiguration;
import org.apache.shardingsphere.sharding.api.config.strategy.keygen.KeyGenerateStrategyConfiguration;
@@ -42,10 +42,10 @@ import java.util.Properties;
public final class LocalShardingMasterSlaveConfiguration implements ExampleConfiguration {
- private final OrchestrationConfiguration orchestrationConfiguration;
+ private final GovernanceConfiguration governanceConfiguration;
- public LocalShardingMasterSlaveConfiguration(final OrchestrationConfiguration orchestrationConfiguration) {
- this.orchestrationConfiguration = orchestrationConfiguration;
+ public LocalShardingMasterSlaveConfiguration(final GovernanceConfiguration governanceConfiguration) {
+ this.governanceConfiguration = governanceConfiguration;
}
@Override
@@ -53,7 +53,7 @@ public final class LocalShardingMasterSlaveConfiguration implements ExampleConfi
Collection<RuleConfiguration> configurations = new LinkedList<>();
configurations.add(getShardingRuleConfiguration());
configurations.add(getMasterSlaveRuleConfiguration());
- return OrchestrationShardingSphereDataSourceFactory.createDataSource(createDataSourceMap(), configurations, new Properties(), orchestrationConfiguration);
+ return GovernanceShardingSphereDataSourceFactory.createDataSource(createDataSourceMap(), configurations, new Properties(), governanceConfiguration);
}
private ShardingRuleConfiguration getShardingRuleConfiguration() {
diff --git a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/orchestration/raw/jdbc/config/local/LocalShardingTablesConfiguration.java b/examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/governance/raw/jdbc/config/local/LocalShardingTablesConfiguration.java
similarity index 84%
rename from examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/orchestration/raw/jdbc/config/local/LocalShardingTablesConfiguration.java
rename to examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/governance/raw/jdbc/config/local/LocalShardingTablesConfiguration.java
index 01f39ac..8e76e80 100644
--- a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/orchestration/raw/jdbc/config/local/LocalShardingTablesConfiguration.java
+++ b/examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/governance/raw/jdbc/config/local/LocalShardingTablesConfiguration.java
@@ -15,13 +15,13 @@
* limitations under the License.
*/
-package org.apache.shardingsphere.example.orchestration.raw.jdbc.config.local;
+package org.apache.shardingsphere.example.governance.raw.jdbc.config.local;
-import org.apache.shardingsphere.driver.orchestration.api.OrchestrationShardingSphereDataSourceFactory;
+import org.apache.shardingsphere.driver.governance.api.GovernanceShardingSphereDataSourceFactory;
import org.apache.shardingsphere.example.config.ExampleConfiguration;
import org.apache.shardingsphere.example.core.api.DataSourceUtil;
import org.apache.shardingsphere.infra.config.algorithm.ShardingSphereAlgorithmConfiguration;
-import org.apache.shardingsphere.orchestration.repository.api.config.OrchestrationConfiguration;
+import org.apache.shardingsphere.governance.repository.api.config.GovernanceConfiguration;
import org.apache.shardingsphere.sharding.api.config.ShardingRuleConfiguration;
import org.apache.shardingsphere.sharding.api.config.rule.ShardingTableRuleConfiguration;
import org.apache.shardingsphere.sharding.api.config.strategy.keygen.KeyGenerateStrategyConfiguration;
@@ -36,16 +36,16 @@ import java.util.Properties;
public final class LocalShardingTablesConfiguration implements ExampleConfiguration {
- private final OrchestrationConfiguration orchestrationConfiguration;
+ private final GovernanceConfiguration governanceConfiguration;
- public LocalShardingTablesConfiguration(final OrchestrationConfiguration orchestrationConfiguration) {
- this.orchestrationConfiguration = orchestrationConfiguration;
+ public LocalShardingTablesConfiguration(final GovernanceConfiguration governanceConfiguration) {
+ this.governanceConfiguration = governanceConfiguration;
}
@Override
public DataSource getDataSource() throws SQLException {
- return OrchestrationShardingSphereDataSourceFactory.createDataSource(
- createDataSourceMap(), Collections.singleton(createShardingRuleConfiguration()), new Properties(), orchestrationConfiguration);
+ return GovernanceShardingSphereDataSourceFactory.createDataSource(
+ createDataSourceMap(), Collections.singleton(createShardingRuleConfiguration()), new Properties(), governanceConfiguration);
}
private ShardingRuleConfiguration createShardingRuleConfiguration() {
diff --git a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/resources/META-INF/nacos/cloud/encrypt.yaml b/examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/resources/META-INF/nacos/cloud/encrypt.yaml
similarity index 98%
rename from examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/resources/META-INF/nacos/cloud/encrypt.yaml
rename to examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/resources/META-INF/nacos/cloud/encrypt.yaml
index ad128e1..3908b9f 100644
--- a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/resources/META-INF/nacos/cloud/encrypt.yaml
+++ b/examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/resources/META-INF/nacos/cloud/encrypt.yaml
@@ -15,7 +15,7 @@
# limitations under the License.
#
-orchestration:
+governance:
name: demo_zookeeper_yaml_ds_encrypt
registryCenter:
type: ZooKeeper
diff --git a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/resources/META-INF/nacos/cloud/master-slave.yaml b/examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/resources/META-INF/nacos/cloud/master-slave.yaml
similarity index 98%
rename from examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/resources/META-INF/nacos/cloud/master-slave.yaml
rename to examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/resources/META-INF/nacos/cloud/master-slave.yaml
index d2db599..6ebe8ef 100644
--- a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/resources/META-INF/nacos/cloud/master-slave.yaml
+++ b/examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/resources/META-INF/nacos/cloud/master-slave.yaml
@@ -15,7 +15,7 @@
# limitations under the License.
#
-orchestration:
+governance:
name: demo_zookeeper_yaml_ds_ms
registryCenter:
type: ZooKeeper
diff --git a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/resources/META-INF/nacos/cloud/shadow.yaml b/examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/resources/META-INF/nacos/cloud/shadow.yaml
similarity index 98%
rename from examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/resources/META-INF/nacos/cloud/shadow.yaml
rename to examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/resources/META-INF/nacos/cloud/shadow.yaml
index a2f5e5d..19b60a9 100644
--- a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/resources/META-INF/nacos/cloud/shadow.yaml
+++ b/examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/resources/META-INF/nacos/cloud/shadow.yaml
@@ -15,7 +15,7 @@
# limitations under the License.
#
-orchestration:
+governance:
name: demo_zookeeper_yaml_ds_shadow
registryCenter:
type: ZooKeeper
diff --git a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/resources/META-INF/nacos/cloud/sharding-databases-tables.yaml b/examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/resources/META-INF/nacos/cloud/sharding-databases-tables.yaml
similarity index 98%
rename from examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/resources/META-INF/nacos/cloud/sharding-databases-tables.yaml
rename to examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/resources/META-INF/nacos/cloud/sharding-databases-tables.yaml
index cbdce9e..33e8e6e 100644
--- a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/resources/META-INF/nacos/cloud/sharding-databases-tables.yaml
+++ b/examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/resources/META-INF/nacos/cloud/sharding-databases-tables.yaml
@@ -15,7 +15,7 @@
# limitations under the License.
#
-orchestration:
+governance:
name: demo_zookeeper_yaml_ds_sharding
registryCenter:
type: ZooKeeper
diff --git a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/resources/META-INF/nacos/local/encrypt.yaml b/examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/resources/META-INF/nacos/local/encrypt.yaml
similarity index 99%
rename from examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/resources/META-INF/nacos/local/encrypt.yaml
rename to examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/resources/META-INF/nacos/local/encrypt.yaml
index ff648ea..9276f19 100644
--- a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/resources/META-INF/nacos/local/encrypt.yaml
+++ b/examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/resources/META-INF/nacos/local/encrypt.yaml
@@ -40,7 +40,7 @@ props:
query.with.cipher.column: true
sql.show: false
-orchestration:
+governance:
name: demo_zookeeper_yaml_ds_encrypt
registryCenter:
type: ZooKeeper
diff --git a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/resources/META-INF/nacos/local/master-slave.yaml b/examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/resources/META-INF/nacos/local/master-slave.yaml
similarity index 99%
rename from examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/resources/META-INF/nacos/local/master-slave.yaml
rename to examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/resources/META-INF/nacos/local/master-slave.yaml
index 7186c49..40cf278 100644
--- a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/resources/META-INF/nacos/local/master-slave.yaml
+++ b/examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/resources/META-INF/nacos/local/master-slave.yaml
@@ -43,7 +43,7 @@ rules:
props:
sql.show: true
-orchestration:
+governance:
name: demo_zookeeper_yaml_ds_ms
registryCenter:
type: ZooKeeper
diff --git a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/resources/META-INF/nacos/local/shadow.yaml b/examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/resources/META-INF/nacos/local/shadow.yaml
similarity index 99%
rename from examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/resources/META-INF/nacos/local/shadow.yaml
rename to examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/resources/META-INF/nacos/local/shadow.yaml
index d1317ca..fe11ee7 100644
--- a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/resources/META-INF/nacos/local/shadow.yaml
+++ b/examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/resources/META-INF/nacos/local/shadow.yaml
@@ -15,7 +15,7 @@
# limitations under the License.
#
-orchestration:
+governance:
name: demo_zookeeper_yaml_ds_shadow
registryCenter:
type: ZooKeeper
diff --git a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/resources/META-INF/nacos/local/sharding-databases-tables.yaml b/examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/resources/META-INF/nacos/local/sharding-databases-tables.yaml
similarity index 99%
rename from examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/resources/META-INF/nacos/local/sharding-databases-tables.yaml
rename to examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/resources/META-INF/nacos/local/sharding-databases-tables.yaml
index 51208bb..59fedba 100644
--- a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/resources/META-INF/nacos/local/sharding-databases-tables.yaml
+++ b/examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/resources/META-INF/nacos/local/sharding-databases-tables.yaml
@@ -80,7 +80,7 @@ rules:
props:
sql.show: true
-orchestration:
+governance:
name: demo_zookeeper_yaml_ds_sharding
registryCenter:
type: ZooKeeper
diff --git a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/resources/META-INF/zookeeper/cloud/encrypt.yaml b/examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/resources/META-INF/zookeeper/cloud/encrypt.yaml
similarity index 98%
rename from examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/resources/META-INF/zookeeper/cloud/encrypt.yaml
rename to examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/resources/META-INF/zookeeper/cloud/encrypt.yaml
index acf450d..94cf820 100644
--- a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/resources/META-INF/zookeeper/cloud/encrypt.yaml
+++ b/examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/resources/META-INF/zookeeper/cloud/encrypt.yaml
@@ -15,7 +15,7 @@
# limitations under the License.
#
-orchestration:
+governance:
name: demo_yaml_ds_encrypt
registryCenter:
type: ZooKeeper
diff --git a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/resources/META-INF/zookeeper/cloud/master-slave.yaml b/examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/resources/META-INF/zookeeper/cloud/master-slave.yaml
similarity index 98%
rename from examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/resources/META-INF/zookeeper/cloud/master-slave.yaml
rename to examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/resources/META-INF/zookeeper/cloud/master-slave.yaml
index 13f3b97..e4d1c25 100644
--- a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/resources/META-INF/zookeeper/cloud/master-slave.yaml
+++ b/examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/resources/META-INF/zookeeper/cloud/master-slave.yaml
@@ -15,7 +15,7 @@
# limitations under the License.
#
-orchestration:
+governance:
name: demo_yaml_ds_ms
registryCenter:
type: ZooKeeper
diff --git a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/resources/META-INF/zookeeper/cloud/shadow.yaml b/examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/resources/META-INF/zookeeper/cloud/shadow.yaml
similarity index 98%
rename from examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/resources/META-INF/zookeeper/cloud/shadow.yaml
rename to examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/resources/META-INF/zookeeper/cloud/shadow.yaml
index 1200ca1..cf8814e 100644
--- a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/resources/META-INF/zookeeper/cloud/shadow.yaml
+++ b/examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/resources/META-INF/zookeeper/cloud/shadow.yaml
@@ -15,7 +15,7 @@
# limitations under the License.
#
-orchestration:
+governance:
name: demo_yaml_ds_shadow
registryCenter:
type: ZooKeeper
diff --git a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/resources/META-INF/zookeeper/cloud/sharding-databases-tables.yaml b/examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/resources/META-INF/zookeeper/cloud/sharding-databases-tables.yaml
similarity index 98%
rename from examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/resources/META-INF/zookeeper/cloud/sharding-databases-tables.yaml
rename to examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/resources/META-INF/zookeeper/cloud/sharding-databases-tables.yaml
index f40cba6..3607a37 100644
--- a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/resources/META-INF/zookeeper/cloud/sharding-databases-tables.yaml
+++ b/examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/resources/META-INF/zookeeper/cloud/sharding-databases-tables.yaml
@@ -15,7 +15,7 @@
# limitations under the License.
#
-orchestration:
+governance:
name: demo_yaml_ds_sharding
registryCenter:
type: ZooKeeper
diff --git a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/resources/META-INF/zookeeper/local/encrypt.yaml b/examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/resources/META-INF/zookeeper/local/encrypt.yaml
similarity index 98%
rename from examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/resources/META-INF/zookeeper/local/encrypt.yaml
rename to examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/resources/META-INF/zookeeper/local/encrypt.yaml
index 64815b2..a7132a3 100644
--- a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/resources/META-INF/zookeeper/local/encrypt.yaml
+++ b/examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/resources/META-INF/zookeeper/local/encrypt.yaml
@@ -15,7 +15,7 @@
# limitations under the License.
#
-orchestration:
+governance:
name: demo_yaml_ds_encrypt
registryCenter:
type: ZooKeeper
diff --git a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/resources/META-INF/zookeeper/local/master-slave.yaml b/examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/resources/META-INF/zookeeper/local/master-slave.yaml
similarity index 99%
rename from examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/resources/META-INF/zookeeper/local/master-slave.yaml
rename to examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/resources/META-INF/zookeeper/local/master-slave.yaml
index 879b405..755c87b 100644
--- a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/resources/META-INF/zookeeper/local/master-slave.yaml
+++ b/examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/resources/META-INF/zookeeper/local/master-slave.yaml
@@ -15,7 +15,7 @@
# limitations under the License.
#
-orchestration:
+governance:
name: demo_yaml_ds_ms
registryCenter:
type: ZooKeeper
diff --git a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/resources/META-INF/zookeeper/local/shadow.yaml b/examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/resources/META-INF/zookeeper/local/shadow.yaml
similarity index 98%
rename from examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/resources/META-INF/zookeeper/local/shadow.yaml
rename to examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/resources/META-INF/zookeeper/local/shadow.yaml
index 62c550c..4b15bce 100644
--- a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/resources/META-INF/zookeeper/local/shadow.yaml
+++ b/examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/resources/META-INF/zookeeper/local/shadow.yaml
@@ -15,7 +15,7 @@
# limitations under the License.
#
-orchestration:
+governance:
name: demo_yaml_ds_shadow
registryCenter:
type: ZooKeeper
diff --git a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/resources/META-INF/zookeeper/local/sharding-databases-tables.yaml b/examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/resources/META-INF/zookeeper/local/sharding-databases-tables.yaml
similarity index 99%
rename from examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/resources/META-INF/zookeeper/local/sharding-databases-tables.yaml
rename to examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/resources/META-INF/zookeeper/local/sharding-databases-tables.yaml
index f4c1c74..0d1bc3f 100644
--- a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/resources/META-INF/zookeeper/local/sharding-databases-tables.yaml
+++ b/examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/resources/META-INF/zookeeper/local/sharding-databases-tables.yaml
@@ -15,7 +15,7 @@
# limitations under the License.
#
-orchestration:
+governance:
name: demo_yaml_ds_sharding
registryCenter:
type: ZooKeeper
diff --git a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/resources/logback.xml b/examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/resources/logback.xml
similarity index 92%
rename from examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/resources/logback.xml
rename to examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/resources/logback.xml
index d5a1c7d..84169ee 100644
--- a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/resources/logback.xml
+++ b/examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/resources/logback.xml
@@ -17,7 +17,7 @@
-->
<configuration>
- <property name="log.context.name" value="shardingsphere-orchestration-zookeeper-raw-jdbc-quickstart" />
+ <property name="log.context.name" value="shardingsphere-governance-zookeeper-raw-jdbc-quickstart" />
<property name="log.charset" value="UTF-8" />
<property name="log.pattern" value="[%-5level] %date --%thread-- [%logger] %msg %n" />
<contextName>${log.context.name}</contextName>
diff --git a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-boot-example/pom.xml b/examples/shardingsphere-jdbc-example/governance-example/governance-spring-boot-example/pom.xml
similarity index 85%
rename from examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-boot-example/pom.xml
rename to examples/shardingsphere-jdbc-example/governance-example/governance-spring-boot-example/pom.xml
index 7a94697..5cc09e5 100644
--- a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-boot-example/pom.xml
+++ b/examples/shardingsphere-jdbc-example/governance-example/governance-spring-boot-example/pom.xml
@@ -22,10 +22,10 @@
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.apache.shardingsphere.example</groupId>
- <artifactId>orchestration-example</artifactId>
+ <artifactId>governance-example</artifactId>
<version>5.0.0-RC1-SNAPSHOT</version>
</parent>
- <artifactId>orchestration-spring-boot-example</artifactId>
+ <artifactId>governance-spring-boot-example</artifactId>
<name>${project.artifactId}</name>
<dependencies>
@@ -36,15 +36,15 @@
</dependency>
<dependency>
<groupId>org.apache.shardingsphere</groupId>
- <artifactId>shardingsphere-jdbc-orchestration-spring-boot-starter</artifactId>
+ <artifactId>shardingsphere-jdbc-governance-spring-boot-starter</artifactId>
</dependency>
<dependency>
<groupId>org.apache.shardingsphere</groupId>
- <artifactId>shardingsphere-orchestration-repository-zookeeper-curator</artifactId>
+ <artifactId>shardingsphere-governance-repository-zookeeper-curator</artifactId>
</dependency>
<dependency>
<groupId>org.apache.shardingsphere</groupId>
- <artifactId>shardingsphere-orchestration-repository-nacos</artifactId>
+ <artifactId>shardingsphere-governance-repository-nacos</artifactId>
</dependency>
<dependency>
<groupId>com.alibaba.nacos</groupId>
diff --git a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-boot-example/src/main/java/org/apache/shardingsphere/example/orchestration/spring/boot/ExampleMain.java b/examples/shardingsphere-jdbc-example/governance-example/governance-spring-boot-example/src/main/java/org/apache/shardingsphere/example/governance/spring/boot/ExampleMain.java
similarity index 96%
rename from examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-boot-example/src/main/java/org/apache/shardingsphere/example/orchestration/spring/boot/ExampleMain.java
rename to examples/shardingsphere-jdbc-example/governance-example/governance-spring-boot-example/src/main/java/org/apache/shardingsphere/example/governance/spring/boot/ExampleMain.java
index 4a18c3b..e47ff3f 100644
--- a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-boot-example/src/main/java/org/apache/shardingsphere/example/orchestration/spring/boot/ExampleMain.java
+++ b/examples/shardingsphere-jdbc-example/governance-example/governance-spring-boot-example/src/main/java/org/apache/shardingsphere/example/governance/spring/boot/ExampleMain.java
@@ -15,7 +15,7 @@
* limitations under the License.
*/
-package org.apache.shardingsphere.example.orchestration.spring.boot;
+package org.apache.shardingsphere.example.governance.spring.boot;
import org.apache.shardingsphere.example.core.api.ExampleExecuteTemplate;
import org.apache.shardingsphere.example.core.api.service.ExampleService;
diff --git a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-boot-example/src/main/resources/application-cloud-nacos-master-slave.properties b/examples/shardingsphere-jdbc-example/governance-example/governance-spring-boot-example/src/main/resources/application-cloud-nacos-encrypt.properties
similarity index 54%
rename from examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-boot-example/src/main/resources/application-cloud-nacos-master-slave.properties
rename to examples/shardingsphere-jdbc-example/governance-example/governance-spring-boot-example/src/main/resources/application-cloud-nacos-encrypt.properties
index aad34ff..2894a1c 100644
--- a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-boot-example/src/main/resources/application-cloud-nacos-master-slave.properties
+++ b/examples/shardingsphere-jdbc-example/governance-example/governance-spring-boot-example/src/main/resources/application-cloud-nacos-encrypt.properties
@@ -13,15 +13,15 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-#
+#GovernanceSpringBootRegistryShardingTest
-spring.shardingsphere.orchestration.name=demo1_spring_boot_ds_ms
-spring.shardingsphere.orchestration.overwrite=false
+spring.shardingsphere.governance.name=demo1_spring_boot_ds_encrypt
+spring.shardingsphere.governance.overwrite=false
-spring.shardingsphere.orchestration.registry-center.type=ZooKeeper
-spring.shardingsphere.orchestration.registry-center.server-lists=localhost:2181
+spring.shardingsphere.governance.registry-center.type=ZooKeeper
+spring.shardingsphere.governance.registry-center.server-lists=localhost:2181
-spring.shardingsphere.orchestration.additional-config-center.type=Nacos
-spring.shardingsphere.orchestration.additional-config-center.server-lists=localhost:8848
-spring.shardingsphere.orchestration.additional-config-center.props.group=SHARDING_SPHERE_DEFAULT_GROUP
-spring.shardingsphere.orchestration.additional-config-center.props.operationTimeoutMilliseconds=3000
+spring.shardingsphere.governance.additional-config-center.type=Nacos
+spring.shardingsphere.governance.additional-config-center.server-lists=localhost:8848
+spring.shardingsphere.governance.additional-config-center.props.group=SHARDING_SPHERE_DEFAULT_GROUP
+spring.shardingsphere.governance.additional-config-center.props.operationTimeoutMilliseconds=3000
diff --git a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-boot-example/src/main/resources/application-cloud-zookeeper-master-slave.properties b/examples/shardingsphere-jdbc-example/governance-example/governance-spring-boot-example/src/main/resources/application-cloud-nacos-master-slave.properties
similarity index 56%
rename from examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-boot-example/src/main/resources/application-cloud-zookeeper-master-slave.properties
rename to examples/shardingsphere-jdbc-example/governance-example/governance-spring-boot-example/src/main/resources/application-cloud-nacos-master-slave.properties
index b0a9381..10b8252 100644
--- a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-boot-example/src/main/resources/application-cloud-zookeeper-master-slave.properties
+++ b/examples/shardingsphere-jdbc-example/governance-example/governance-spring-boot-example/src/main/resources/application-cloud-nacos-master-slave.properties
@@ -15,8 +15,13 @@
# limitations under the License.
#
-spring.shardingsphere.orchestration.name=demo_spring_boot_ds_ms
-spring.shardingsphere.orchestration.overwrite=false
+spring.shardingsphere.governance.name=demo1_spring_boot_ds_ms
+spring.shardingsphere.governance.overwrite=false
-spring.shardingsphere.orchestration.registry-center.type=ZooKeeper
-spring.shardingsphere.orchestration.registry-center.server-lists=localhost:2181
+spring.shardingsphere.governance.registry-center.type=ZooKeeper
+spring.shardingsphere.governance.registry-center.server-lists=localhost:2181
+
+spring.shardingsphere.governance.additional-config-center.type=Nacos
+spring.shardingsphere.governance.additional-config-center.server-lists=localhost:8848
+spring.shardingsphere.governance.additional-config-center.props.group=SHARDING_SPHERE_DEFAULT_GROUP
+spring.shardingsphere.governance.additional-config-center.props.operationTimeoutMilliseconds=3000
diff --git a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-boot-example/src/main/resources/application-cloud-zookeeper-shadow.properties b/examples/shardingsphere-jdbc-example/governance-example/governance-spring-boot-example/src/main/resources/application-cloud-nacos-shadow.properties
similarity index 56%
rename from examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-boot-example/src/main/resources/application-cloud-zookeeper-shadow.properties
rename to examples/shardingsphere-jdbc-example/governance-example/governance-spring-boot-example/src/main/resources/application-cloud-nacos-shadow.properties
index fd5ddbb..d4b6607 100644
--- a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-boot-example/src/main/resources/application-cloud-zookeeper-shadow.properties
+++ b/examples/shardingsphere-jdbc-example/governance-example/governance-spring-boot-example/src/main/resources/application-cloud-nacos-shadow.properties
@@ -15,8 +15,13 @@
# limitations under the License.
#
-spring.shardingsphere.orchestration.name=demo_spring_boot_ds_shadow
-spring.shardingsphere.orchestration.overwrite=false
+spring.shardingsphere.governance.name=demo1_spring_boot_ds_shadow
+spring.shardingsphere.governance.overwrite=false
-spring.shardingsphere.orchestration.registry-center.type=ZooKeeper
-spring.shardingsphere.orchestration.registry-center.server-lists=localhost:2181
+spring.shardingsphere.governance.registry-center.type=ZooKeeper
+spring.shardingsphere.governance.registry-center.server-lists=localhost:2181
+
+spring.shardingsphere.governance.additional-config-center.type=Nacos
+spring.shardingsphere.governance.additional-config-center.server-lists=localhost:8848
+spring.shardingsphere.governance.additional-config-center.props.group=SHARDING_SPHERE_DEFAULT_GROUP
+spring.shardingsphere.governance.additional-config-center.props.operationTimeoutMilliseconds=3000
diff --git a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-boot-example/src/main/resources/application-cloud-zookeeper-encrypt.properties b/examples/shardingsphere-jdbc-example/governance-example/governance-spring-boot-example/src/main/resources/application-cloud-nacos-sharding-databases-tables.properties
similarity index 56%
rename from examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-boot-example/src/main/resources/application-cloud-zookeeper-encrypt.properties
rename to examples/shardingsphere-jdbc-example/governance-example/governance-spring-boot-example/src/main/resources/application-cloud-nacos-sharding-databases-tables.properties
index 7097e8b..9449bc6 100644
--- a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-boot-example/src/main/resources/application-cloud-zookeeper-encrypt.properties
+++ b/examples/shardingsphere-jdbc-example/governance-example/governance-spring-boot-example/src/main/resources/application-cloud-nacos-sharding-databases-tables.properties
@@ -15,8 +15,13 @@
# limitations under the License.
#
-spring.shardingsphere.orchestration.name=demo_spring_boot_ds_encrypt
-spring.shardingsphere.orchestration.overwrite=false
+spring.shardingsphere.governance.name=demo1_spring_boot_ds_sharding
+spring.shardingsphere.governance.overwrite=false
-spring.shardingsphere.orchestration.registry-center.type=ZooKeeper
-spring.shardingsphere.orchestration.registry-center.server-lists=localhost:2181
+spring.shardingsphere.governance.registry-center.type=ZooKeeper
+spring.shardingsphere.governance.registry-center.server-lists=localhost:2181
+
+spring.shardingsphere.governance.additional-config-center.type=Nacos
+spring.shardingsphere.governance.additional-config-center.server-lists=localhost:8848
+spring.shardingsphere.governance.additional-config-center.group=SHARDING_SPHERE_DEFAULT_GROUP
+spring.shardingsphere.governance.additional-config-center.operationTimeoutMilliseconds=3000
diff --git a/examples/docker/sharding-proxy/orchestration/stop.sh b/examples/shardingsphere-jdbc-example/governance-example/governance-spring-boot-example/src/main/resources/application-cloud-zookeeper-encrypt.properties
similarity index 75%
copy from examples/docker/sharding-proxy/orchestration/stop.sh
copy to examples/shardingsphere-jdbc-example/governance-example/governance-spring-boot-example/src/main/resources/application-cloud-zookeeper-encrypt.properties
index fcf30fd..ea7791b 100644
--- a/examples/docker/sharding-proxy/orchestration/stop.sh
+++ b/examples/shardingsphere-jdbc-example/governance-example/governance-spring-boot-example/src/main/resources/application-cloud-zookeeper-encrypt.properties
@@ -1,4 +1,3 @@
-#!/usr/bin/env bash
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
@@ -16,4 +15,8 @@
# limitations under the License.
#
-docker-compose down
+spring.shardingsphere.governance.name=demo_spring_boot_ds_encrypt
+spring.shardingsphere.governance.overwrite=false
+
+spring.shardingsphere.governance.registry-center.type=ZooKeeper
+spring.shardingsphere.governance.registry-center.server-lists=localhost:2181
diff --git a/examples/docker/sharding-proxy/orchestration/stop.sh b/examples/shardingsphere-jdbc-example/governance-example/governance-spring-boot-example/src/main/resources/application-cloud-zookeeper-master-slave.properties
similarity index 75%
copy from examples/docker/sharding-proxy/orchestration/stop.sh
copy to examples/shardingsphere-jdbc-example/governance-example/governance-spring-boot-example/src/main/resources/application-cloud-zookeeper-master-slave.properties
index fcf30fd..4655970 100644
--- a/examples/docker/sharding-proxy/orchestration/stop.sh
+++ b/examples/shardingsphere-jdbc-example/governance-example/governance-spring-boot-example/src/main/resources/application-cloud-zookeeper-master-slave.properties
@@ -1,4 +1,3 @@
-#!/usr/bin/env bash
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
@@ -16,4 +15,8 @@
# limitations under the License.
#
-docker-compose down
+spring.shardingsphere.governance.name=demo_spring_boot_ds_ms
+spring.shardingsphere.governance.overwrite=false
+
+spring.shardingsphere.governance.registry-center.type=ZooKeeper
+spring.shardingsphere.governance.registry-center.server-lists=localhost:2181
diff --git a/examples/docker/sharding-proxy/orchestration/stop.sh b/examples/shardingsphere-jdbc-example/governance-example/governance-spring-boot-example/src/main/resources/application-cloud-zookeeper-shadow.properties
similarity index 75%
copy from examples/docker/sharding-proxy/orchestration/stop.sh
copy to examples/shardingsphere-jdbc-example/governance-example/governance-spring-boot-example/src/main/resources/application-cloud-zookeeper-shadow.properties
index fcf30fd..98ddd46 100644
--- a/examples/docker/sharding-proxy/orchestration/stop.sh
+++ b/examples/shardingsphere-jdbc-example/governance-example/governance-spring-boot-example/src/main/resources/application-cloud-zookeeper-shadow.properties
@@ -1,4 +1,3 @@
-#!/usr/bin/env bash
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
@@ -16,4 +15,8 @@
# limitations under the License.
#
-docker-compose down
+spring.shardingsphere.governance.name=demo_spring_boot_ds_shadow
+spring.shardingsphere.governance.overwrite=false
+
+spring.shardingsphere.governance.registry-center.type=ZooKeeper
+spring.shardingsphere.governance.registry-center.server-lists=localhost:2181
diff --git a/examples/docker/sharding-proxy/orchestration/stop.sh b/examples/shardingsphere-jdbc-example/governance-example/governance-spring-boot-example/src/main/resources/application-cloud-zookeeper-sharding-databases-tables.properties
similarity index 75%
rename from examples/docker/sharding-proxy/orchestration/stop.sh
rename to examples/shardingsphere-jdbc-example/governance-example/governance-spring-boot-example/src/main/resources/application-cloud-zookeeper-sharding-databases-tables.properties
index fcf30fd..7d1e76d 100644
--- a/examples/docker/sharding-proxy/orchestration/stop.sh
+++ b/examples/shardingsphere-jdbc-example/governance-example/governance-spring-boot-example/src/main/resources/application-cloud-zookeeper-sharding-databases-tables.properties
@@ -1,4 +1,3 @@
-#!/usr/bin/env bash
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
@@ -16,4 +15,8 @@
# limitations under the License.
#
-docker-compose down
+spring.shardingsphere.governance.name=demo_spring_boot_ds_sharding
+spring.shardingsphere.governance.overwrite=false
+
+spring.shardingsphere.governance.registry-center.type=ZooKeeper
+spring.shardingsphere.governance.registry-center.server-lists=localhost:2181
diff --git a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-boot-example/src/main/resources/application-local-nacos-encrypt.properties b/examples/shardingsphere-jdbc-example/governance-example/governance-spring-boot-example/src/main/resources/application-local-nacos-encrypt.properties
similarity index 79%
rename from examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-boot-example/src/main/resources/application-local-nacos-encrypt.properties
rename to examples/shardingsphere-jdbc-example/governance-example/governance-spring-boot-example/src/main/resources/application-local-nacos-encrypt.properties
index dfa980a..17bce55 100644
--- a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-boot-example/src/main/resources/application-local-nacos-encrypt.properties
+++ b/examples/shardingsphere-jdbc-example/governance-example/governance-spring-boot-example/src/main/resources/application-local-nacos-encrypt.properties
@@ -31,11 +31,11 @@ spring.shardingsphere.rules.encrypt.tables.t_order.columns.status.encryptor-name
spring.shardingsphere.props.query.with.cipher.comlum=true
spring.shardingsphere.props.sql.show=true
-spring.shardingsphere.orchestration.name=demo1_spring_boot_ds_encrypt
-spring.shardingsphere.orchestration.overwrite=true
+spring.shardingsphere.governance.name=demo1_spring_boot_ds_encrypt
+spring.shardingsphere.governance.overwrite=true
-spring.shardingsphere.orchestration.registry-center.type=ZooKeeper
-spring.shardingsphere.orchestration.registry-center.server-lists=localhost:2181
+spring.shardingsphere.governance.registry-center.type=ZooKeeper
+spring.shardingsphere.governance.registry-center.server-lists=localhost:2181
-spring.shardingsphere.orchestration.additional-config-center.type=Nacos
-spring.shardingsphere.orchestration.additional-config-center.server-lists=localhost:8848
+spring.shardingsphere.governance.additional-config-center.type=Nacos
+spring.shardingsphere.governance.additional-config-center.server-lists=localhost:8848
diff --git a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-boot-example/src/main/resources/application-local-nacos-master-slave.properties b/examples/shardingsphere-jdbc-example/governance-example/governance-spring-boot-example/src/main/resources/application-local-nacos-master-slave.properties
similarity index 80%
rename from examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-boot-example/src/main/resources/application-local-nacos-master-slave.properties
rename to examples/shardingsphere-jdbc-example/governance-example/governance-spring-boot-example/src/main/resources/application-local-nacos-master-slave.properties
index 41f6e98..cd5d9c8 100644
--- a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-boot-example/src/main/resources/application-local-nacos-master-slave.properties
+++ b/examples/shardingsphere-jdbc-example/governance-example/governance-spring-boot-example/src/main/resources/application-local-nacos-master-slave.properties
@@ -33,11 +33,11 @@ spring.shardingsphere.rules.master-slave.data-sources.ds_ms.master-data-source-n
spring.shardingsphere.rules.master-slave.data-sources.ds_ms.slave-data-source-names=ds_slave_0,ds_slave_1
spring.shardingsphere.rules.master-slave.data-sources.ds_ms.load-balancer-name=round_robin
-spring.shardingsphere.orchestration.name=demo1_spring_boot_ds_ms
-spring.shardingsphere.orchestration.overwrite=true
+spring.shardingsphere.governance.name=demo1_spring_boot_ds_ms
+spring.shardingsphere.governance.overwrite=true
-spring.shardingsphere.orchestration.additional-config-center.type=Nacos
-spring.shardingsphere.orchestration.additional-config-center.server-lists=localhost:8848
+spring.shardingsphere.governance.additional-config-center.type=Nacos
+spring.shardingsphere.governance.additional-config-center.server-lists=localhost:8848
-spring.shardingsphere.orchestration.registry-center.type=ZooKeeper
-spring.shardingsphere.orchestration.registry-center.server-lists=localhost:2181
+spring.shardingsphere.governance.registry-center.type=ZooKeeper
+spring.shardingsphere.governance.registry-center.server-lists=localhost:2181
diff --git a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-boot-example/src/main/resources/application-local-nacos-shadow.properties b/examples/shardingsphere-jdbc-example/governance-example/governance-spring-boot-example/src/main/resources/application-local-nacos-shadow.properties
similarity index 77%
rename from examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-boot-example/src/main/resources/application-local-nacos-shadow.properties
rename to examples/shardingsphere-jdbc-example/governance-example/governance-spring-boot-example/src/main/resources/application-local-nacos-shadow.properties
index 44dc7f3..531e723 100644
--- a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-boot-example/src/main/resources/application-local-nacos-shadow.properties
+++ b/examples/shardingsphere-jdbc-example/governance-example/governance-spring-boot-example/src/main/resources/application-local-nacos-shadow.properties
@@ -31,11 +31,11 @@ spring.shardingsphere.rules.shadow.shadow-mappings.ds=shadow_ds
spring.shardingsphere.props.sql.show=true
-spring.shardingsphere.orchestration.name=demo1_spring_boot_ds_shadow
-spring.shardingsphere.orchestration.overwrite=true
+spring.shardingsphere.governance.name=demo1_spring_boot_ds_shadow
+spring.shardingsphere.governance.overwrite=true
-spring.shardingsphere.orchestration.registry-center.type=ZooKeeper
-spring.shardingsphere.orchestration.registry-center.server-lists=localhost:2181
+spring.shardingsphere.governance.registry-center.type=ZooKeeper
+spring.shardingsphere.governance.registry-center.server-lists=localhost:2181
-spring.shardingsphere.orchestration.additional-config-center.type=Nacos
-spring.shardingsphere.orchestration.additional-config-center.server-lists=localhost:8848
+spring.shardingsphere.governance.additional-config-center.type=Nacos
+spring.shardingsphere.governance.additional-config-center.server-lists=localhost:8848
diff --git a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-boot-example/src/main/resources/application-local-nacos-sharding-databases-tables.properties b/examples/shardingsphere-jdbc-example/governance-example/governance-spring-boot-example/src/main/resources/application-local-nacos-sharding-databases-tables.properties
similarity index 89%
rename from examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-boot-example/src/main/resources/application-local-nacos-sharding-databases-tables.properties
rename to examples/shardingsphere-jdbc-example/governance-example/governance-spring-boot-example/src/main/resources/application-local-nacos-sharding-databases-tables.properties
index cf1ee7a..72a5a18 100644
--- a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-boot-example/src/main/resources/application-local-nacos-sharding-databases-tables.properties
+++ b/examples/shardingsphere-jdbc-example/governance-example/governance-spring-boot-example/src/main/resources/application-local-nacos-sharding-databases-tables.properties
@@ -57,11 +57,11 @@ spring.shardingsphere.rules.sharding.sharding-algorithms.t_order_item_inline.pro
spring.shardingsphere.rules.sharding.key-generators.snowflake.type=SNOWFLAKE
spring.shardingsphere.rules.sharding.key-generators.snowflake.props.worker.id=123
-spring.shardingsphere.orchestration.name=demo1_spring_boot_ds_sharding
-spring.shardingsphere.orchestration.overwrite=true
+spring.shardingsphere.governance.name=demo1_spring_boot_ds_sharding
+spring.shardingsphere.governance.overwrite=true
-spring.shardingsphere.orchestration.registry-center.type=ZooKeeper
-spring.shardingsphere.orchestration.registry-center.server-lists=localhost:2181
+spring.shardingsphere.governance.registry-center.type=ZooKeeper
+spring.shardingsphere.governance.registry-center.server-lists=localhost:2181
-spring.shardingsphere.orchestration.additional-config-center.type=Nacos
-spring.shardingsphere.orchestration.additional-config-center.server-lists=localhost:8848
+spring.shardingsphere.governance.additional-config-center.type=Nacos
+spring.shardingsphere.governance.additional-config-center.server-lists=localhost:8848
diff --git a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-boot-example/src/main/resources/application-local-zookeeper-encrypt.properties b/examples/shardingsphere-jdbc-example/governance-example/governance-spring-boot-example/src/main/resources/application-local-zookeeper-encrypt.properties
similarity index 86%
rename from examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-boot-example/src/main/resources/application-local-zookeeper-encrypt.properties
rename to examples/shardingsphere-jdbc-example/governance-example/governance-spring-boot-example/src/main/resources/application-local-zookeeper-encrypt.properties
index d9d72d2..72f0f1d 100644
--- a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-boot-example/src/main/resources/application-local-zookeeper-encrypt.properties
+++ b/examples/shardingsphere-jdbc-example/governance-example/governance-spring-boot-example/src/main/resources/application-local-zookeeper-encrypt.properties
@@ -31,9 +31,9 @@ spring.shardingsphere.rules.encrypt.tables.t_order.columns.status.encryptor-name
spring.shardingsphere.props.query.with.cipher.comlum=true
spring.shardingsphere.props.sql.show=true
-spring.shardingsphere.orchestration.name=demo_spring_boot_ds_encrypt
-spring.shardingsphere.orchestration.overwrite=true
+spring.shardingsphere.governance.name=demo_spring_boot_ds_encrypt
+spring.shardingsphere.governance.overwrite=true
-spring.shardingsphere.orchestration.registry-center.type=ZooKeeper
-spring.shardingsphere.orchestration.registry-center.server-lists=localhost:2181
+spring.shardingsphere.governance.registry-center.type=ZooKeeper
+spring.shardingsphere.governance.registry-center.server-lists=localhost:2181
diff --git a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-boot-example/src/main/resources/application-local-zookeeper-master-slave.properties b/examples/shardingsphere-jdbc-example/governance-example/governance-spring-boot-example/src/main/resources/application-local-zookeeper-master-slave.properties
similarity index 87%
rename from examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-boot-example/src/main/resources/application-local-zookeeper-master-slave.properties
rename to examples/shardingsphere-jdbc-example/governance-example/governance-spring-boot-example/src/main/resources/application-local-zookeeper-master-slave.properties
index 6329961..1eaa79c 100644
--- a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-boot-example/src/main/resources/application-local-zookeeper-master-slave.properties
+++ b/examples/shardingsphere-jdbc-example/governance-example/governance-spring-boot-example/src/main/resources/application-local-zookeeper-master-slave.properties
@@ -33,9 +33,9 @@ spring.shardingsphere.rules.master-slave.data-sources.ds_ms.master-data-source-n
spring.shardingsphere.rules.master-slave.data-sources.ds_ms.slave-data-source-names=ds_slave_0,ds_slave_1
spring.shardingsphere.rules.master-slave.data-sources.ds_ms.load-balancer-name=round_robin
-spring.shardingsphere.orchestration.name=demo_spring_boot_ds_ms
-spring.shardingsphere.orchestration.overwrite=true
+spring.shardingsphere.governance.name=demo_spring_boot_ds_ms
+spring.shardingsphere.governance.overwrite=true
-spring.shardingsphere.orchestration.registry-center.type=ZooKeeper
-spring.shardingsphere.orchestration.registry-center.server-lists=localhost:2181
+spring.shardingsphere.governance.registry-center.type=ZooKeeper
+spring.shardingsphere.governance.registry-center.server-lists=localhost:2181
diff --git a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-boot-example/src/main/resources/application-local-zookeeper-shadow.properties b/examples/shardingsphere-jdbc-example/governance-example/governance-spring-boot-example/src/main/resources/application-local-zookeeper-shadow.properties
similarity index 84%
rename from examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-boot-example/src/main/resources/application-local-zookeeper-shadow.properties
rename to examples/shardingsphere-jdbc-example/governance-example/governance-spring-boot-example/src/main/resources/application-local-zookeeper-shadow.properties
index 82b5447..cba2c96 100644
--- a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-boot-example/src/main/resources/application-local-zookeeper-shadow.properties
+++ b/examples/shardingsphere-jdbc-example/governance-example/governance-spring-boot-example/src/main/resources/application-local-zookeeper-shadow.properties
@@ -31,8 +31,8 @@ spring.shardingsphere.rules.shadow.shadow-mappings.ds=shadow_ds
spring.shardingsphere.props.sql.show=true
-spring.shardingsphere.orchestration.name=demo_spring_boot_ds_shadow
-spring.shardingsphere.orchestration.overwrite=true
+spring.shardingsphere.governance.name=demo_spring_boot_ds_shadow
+spring.shardingsphere.governance.overwrite=true
-spring.shardingsphere.orchestration.registry-center.type=ZooKeeper
-spring.shardingsphere.orchestration.registry-center.server-lists=localhost:2181
+spring.shardingsphere.governance.registry-center.type=ZooKeeper
+spring.shardingsphere.governance.registry-center.server-lists=localhost:2181
diff --git a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-boot-example/src/main/resources/application-local-zookeeper-sharding-databases-tables.properties b/examples/shardingsphere-jdbc-example/governance-example/governance-spring-boot-example/src/main/resources/application-local-zookeeper-sharding-databases-tables.properties
similarity index 93%
rename from examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-boot-example/src/main/resources/application-local-zookeeper-sharding-databases-tables.properties
rename to examples/shardingsphere-jdbc-example/governance-example/governance-spring-boot-example/src/main/resources/application-local-zookeeper-sharding-databases-tables.properties
index ddd6348..6c1e8485 100644
--- a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-boot-example/src/main/resources/application-local-zookeeper-sharding-databases-tables.properties
+++ b/examples/shardingsphere-jdbc-example/governance-example/governance-spring-boot-example/src/main/resources/application-local-zookeeper-sharding-databases-tables.properties
@@ -62,8 +62,8 @@ spring.shardingsphere.rules.encrypt.encryptors.status_encryptor.props.aes.key.va
spring.shardingsphere.rules.encrypt.tables.t_order.columns.status.cipher-column=status
spring.shardingsphere.rules.encrypt.tables.t_order.columns.status.encryptor-name=status_encryptor
-spring.shardingsphere.orchestration.name=demo_spring_boot_ds_sharding
-spring.shardingsphere.orchestration.overwrite=true
+spring.shardingsphere.governance.name=demo_spring_boot_ds_sharding
+spring.shardingsphere.governance.overwrite=true
-spring.shardingsphere.orchestration.registry-center.type=ZooKeeper
-spring.shardingsphere.orchestration.registry-center.server-lists=localhost:2181
+spring.shardingsphere.governance.registry-center.type=ZooKeeper
+spring.shardingsphere.governance.registry-center.server-lists=localhost:2181
diff --git a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-boot-example/src/main/resources/application.properties b/examples/shardingsphere-jdbc-example/governance-example/governance-spring-boot-example/src/main/resources/application.properties
similarity index 100%
rename from examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-boot-example/src/main/resources/application.properties
rename to examples/shardingsphere-jdbc-example/governance-example/governance-spring-boot-example/src/main/resources/application.properties
diff --git a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-namespace-example/pom.xml b/examples/shardingsphere-jdbc-example/governance-example/governance-spring-namespace-example/pom.xml
similarity index 86%
rename from examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-namespace-example/pom.xml
rename to examples/shardingsphere-jdbc-example/governance-example/governance-spring-namespace-example/pom.xml
index ae0cc28..511eeab 100644
--- a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-namespace-example/pom.xml
+++ b/examples/shardingsphere-jdbc-example/governance-example/governance-spring-namespace-example/pom.xml
@@ -22,10 +22,10 @@
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.apache.shardingsphere.example</groupId>
- <artifactId>orchestration-example</artifactId>
+ <artifactId>governance-example</artifactId>
<version>5.0.0-RC1-SNAPSHOT</version>
</parent>
- <artifactId>orchestration-spring-namespace-example</artifactId>
+ <artifactId>governance-spring-namespace-example</artifactId>
<name>${project.artifactId}</name>
<dependencies>
@@ -45,15 +45,15 @@
</dependency>
<dependency>
<groupId>org.apache.shardingsphere</groupId>
- <artifactId>shardingsphere-jdbc-orchestration-spring-namespace</artifactId>
+ <artifactId>shardingsphere-jdbc-governance-spring-namespace</artifactId>
</dependency>
<dependency>
<groupId>org.apache.shardingsphere</groupId>
- <artifactId>shardingsphere-orchestration-repository-zookeeper-curator</artifactId>
+ <artifactId>shardingsphere-governance-repository-zookeeper-curator</artifactId>
</dependency>
<dependency>
<groupId>org.apache.shardingsphere</groupId>
- <artifactId>shardingsphere-orchestration-repository-nacos</artifactId>
+ <artifactId>shardingsphere-governance-repository-nacos</artifactId>
</dependency>
<dependency>
<groupId>com.alibaba.nacos</groupId>
diff --git a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-namespace-example/src/main/java/org/apache/shardingsphere/example/orchestration/spring/namespace/ExampleMain.java b/examples/shardingsphere-jdbc-example/governance-example/governance-spring-namespace-example/src/main/java/org/apache/shardingsphere/example/orchestration/spring/namespace/ExampleMain.java
similarity index 97%
rename from examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-namespace-example/src/main/java/org/apache/shardingsphere/example/orchestration/spring/namespace/ExampleMain.java
rename to examples/shardingsphere-jdbc-example/governance-example/governance-spring-namespace-example/src/main/java/org/apache/shardingsphere/example/orchestration/spring/namespace/ExampleMain.java
index 75dd951..d60d12f 100644
--- a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-namespace-example/src/main/java/org/apache/shardingsphere/example/orchestration/spring/namespace/ExampleMain.java
+++ b/examples/shardingsphere-jdbc-example/governance-example/governance-spring-namespace-example/src/main/java/org/apache/shardingsphere/example/orchestration/spring/namespace/ExampleMain.java
@@ -15,7 +15,7 @@
* limitations under the License.
*/
-package org.apache.shardingsphere.example.orchestration.spring.namespace;
+package org.apache.shardingsphere.example.governance.spring.namespace;
import org.apache.shardingsphere.example.core.api.ExampleExecuteTemplate;
import org.apache.shardingsphere.example.core.api.service.ExampleService;
diff --git a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-namespace-example/src/main/resources/META-INF/nacos/cloud/application-encrypt.xml b/examples/shardingsphere-jdbc-example/governance-example/governance-spring-namespace-example/src/main/resources/META-INF/nacos/cloud/application-encrypt.xml
similarity index 89%
rename from examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-namespace-example/src/main/resources/META-INF/nacos/cloud/application-encrypt.xml
rename to examples/shardingsphere-jdbc-example/governance-example/governance-spring-namespace-example/src/main/resources/META-INF/nacos/cloud/application-encrypt.xml
index 8b1cca2..34845c3 100644
--- a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-namespace-example/src/main/resources/META-INF/nacos/cloud/application-encrypt.xml
+++ b/examples/shardingsphere-jdbc-example/governance-example/governance-spring-namespace-example/src/main/resources/META-INF/nacos/cloud/application-encrypt.xml
@@ -20,20 +20,20 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:tx="http://www.springframework.org/schema/tx"
- xmlns:orchestration="http://shardingsphere.apache.org/schema/shardingsphere/orchestration"
+ xmlns:governance="http://shardingsphere.apache.org/schema/shardingsphere/governance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx.xsd
- http://shardingsphere.apache.org/schema/shardingsphere/orchestration
- http://shardingsphere.apache.org/schema/shardingsphere/orchestration/orchestration.xsd">
+ http://shardingsphere.apache.org/schema/shardingsphere/governance
+ http://shardingsphere.apache.org/schema/shardingsphere/governance/governance.xsd">
<import resource="classpath*:META-INF/nacos/registry-center.xml" />
<context:component-scan base-package="org.apache.shardingsphere.example.core.mybatis" />
- <orchestration:data-source id="encryptDataSource" reg-center-ref="regCenter" config-center-ref="confCenter" />
+ <governance:data-source id="encryptDataSource" reg-center-ref="regCenter" config-center-ref="confCenter" />
<bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
<property name="dataSource" ref="encryptDataSource" />
diff --git a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-namespace-example/src/main/resources/META-INF/nacos/cloud/application-master-slave.xml b/examples/shardingsphere-jdbc-example/governance-example/governance-spring-namespace-example/src/main/resources/META-INF/nacos/cloud/application-master-slave.xml
similarity index 89%
rename from examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-namespace-example/src/main/resources/META-INF/nacos/cloud/application-master-slave.xml
rename to examples/shardingsphere-jdbc-example/governance-example/governance-spring-namespace-example/src/main/resources/META-INF/nacos/cloud/application-master-slave.xml
index 88ee8ce..79053f3 100644
--- a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-namespace-example/src/main/resources/META-INF/nacos/cloud/application-master-slave.xml
+++ b/examples/shardingsphere-jdbc-example/governance-example/governance-spring-namespace-example/src/main/resources/META-INF/nacos/cloud/application-master-slave.xml
@@ -20,19 +20,19 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:tx="http://www.springframework.org/schema/tx"
- xmlns:orchestration="http://shardingsphere.apache.org/schema/shardingsphere/orchestration"
+ xmlns:governance="http://shardingsphere.apache.org/schema/shardingsphere/governance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx.xsd
- http://shardingsphere.apache.org/schema/shardingsphere/orchestration
- http://shardingsphere.apache.org/schema/shardingsphere/orchestration/orchestration.xsd">
+ http://shardingsphere.apache.org/schema/shardingsphere/governance
+ http://shardingsphere.apache.org/schema/shardingsphere/governance/governance.xsd">
<import resource="classpath*:META-INF/nacos/registry-center.xml" />
<context:component-scan base-package="org.apache.shardingsphere.example.core.mybatis" />
- <orchestration:data-source id="masterSlaveDataSource" reg-center-ref="regCenter" config-center-ref="confCenter" />
+ <governance:data-source id="masterSlaveDataSource" reg-center-ref="regCenter" data-source-names="" rule-refs=""/>
<bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
<property name="dataSource" ref="masterSlaveDataSource" />
diff --git a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-namespace-example/src/main/resources/META-INF/nacos/cloud/application-shadow.xml b/examples/shardingsphere-jdbc-example/governance-example/governance-spring-namespace-example/src/main/resources/META-INF/nacos/cloud/application-shadow.xml
similarity index 90%
rename from examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-namespace-example/src/main/resources/META-INF/nacos/cloud/application-shadow.xml
rename to examples/shardingsphere-jdbc-example/governance-example/governance-spring-namespace-example/src/main/resources/META-INF/nacos/cloud/application-shadow.xml
index 5e154af..4fb8c7b 100644
--- a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-namespace-example/src/main/resources/META-INF/nacos/cloud/application-shadow.xml
+++ b/examples/shardingsphere-jdbc-example/governance-example/governance-spring-namespace-example/src/main/resources/META-INF/nacos/cloud/application-shadow.xml
@@ -20,20 +20,20 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:tx="http://www.springframework.org/schema/tx"
- xmlns:orchestration="http://shardingsphere.apache.org/schema/shardingsphere/orchestration"
+ xmlns:governance="http://shardingsphere.apache.org/schema/shardingsphere/governance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx.xsd
- http://shardingsphere.apache.org/schema/shardingsphere/orchestration
- http://shardingsphere.apache.org/schema/shardingsphere/orchestration/orchestration.xsd">
+ http://shardingsphere.apache.org/schema/shardingsphere/governance
+ http://shardingsphere.apache.org/schema/shardingsphere/governance/governance.xsd">
<import resource="classpath*:META-INF/nacos/registry-center.xml" />
<context:component-scan base-package="org.apache.shardingsphere.example.core.mybatis" />
- <orchestration:data-source id="shadowDataSource" reg-center-ref="regCenter" config-center-ref="confCenter" />
+ <governance:data-source id="shadowDataSource" reg-center-ref="regCenter" config-center-ref="confCenter" />
<bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
<property name="dataSource" ref="shadowDataSource" />
diff --git a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-namespace-example/src/main/resources/META-INF/nacos/cloud/application-sharding-databases-tables.xml b/examples/shardingsphere-jdbc-example/governance-example/governance-spring-namespace-example/src/main/resources/META-INF/nacos/cloud/application-sharding-databases-tables.xml
similarity index 89%
rename from examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-namespace-example/src/main/resources/META-INF/nacos/cloud/application-sharding-databases-tables.xml
rename to examples/shardingsphere-jdbc-example/governance-example/governance-spring-namespace-example/src/main/resources/META-INF/nacos/cloud/application-sharding-databases-tables.xml
index 02c405a..dd992f6 100644
--- a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-namespace-example/src/main/resources/META-INF/nacos/cloud/application-sharding-databases-tables.xml
+++ b/examples/shardingsphere-jdbc-example/governance-example/governance-spring-namespace-example/src/main/resources/META-INF/nacos/cloud/application-sharding-databases-tables.xml
@@ -20,19 +20,19 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:tx="http://www.springframework.org/schema/tx"
- xmlns:orchestration="http://shardingsphere.apache.org/schema/shardingsphere/orchestration"
+ xmlns:governance="http://shardingsphere.apache.org/schema/shardingsphere/governance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx.xsd
- http://shardingsphere.apache.org/schema/shardingsphere/orchestration
- http://shardingsphere.apache.org/schema/shardingsphere/orchestration/orchestration.xsd">
+ http://shardingsphere.apache.org/schema/shardingsphere/governance
+ http://shardingsphere.apache.org/schema/shardingsphere/governance/governance.xsd">
<import resource="classpath*:META-INF/nacos/registry-center.xml" />
<context:component-scan base-package="org.apache.shardingsphere.example.core.mybatis" />
-
- <orchestration:data-source id="shardingDatabasesTablesDataSource" reg-center-ref="regCenter" config-center-ref="confCenter" />
+
+ <governance:data-source id="shardingDatabasesTablesDataSource" reg-center-ref="regCenter" rule-refs="shardingRule"/>
<bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
<property name="dataSource" ref="shardingDatabasesTablesDataSource" />
diff --git a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-namespace-example/src/main/resources/META-INF/nacos/local/application-encrypt.xml b/examples/shardingsphere-jdbc-example/governance-example/governance-spring-namespace-example/src/main/resources/META-INF/nacos/local/application-encrypt.xml
similarity index 93%
rename from examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-namespace-example/src/main/resources/META-INF/nacos/local/application-encrypt.xml
rename to examples/shardingsphere-jdbc-example/governance-example/governance-spring-namespace-example/src/main/resources/META-INF/nacos/local/application-encrypt.xml
index 392eb09..e6d2152 100644
--- a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-namespace-example/src/main/resources/META-INF/nacos/local/application-encrypt.xml
+++ b/examples/shardingsphere-jdbc-example/governance-example/governance-spring-namespace-example/src/main/resources/META-INF/nacos/local/application-encrypt.xml
@@ -22,7 +22,7 @@
xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:shardingsphere="http://shardingsphere.apache.org/schema/shardingsphere/datasource"
xmlns:encrypt="http://shardingsphere.apache.org/schema/shardingsphere/encrypt"
- xmlns:orchestration="http://shardingsphere.apache.org/schema/shardingsphere/orchestration"
+ xmlns:governance="http://shardingsphere.apache.org/schema/shardingsphere/governance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context
@@ -33,8 +33,8 @@
http://shardingsphere.apache.org/schema/shardingsphere/datasource/datasource.xsd
http://shardingsphere.apache.org/schema/shardingsphere/encrypt
http://shardingsphere.apache.org/schema/shardingsphere/encrypt/encrypt.xsd
- http://shardingsphere.apache.org/schema/shardingsphere/orchestration
- http://shardingsphere.apache.org/schema/shardingsphere/orchestration/orchestration.xsd
+ http://shardingsphere.apache.org/schema/shardingsphere/governance
+ http://shardingsphere.apache.org/schema/shardingsphere/governance/governance.xsd
">
<import resource="classpath*:META-INF/nacos/registry-center.xml" />
<context:component-scan base-package="org.apache.shardingsphere.example.core.mybatis" />
@@ -66,7 +66,7 @@
</props>
</shardingsphere:data-source>
- <orchestration:data-source id="encryptDataSource" data-source-ref="realEncryptDataSource" reg-center-ref="regCenter" config-center-ref="confCenter" />
+ <governance:data-source id="encryptDataSource" data-source-ref="realEncryptDataSource" reg-center-ref="regCenter" config-center-ref="confCenter" />
<bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
<property name="dataSource" ref="encryptDataSource" />
diff --git a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-namespace-example/src/main/resources/META-INF/nacos/local/application-master-slave.xml b/examples/shardingsphere-jdbc-example/governance-example/governance-spring-namespace-example/src/main/resources/META-INF/nacos/local/application-master-slave.xml
similarity index 93%
rename from examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-namespace-example/src/main/resources/META-INF/nacos/local/application-master-slave.xml
rename to examples/shardingsphere-jdbc-example/governance-example/governance-spring-namespace-example/src/main/resources/META-INF/nacos/local/application-master-slave.xml
index 73eb07c..9a7a619 100644
--- a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-namespace-example/src/main/resources/META-INF/nacos/local/application-master-slave.xml
+++ b/examples/shardingsphere-jdbc-example/governance-example/governance-spring-namespace-example/src/main/resources/META-INF/nacos/local/application-master-slave.xml
@@ -22,7 +22,7 @@
xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:shardingsphere="http://shardingsphere.apache.org/schema/shardingsphere/datasource"
xmlns:master-slave="http://shardingsphere.apache.org/schema/shardingsphere/masterslave"
- xmlns:orchestration="http://shardingsphere.apache.org/schema/shardingsphere/orchestration"
+ xmlns:governance="http://shardingsphere.apache.org/schema/shardingsphere/governance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context
@@ -33,8 +33,8 @@
http://shardingsphere.apache.org/schema/shardingsphere/datasource/datasource.xsd
http://shardingsphere.apache.org/schema/shardingsphere/masterslave
http://shardingsphere.apache.org/schema/shardingsphere/masterslave/master-slave.xsd
- http://shardingsphere.apache.org/schema/shardingsphere/orchestration
- http://shardingsphere.apache.org/schema/shardingsphere/orchestration/orchestration.xsd
+ http://shardingsphere.apache.org/schema/shardingsphere/governance
+ http://shardingsphere.apache.org/schema/shardingsphere/governance/governance.xsd
">
<import resource="classpath*:META-INF/nacos/registry-center.xml" />
<context:component-scan base-package="org.apache.shardingsphere.example.core.mybatis" />
@@ -68,7 +68,7 @@
<shardingsphere:data-source id="realMasterSlaveDataSource" data-source-names="demo_ds_master, demo_ds_slave_0, demo_ds_slave_1" rule-refs="masterSlaveRule" />
- <orchestration:data-source id="masterSlaveDataSource" data-source-ref="realMasterSlaveDataSource" reg-center-ref="regCenter" config-center-ref="confCenter" />
+ <governance:data-source id="masterSlaveDataSource" data-source-ref="realMasterSlaveDataSource" reg-center-ref="regCenter" config-center-ref="confCenter" />
<bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
<property name="dataSource" ref="masterSlaveDataSource" />
diff --git a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-namespace-example/src/main/resources/META-INF/nacos/local/application-shadow.xml b/examples/shardingsphere-jdbc-example/governance-example/governance-spring-namespace-example/src/main/resources/META-INF/nacos/local/application-shadow.xml
similarity index 92%
rename from examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-namespace-example/src/main/resources/META-INF/nacos/local/application-shadow.xml
rename to examples/shardingsphere-jdbc-example/governance-example/governance-spring-namespace-example/src/main/resources/META-INF/nacos/local/application-shadow.xml
index f383a6a..b1b4154 100644
--- a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-namespace-example/src/main/resources/META-INF/nacos/local/application-shadow.xml
+++ b/examples/shardingsphere-jdbc-example/governance-example/governance-spring-namespace-example/src/main/resources/META-INF/nacos/local/application-shadow.xml
@@ -22,7 +22,7 @@
xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:shardingsphere="http://shardingsphere.apache.org/schema/shardingsphere/datasource"
xmlns:shadow="http://shardingsphere.apache.org/schema/shardingsphere/shadow"
- xmlns:orchestration="http://shardingsphere.apache.org/schema/shardingsphere/orchestration"
+ xmlns:governance="http://shardingsphere.apache.org/schema/shardingsphere/governance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context
@@ -33,8 +33,8 @@
http://shardingsphere.apache.org/schema/shardingsphere/datasource/datasource.xsd
http://shardingsphere.apache.org/schema/shardingsphere/shadow
http://shardingsphere.apache.org/schema/shardingsphere/shadow/shadow.xsd
- http://shardingsphere.apache.org/schema/shardingsphere/orchestration
- http://shardingsphere.apache.org/schema/shardingsphere/orchestration/orchestration.xsd
+ http://shardingsphere.apache.org/schema/shardingsphere/governance
+ http://shardingsphere.apache.org/schema/shardingsphere/governance/governance.xsd
">
<import resource="classpath*:META-INF/nacos/registry-center.xml" />
<context:component-scan base-package="org.apache.shardingsphere.example.core.mybatis" />
@@ -61,7 +61,7 @@
<shardingsphere:data-source id="realShadowDataSource" data-source-names="demo_ds,shadow_demo_ds" rule-refs="shadowRule" />
- <orchestration:data-source id="shadowDataSource" data-source-ref="realShadowDataSource" reg-center-ref="regCenter" config-center-ref="confCenter" />
+ <governance:data-source id="shadowDataSource" data-source-ref="realShadowDataSource" reg-center-ref="regCenter" config-center-ref="confCenter" />
<bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
<property name="dataSource" ref="shadowDataSource" />
diff --git a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-namespace-example/src/main/resources/META-INF/nacos/local/application-sharding-databases-tables.xml b/examples/shardingsphere-jdbc-example/governance-example/governance-spring-namespace-example/src/main/resources/META-INF/nacos/local/application-sharding-databases-tables.xml
similarity index 94%
rename from examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-namespace-example/src/main/resources/META-INF/nacos/local/application-sharding-databases-tables.xml
rename to examples/shardingsphere-jdbc-example/governance-example/governance-spring-namespace-example/src/main/resources/META-INF/nacos/local/application-sharding-databases-tables.xml
index fd7f663..aed8b12 100644
--- a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-namespace-example/src/main/resources/META-INF/nacos/local/application-sharding-databases-tables.xml
+++ b/examples/shardingsphere-jdbc-example/governance-example/governance-spring-namespace-example/src/main/resources/META-INF/nacos/local/application-sharding-databases-tables.xml
@@ -22,7 +22,7 @@
xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:shardingsphere="http://shardingsphere.apache.org/schema/shardingsphere/datasource"
xmlns:sharding="http://shardingsphere.apache.org/schema/shardingsphere/sharding"
- xmlns:orchestration="http://shardingsphere.apache.org/schema/shardingsphere/orchestration"
+ xmlns:governance="http://shardingsphere.apache.org/schema/shardingsphere/governance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/tx
@@ -33,8 +33,8 @@
http://shardingsphere.apache.org/schema/shardingsphere/datasource/datasource.xsd
http://shardingsphere.apache.org/schema/shardingsphere/sharding
http://shardingsphere.apache.org/schema/shardingsphere/sharding/sharding.xsd
- http://shardingsphere.apache.org/schema/shardingsphere/orchestration
- http://shardingsphere.apache.org/schema/shardingsphere/orchestration/orchestration.xsd
+ http://shardingsphere.apache.org/schema/shardingsphere/governance
+ http://shardingsphere.apache.org/schema/shardingsphere/governance/governance.xsd
">
<import resource="classpath*:META-INF/nacos/registry-center.xml" />
@@ -96,7 +96,7 @@
</sharding:rule>
<shardingsphere:data-source id="realShardingDatabasesTablesDataSource" data-source-names="demo_ds_0, demo_ds_1" rule-refs="shardingRule" />
- <orchestration:data-source id="shardingDatabasesTablesDataSource" data-source-ref="realShardingDatabasesTablesDataSource" reg-center-ref="regCenter" config-center-ref="confCenter" />
+ <governance:data-source id="shardingDatabasesTablesDataSource" data-source-names="realShardingDatabasesTablesDataSource" reg-center-ref="regCenter" rule-refs="shardingRule"/>
<bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
<property name="dataSource" ref="shardingDatabasesTablesDataSource" />
diff --git a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-namespace-example/src/main/resources/META-INF/nacos/registry-center.xml b/examples/shardingsphere-jdbc-example/governance-example/governance-spring-namespace-example/src/main/resources/META-INF/nacos/registry-center.xml
similarity index 78%
rename from examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-namespace-example/src/main/resources/META-INF/nacos/registry-center.xml
rename to examples/shardingsphere-jdbc-example/governance-example/governance-spring-namespace-example/src/main/resources/META-INF/nacos/registry-center.xml
index d461412..448cc51 100644
--- a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-namespace-example/src/main/resources/META-INF/nacos/registry-center.xml
+++ b/examples/shardingsphere-jdbc-example/governance-example/governance-spring-namespace-example/src/main/resources/META-INF/nacos/registry-center.xml
@@ -17,24 +17,24 @@
-->
<beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:orchestration="http://shardingsphere.apache.org/schema/shardingsphere/orchestration"
+ xmlns:governance="http://shardingsphere.apache.org/schema/shardingsphere/governance"
xmlns="http://www.springframework.org/schema/beans"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
- http://shardingsphere.apache.org/schema/shardingsphere/orchestration
- http://shardingsphere.apache.org/schema/shardingsphere/orchestration/orchestration.xsd
+ http://shardingsphere.apache.org/schema/shardingsphere/governance
+ http://shardingsphere.apache.org/schema/shardingsphere/governance/governance.xsd
">
- <orchestration:reg-center id="confCenter" type="Nacos" server-lists="localhost:8848">
+ <governance:reg-center id="confCenter" type="Nacos" server-lists="localhost:8848">
<props>
<prop key="max-retries">3</prop>
<prop key="operation-timeout-milliseconds">3000</prop>
</props>
- </orchestration:reg-center>
+ </governance:reg-center>
- <orchestration:reg-center id="regCenter" type="ZooKeeper" server-lists="localhost:2181">
+ <governance:reg-center id="regCenter" type="ZooKeeper" server-lists="localhost:2181">
<props>
<prop key="max-retries">3</prop>
<prop key="operation-timeout-milliseconds">3000</prop>
</props>
- </orchestration:reg-center>
+ </governance:reg-center>
</beans>
diff --git a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-namespace-example/src/main/resources/META-INF/zookeeper/cloud/application-encrypt.xml b/examples/shardingsphere-jdbc-example/governance-example/governance-spring-namespace-example/src/main/resources/META-INF/zookeeper/cloud/application-encrypt.xml
similarity index 90%
rename from examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-namespace-example/src/main/resources/META-INF/zookeeper/cloud/application-encrypt.xml
rename to examples/shardingsphere-jdbc-example/governance-example/governance-spring-namespace-example/src/main/resources/META-INF/zookeeper/cloud/application-encrypt.xml
index 77c9a73..2d53a1e 100644
--- a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-namespace-example/src/main/resources/META-INF/zookeeper/cloud/application-encrypt.xml
+++ b/examples/shardingsphere-jdbc-example/governance-example/governance-spring-namespace-example/src/main/resources/META-INF/zookeeper/cloud/application-encrypt.xml
@@ -20,20 +20,20 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:tx="http://www.springframework.org/schema/tx"
- xmlns:orchestration="http://shardingsphere.apache.org/schema/shardingsphere/orchestration"
+ xmlns:governance="http://shardingsphere.apache.org/schema/shardingsphere/governance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx.xsd
- http://shardingsphere.apache.org/schema/shardingsphere/orchestration
- http://shardingsphere.apache.org/schema/shardingsphere/orchestration/orchestration.xsd">
+ http://shardingsphere.apache.org/schema/shardingsphere/governance
+ http://shardingsphere.apache.org/schema/shardingsphere/governance/governance.xsd">
<import resource="classpath*:META-INF/zookeeper/registry-center.xml" />
<context:component-scan base-package="org.apache.shardingsphere.example.core.mybatis" />
- <orchestration:data-source id="encryptDataSource" reg-center-ref="regCenter" />
+ <governance:data-source id="encryptDataSource" reg-center-ref="regCenter" />
<bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
<property name="dataSource" ref="encryptDataSource" />
diff --git a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-namespace-example/src/main/resources/META-INF/zookeeper/cloud/application-master-slave.xml b/examples/shardingsphere-jdbc-example/governance-example/governance-spring-namespace-example/src/main/resources/META-INF/zookeeper/cloud/application-master-slave.xml
similarity index 90%
rename from examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-namespace-example/src/main/resources/META-INF/zookeeper/cloud/application-master-slave.xml
rename to examples/shardingsphere-jdbc-example/governance-example/governance-spring-namespace-example/src/main/resources/META-INF/zookeeper/cloud/application-master-slave.xml
index 0140493..4c52b57 100644
--- a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-namespace-example/src/main/resources/META-INF/zookeeper/cloud/application-master-slave.xml
+++ b/examples/shardingsphere-jdbc-example/governance-example/governance-spring-namespace-example/src/main/resources/META-INF/zookeeper/cloud/application-master-slave.xml
@@ -20,19 +20,19 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:tx="http://www.springframework.org/schema/tx"
- xmlns:orchestration="http://shardingsphere.apache.org/schema/shardingsphere/orchestration"
+ xmlns:governance="http://shardingsphere.apache.org/schema/shardingsphere/governance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx.xsd
- http://shardingsphere.apache.org/schema/shardingsphere/orchestration
- http://shardingsphere.apache.org/schema/shardingsphere/orchestration/orchestration.xsd">
+ http://shardingsphere.apache.org/schema/shardingsphere/governance
+ http://shardingsphere.apache.org/schema/shardingsphere/governance/governance.xsd">
<context:component-scan base-package="org.apache.shardingsphere.example.core.mybatis" />
<import resource="classpath*:META-INF/zookeeper/registry-center.xml" />
- <orchestration:data-source id="masterSlaveDataSource" reg-center-ref="regCenter" />
+ <governance:data-source id="masterSlaveDataSource" reg-center-ref="regCenter" />
<bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
<property name="dataSource" ref="masterSlaveDataSource" />
diff --git a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-namespace-example/src/main/resources/META-INF/zookeeper/cloud/application-shadow.xml b/examples/shardingsphere-jdbc-example/governance-example/governance-spring-namespace-example/src/main/resources/META-INF/zookeeper/cloud/application-shadow.xml
similarity index 90%
rename from examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-namespace-example/src/main/resources/META-INF/zookeeper/cloud/application-shadow.xml
rename to examples/shardingsphere-jdbc-example/governance-example/governance-spring-namespace-example/src/main/resources/META-INF/zookeeper/cloud/application-shadow.xml
index a00d923..f416a8f 100644
--- a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-namespace-example/src/main/resources/META-INF/zookeeper/cloud/application-shadow.xml
+++ b/examples/shardingsphere-jdbc-example/governance-example/governance-spring-namespace-example/src/main/resources/META-INF/zookeeper/cloud/application-shadow.xml
@@ -20,20 +20,20 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:tx="http://www.springframework.org/schema/tx"
- xmlns:orchestration="http://shardingsphere.apache.org/schema/shardingsphere/orchestration"
+ xmlns:governance="http://shardingsphere.apache.org/schema/shardingsphere/governance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx.xsd
- http://shardingsphere.apache.org/schema/shardingsphere/orchestration
- http://shardingsphere.apache.org/schema/shardingsphere/orchestration/orchestration.xsd">
+ http://shardingsphere.apache.org/schema/shardingsphere/governance
+ http://shardingsphere.apache.org/schema/shardingsphere/governance/governance.xsd">
<import resource="classpath*:META-INF/zookeeper/registry-center.xml" />
<context:component-scan base-package="org.apache.shardingsphere.example.core.mybatis" />
- <orchestration:data-source id="shadowDataSource" reg-center-ref="regCenter" />
+ <governance:data-source id="shadowDataSource" reg-center-ref="regCenter" />
<bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
<property name="dataSource" ref="shadowDataSource" />
diff --git a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-namespace-example/src/main/resources/META-INF/zookeeper/cloud/application-sharding-databases-tables.xml b/examples/shardingsphere-jdbc-example/governance-example/governance-spring-namespace-example/src/main/resources/META-INF/zookeeper/cloud/application-sharding-databases-tables.xml
similarity index 90%
rename from examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-namespace-example/src/main/resources/META-INF/zookeeper/cloud/application-sharding-databases-tables.xml
rename to examples/shardingsphere-jdbc-example/governance-example/governance-spring-namespace-example/src/main/resources/META-INF/zookeeper/cloud/application-sharding-databases-tables.xml
index 3839237..a0e0619 100644
--- a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-namespace-example/src/main/resources/META-INF/zookeeper/cloud/application-sharding-databases-tables.xml
+++ b/examples/shardingsphere-jdbc-example/governance-example/governance-spring-namespace-example/src/main/resources/META-INF/zookeeper/cloud/application-sharding-databases-tables.xml
@@ -20,19 +20,19 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:tx="http://www.springframework.org/schema/tx"
- xmlns:orchestration="http://shardingsphere.apache.org/schema/shardingsphere/orchestration"
+ xmlns:governance="http://shardingsphere.apache.org/schema/shardingsphere/governance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx.xsd
- http://shardingsphere.apache.org/schema/shardingsphere/orchestration
- http://shardingsphere.apache.org/schema/shardingsphere/orchestration/orchestration.xsd">
+ http://shardingsphere.apache.org/schema/shardingsphere/governance
+ http://shardingsphere.apache.org/schema/shardingsphere/governance/governance.xsd">
<import resource="classpath*:META-INF/zookeeper/registry-center.xml" />
<context:component-scan base-package="org.apache.shardingsphere.example.core.mybatis" />
- <orchestration:data-source id="shardingDatabasesTablesDataSource" reg-center-ref="regCenter" />
+ <governance:data-source id="shardingDatabasesTablesDataSource" reg-center-ref="regCenter" />
<bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
<property name="dataSource" ref="shardingDatabasesTablesDataSource" />
diff --git a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-namespace-example/src/main/resources/META-INF/zookeeper/local/application-encrypt.xml b/examples/shardingsphere-jdbc-example/governance-example/governance-spring-namespace-example/src/main/resources/META-INF/zookeeper/local/application-encrypt.xml
similarity index 93%
rename from examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-namespace-example/src/main/resources/META-INF/zookeeper/local/application-encrypt.xml
rename to examples/shardingsphere-jdbc-example/governance-example/governance-spring-namespace-example/src/main/resources/META-INF/zookeeper/local/application-encrypt.xml
index 7bf5ca7..fbff65d 100644
--- a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-namespace-example/src/main/resources/META-INF/zookeeper/local/application-encrypt.xml
+++ b/examples/shardingsphere-jdbc-example/governance-example/governance-spring-namespace-example/src/main/resources/META-INF/zookeeper/local/application-encrypt.xml
@@ -22,7 +22,7 @@
xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:shardingsphere="http://shardingsphere.apache.org/schema/shardingsphere/datasource"
xmlns:encrypt="http://shardingsphere.apache.org/schema/shardingsphere/encrypt"
- xmlns:orchestration="http://shardingsphere.apache.org/schema/shardingsphere/orchestration"
+ xmlns:governance="http://shardingsphere.apache.org/schema/shardingsphere/governance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context
@@ -33,8 +33,8 @@
http://shardingsphere.apache.org/schema/shardingsphere/datasource/datasource.xsd
http://shardingsphere.apache.org/schema/shardingsphere/encrypt
http://shardingsphere.apache.org/schema/shardingsphere/encrypt/encrypt.xsd
- http://shardingsphere.apache.org/schema/shardingsphere/orchestration
- http://shardingsphere.apache.org/schema/shardingsphere/orchestration/orchestration.xsd
+ http://shardingsphere.apache.org/schema/shardingsphere/governance
+ http://shardingsphere.apache.org/schema/shardingsphere/governance/governance.xsd
">
<import resource="classpath*:META-INF/zookeeper/registry-center.xml" />
<context:component-scan base-package="org.apache.shardingsphere.example.core.mybatis" />
@@ -66,7 +66,7 @@
</props>
</shardingsphere:data-source>
- <orchestration:data-source id="encryptDataSource" data-source-ref="realEncryptDataSource" reg-center-ref="regCenter" />
+ <governance:data-source id="encryptDataSource" data-source-ref="realEncryptDataSource" reg-center-ref="regCenter" />
<bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
<property name="dataSource" ref="encryptDataSource" />
diff --git a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-namespace-example/src/main/resources/META-INF/zookeeper/local/application-master-slave.xml b/examples/shardingsphere-jdbc-example/governance-example/governance-spring-namespace-example/src/main/resources/META-INF/zookeeper/local/application-master-slave.xml
similarity index 94%
rename from examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-namespace-example/src/main/resources/META-INF/zookeeper/local/application-master-slave.xml
rename to examples/shardingsphere-jdbc-example/governance-example/governance-spring-namespace-example/src/main/resources/META-INF/zookeeper/local/application-master-slave.xml
index f98df20..a0e630d 100644
--- a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-namespace-example/src/main/resources/META-INF/zookeeper/local/application-master-slave.xml
+++ b/examples/shardingsphere-jdbc-example/governance-example/governance-spring-namespace-example/src/main/resources/META-INF/zookeeper/local/application-master-slave.xml
@@ -22,7 +22,7 @@
xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:shardingsphere="http://shardingsphere.apache.org/schema/shardingsphere/datasource"
xmlns:master-slave="http://shardingsphere.apache.org/schema/shardingsphere/masterslave"
- xmlns:orchestration="http://shardingsphere.apache.org/schema/shardingsphere/orchestration"
+ xmlns:governance="http://shardingsphere.apache.org/schema/shardingsphere/governance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context
@@ -33,8 +33,8 @@
http://shardingsphere.apache.org/schema/shardingsphere/datasource/datasource.xsd
http://shardingsphere.apache.org/schema/shardingsphere/masterslave
http://shardingsphere.apache.org/schema/shardingsphere/masterslave/master-slave.xsd
- http://shardingsphere.apache.org/schema/shardingsphere/orchestration
- http://shardingsphere.apache.org/schema/shardingsphere/orchestration/orchestration.xsd
+ http://shardingsphere.apache.org/schema/shardingsphere/governance
+ http://shardingsphere.apache.org/schema/shardingsphere/governance/governance.xsd
">
<import resource="classpath*:META-INF/zookeeper/registry-center.xml"/>
<context:component-scan base-package="org.apache.shardingsphere.example.core.mybatis"/>
@@ -68,7 +68,7 @@
<shardingsphere:data-source id="realMasterSlaveDataSource" data-source-names="demo_ds_master, demo_ds_slave_0, demo_ds_slave_1" rule-refs="masterSlaveRule" />
- <orchestration:data-source id="masterSlaveDataSource" data-source-ref="realMasterSlaveDataSource" reg-center-ref="regCenter" />
+ <governance:data-source id="masterSlaveDataSource" data-source-ref="realMasterSlaveDataSource" reg-center-ref="regCenter" />
<bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
<property name="dataSource" ref="masterSlaveDataSource" />
diff --git a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-namespace-example/src/main/resources/META-INF/zookeeper/local/application-shadow.xml b/examples/shardingsphere-jdbc-example/governance-example/governance-spring-namespace-example/src/main/resources/META-INF/zookeeper/local/application-shadow.xml
similarity index 93%
rename from examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-namespace-example/src/main/resources/META-INF/zookeeper/local/application-shadow.xml
rename to examples/shardingsphere-jdbc-example/governance-example/governance-spring-namespace-example/src/main/resources/META-INF/zookeeper/local/application-shadow.xml
index 6c6a8e9..96f1cbd 100644
--- a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-namespace-example/src/main/resources/META-INF/zookeeper/local/application-shadow.xml
+++ b/examples/shardingsphere-jdbc-example/governance-example/governance-spring-namespace-example/src/main/resources/META-INF/zookeeper/local/application-shadow.xml
@@ -22,7 +22,7 @@
xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:shardingsphere="http://shardingsphere.apache.org/schema/shardingsphere/datasource"
xmlns:shadow="http://shardingsphere.apache.org/schema/shardingsphere/shadow"
- xmlns:orchestration="http://shardingsphere.apache.org/schema/shardingsphere/orchestration"
+ xmlns:governance="http://shardingsphere.apache.org/schema/shardingsphere/governance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context
@@ -33,8 +33,8 @@
http://shardingsphere.apache.org/schema/shardingsphere/datasource/datasource.xsd
http://shardingsphere.apache.org/schema/shardingsphere/shadow
http://shardingsphere.apache.org/schema/shardingsphere/shadow/shadow.xsd
- http://shardingsphere.apache.org/schema/shardingsphere/orchestration
- http://shardingsphere.apache.org/schema/shardingsphere/orchestration/orchestration.xsd
+ http://shardingsphere.apache.org/schema/shardingsphere/governance
+ http://shardingsphere.apache.org/schema/shardingsphere/governance/governance.xsd
">
<import resource="classpath*:META-INF/zookeeper/registry-center.xml" />
<context:component-scan base-package="org.apache.shardingsphere.example.core.mybatis" />
@@ -61,7 +61,7 @@
<shardingsphere:data-source id="realShadowDataSource" data-source-names="demo_ds,shadow_demo_ds" rule-refs="shadowRule" />
- <orchestration:data-source id="shadowDataSource" data-source-ref="realShadowDataSource" reg-center-ref="regCenter" />
+ <governance:data-source id="shadowDataSource" data-source-ref="realShadowDataSource" reg-center-ref="regCenter" />
<bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
<property name="dataSource" ref="shadowDataSource" />
diff --git a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-namespace-example/src/main/resources/META-INF/zookeeper/local/application-sharding-databases-tables.xml b/examples/shardingsphere-jdbc-example/governance-example/governance-spring-namespace-example/src/main/resources/META-INF/zookeeper/local/application-sharding-databases-tables.xml
similarity index 95%
rename from examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-namespace-example/src/main/resources/META-INF/zookeeper/local/application-sharding-databases-tables.xml
rename to examples/shardingsphere-jdbc-example/governance-example/governance-spring-namespace-example/src/main/resources/META-INF/zookeeper/local/application-sharding-databases-tables.xml
index cf87915..b79b983 100644
--- a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-namespace-example/src/main/resources/META-INF/zookeeper/local/application-sharding-databases-tables.xml
+++ b/examples/shardingsphere-jdbc-example/governance-example/governance-spring-namespace-example/src/main/resources/META-INF/zookeeper/local/application-sharding-databases-tables.xml
@@ -22,7 +22,7 @@
xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:shardingsphere="http://shardingsphere.apache.org/schema/shardingsphere/datasource"
xmlns:sharding="http://shardingsphere.apache.org/schema/shardingsphere/sharding"
- xmlns:orchestration="http://shardingsphere.apache.org/schema/shardingsphere/orchestration"
+ xmlns:governance="http://shardingsphere.apache.org/schema/shardingsphere/governance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/tx
@@ -33,8 +33,8 @@
http://shardingsphere.apache.org/schema/shardingsphere/datasource/datasource.xsd
http://shardingsphere.apache.org/schema/shardingsphere/sharding
http://shardingsphere.apache.org/schema/shardingsphere/sharding/sharding.xsd
- http://shardingsphere.apache.org/schema/shardingsphere/orchestration
- http://shardingsphere.apache.org/schema/shardingsphere/orchestration/orchestration.xsd
+ http://shardingsphere.apache.org/schema/shardingsphere/governance
+ http://shardingsphere.apache.org/schema/shardingsphere/governance/governance.xsd
">
<import resource="classpath*:META-INF/zookeeper/registry-center.xml" />
<context:component-scan base-package="org.apache.shardingsphere.example.core.mybatis" />
@@ -99,7 +99,7 @@
</sharding:rule>
<shardingsphere:data-source id="realShardingDatabasesTablesDataSource" data-source-names="demo_ds_0, demo_ds_1" rule-refs="shardingRule" />
- <orchestration:data-source id="shardingDatabasesTablesDataSource" data-source-ref="realShardingDatabasesTablesDataSource" reg-center-ref="regCenter" />
+ <governance:data-source id="shardingDatabasesTablesDataSource" data-source-names="realShardingDatabasesTablesDataSource" reg-center-ref="regCenter" rule-refs="shardingRule" />
<bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
<property name="dataSource" ref="shardingDatabasesTablesDataSource" />
diff --git a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-namespace-example/src/main/resources/META-INF/zookeeper/registry-center.xml b/examples/shardingsphere-jdbc-example/governance-example/governance-spring-namespace-example/src/main/resources/META-INF/zookeeper/registry-center.xml
similarity index 82%
rename from examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-namespace-example/src/main/resources/META-INF/zookeeper/registry-center.xml
rename to examples/shardingsphere-jdbc-example/governance-example/governance-spring-namespace-example/src/main/resources/META-INF/zookeeper/registry-center.xml
index 13a43e0..b58a338 100644
--- a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-namespace-example/src/main/resources/META-INF/zookeeper/registry-center.xml
+++ b/examples/shardingsphere-jdbc-example/governance-example/governance-spring-namespace-example/src/main/resources/META-INF/zookeeper/registry-center.xml
@@ -17,17 +17,17 @@
-->
<beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:orchestration="http://shardingsphere.apache.org/schema/shardingsphere/orchestration"
+ xmlns:governance="http://shardingsphere.apache.org/schema/shardingsphere/governance"
xmlns="http://www.springframework.org/schema/beans"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
- http://shardingsphere.apache.org/schema/shardingsphere/orchestration
- http://shardingsphere.apache.org/schema/shardingsphere/orchestration/orchestration.xsd
+ http://shardingsphere.apache.org/schema/shardingsphere/governance
+ http://shardingsphere.apache.org/schema/shardingsphere/governance/governance.xsd
">
- <orchestration:reg-center id="regCenter" type="ZooKeeper" server-lists="localhost:2181">
+ <governance:reg-center id="regCenter" type="ZooKeeper" server-lists="localhost:2181">
<props>
<prop key="max-retries">3</prop>
<prop key="operation-timeout-milliseconds">3000</prop>
</props>
- </orchestration:reg-center>
+ </governance:reg-center>
</beans>
diff --git a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-namespace-example/src/main/resources/logback.xml b/examples/shardingsphere-jdbc-example/governance-example/governance-spring-namespace-example/src/main/resources/logback.xml
similarity index 100%
rename from examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-namespace-example/src/main/resources/logback.xml
rename to examples/shardingsphere-jdbc-example/governance-example/governance-spring-namespace-example/src/main/resources/logback.xml
diff --git a/examples/shardingsphere-jdbc-example/orchestration-example/pom.xml b/examples/shardingsphere-jdbc-example/governance-example/pom.xml
similarity index 86%
rename from examples/shardingsphere-jdbc-example/orchestration-example/pom.xml
rename to examples/shardingsphere-jdbc-example/governance-example/pom.xml
index 3be9187..6ac4b5d 100644
--- a/examples/shardingsphere-jdbc-example/orchestration-example/pom.xml
+++ b/examples/shardingsphere-jdbc-example/governance-example/pom.xml
@@ -25,13 +25,13 @@
<artifactId>shardingsphere-jdbc-example</artifactId>
<version>5.0.0-RC1-SNAPSHOT</version>
</parent>
- <artifactId>orchestration-example</artifactId>
+ <artifactId>governance-example</artifactId>
<name>${project.artifactId}</name>
<packaging>pom</packaging>
<modules>
- <module>orchestration-raw-jdbc-example</module>
- <module>orchestration-spring-boot-example</module>
- <module>orchestration-spring-namespace-example</module>
+ <module>governance-raw-jdbc-example</module>
+ <module>governance-spring-boot-example</module>
+ <module>governance-spring-namespace-example</module>
</modules>
</project>
diff --git a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/orchestration/raw/jdbc/config/OrchestrationRepositoryConfigurationUtil.java b/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/orchestration/raw/jdbc/config/OrchestrationRepositoryConfigurationUtil.java
deleted file mode 100644
index 82c6fbf..0000000
--- a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/orchestration/raw/jdbc/config/OrchestrationRepositoryConfigurationUtil.java
+++ /dev/null
@@ -1,68 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.example.orchestration.raw.jdbc.config;
-
-import org.apache.shardingsphere.example.type.ShardingType;
-import org.apache.shardingsphere.orchestration.repository.api.config.OrchestrationConfiguration;
-import org.apache.shardingsphere.orchestration.repository.api.config.OrchestrationCenterConfiguration;
-
-import java.util.Properties;
-
-public final class OrchestrationRepositoryConfigurationUtil {
-
- private static final String ZOOKEEPER_CONNECTION_STRING = "localhost:2181";
-
- private static final String NACOS_CONNECTION_STRING = "localhost:8848";
-
- public static OrchestrationConfiguration getZooKeeperConfiguration(final boolean overwrite, final ShardingType shardingType) {
- OrchestrationCenterConfiguration orchestrationCenterConfig = new OrchestrationCenterConfiguration("ZooKeeper", ZOOKEEPER_CONNECTION_STRING, new Properties());
- switch (shardingType) {
- case SHARDING_DATABASES_AND_TABLES:
- return new OrchestrationConfiguration("orchestration-sharding-data-source", orchestrationCenterConfig, overwrite);
- case MASTER_SLAVE:
- return new OrchestrationConfiguration("orchestration-ms-data-source", orchestrationCenterConfig, overwrite);
- case ENCRYPT:
- return new OrchestrationConfiguration("orchestration-encrypt-data-source", orchestrationCenterConfig, overwrite);
- case SHADOW:
- return new OrchestrationConfiguration("orchestration-shadow-data-source", orchestrationCenterConfig, overwrite);
- default:
- throw new UnsupportedOperationException(shardingType.toString());
- }
- }
-
- public static OrchestrationConfiguration getNacosConfiguration(final boolean overwrite, final ShardingType shardingType) {
- Properties nacosProperties = new Properties();
- nacosProperties.setProperty("group", "SHARDING_SPHERE_DEFAULT_GROUP");
- nacosProperties.setProperty("timeout", "3000");
- OrchestrationCenterConfiguration nacosConfig = new OrchestrationCenterConfiguration("Nacos", NACOS_CONNECTION_STRING, nacosProperties);
- Properties zookeeperProperties = new Properties();
- OrchestrationCenterConfiguration zookeeperConfig = new OrchestrationCenterConfiguration("ZooKeeper", ZOOKEEPER_CONNECTION_STRING, zookeeperProperties);
- switch (shardingType) {
- case SHARDING_DATABASES_AND_TABLES:
- return new OrchestrationConfiguration("orchestration-zookeeper-sharding-data-source", zookeeperConfig, nacosConfig, overwrite);
- case MASTER_SLAVE:
- return new OrchestrationConfiguration("orchestration-zookeeper-ms-data-source", zookeeperConfig, nacosConfig, overwrite);
- case ENCRYPT:
- return new OrchestrationConfiguration("orchestration-zookeeper-encrypt-data-source", zookeeperConfig, nacosConfig, overwrite);
- case SHADOW:
- return new OrchestrationConfiguration("orchestration-zookeeper-shadow-data-source", zookeeperConfig, nacosConfig, overwrite);
- default:
- throw new UnsupportedOperationException(shardingType.toString());
- }
- }
-}
diff --git a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-boot-example/src/main/resources/application-cloud-nacos-encrypt.properties b/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-boot-example/src/main/resources/application-cloud-nacos-encrypt.properties
deleted file mode 100644
index 1978af2..0000000
--- a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-boot-example/src/main/resources/application-cloud-nacos-encrypt.properties
+++ /dev/null
@@ -1,27 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#OrchestrationSpringBootRegistryShardingTest
-
-spring.shardingsphere.orchestration.name=demo1_spring_boot_ds_encrypt
-spring.shardingsphere.orchestration.overwrite=false
-
-spring.shardingsphere.orchestration.registry-center.type=ZooKeeper
-spring.shardingsphere.orchestration.registry-center.server-lists=localhost:2181
-
-spring.shardingsphere.orchestration.additional-config-center.type=Nacos
-spring.shardingsphere.orchestration.additional-config-center.server-lists=localhost:8848
-spring.shardingsphere.orchestration.additional-config-center.props.group=SHARDING_SPHERE_DEFAULT_GROUP
-spring.shardingsphere.orchestration.additional-config-center.props.operationTimeoutMilliseconds=3000
diff --git a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-boot-example/src/main/resources/application-cloud-nacos-shadow.properties b/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-boot-example/src/main/resources/application-cloud-nacos-shadow.properties
deleted file mode 100644
index 36fcdd8..0000000
--- a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-boot-example/src/main/resources/application-cloud-nacos-shadow.properties
+++ /dev/null
@@ -1,27 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-
-spring.shardingsphere.orchestration.name=demo1_spring_boot_ds_shadow
-spring.shardingsphere.orchestration.overwrite=false
-
-spring.shardingsphere.orchestration.registry-center.type=ZooKeeper
-spring.shardingsphere.orchestration.registry-center.server-lists=localhost:2181
-
-spring.shardingsphere.orchestration.additional-config-center.type=Nacos
-spring.shardingsphere.orchestration.additional-config-center.server-lists=localhost:8848
-spring.shardingsphere.orchestration.additional-config-center.props.group=SHARDING_SPHERE_DEFAULT_GROUP
-spring.shardingsphere.orchestration.additional-config-center.props.operationTimeoutMilliseconds=3000
diff --git a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-boot-example/src/main/resources/application-cloud-nacos-sharding-databases-tables.properties b/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-boot-example/src/main/resources/application-cloud-nacos-sharding-databases-tables.properties
deleted file mode 100644
index a46c1c6..0000000
--- a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-boot-example/src/main/resources/application-cloud-nacos-sharding-databases-tables.properties
+++ /dev/null
@@ -1,27 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-
-spring.shardingsphere.orchestration.name=demo1_spring_boot_ds_sharding
-spring.shardingsphere.orchestration.overwrite=false
-
-spring.shardingsphere.orchestration.registry-center.type=ZooKeeper
-spring.shardingsphere.orchestration.registry-center.server-lists=localhost:2181
-
-spring.shardingsphere.orchestration.additional-config-center.type=Nacos
-spring.shardingsphere.orchestration.additional-config-center.server-lists=localhost:8848
-spring.shardingsphere.orchestration.additional-config-center.group=SHARDING_SPHERE_DEFAULT_GROUP
-spring.shardingsphere.orchestration.additional-config-center.operationTimeoutMilliseconds=3000
diff --git a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-boot-example/src/main/resources/application-cloud-zookeeper-sharding-databases-tables.properties b/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-boot-example/src/main/resources/application-cloud-zookeeper-sharding-databases-tables.properties
deleted file mode 100644
index bd27b0e..0000000
--- a/examples/shardingsphere-jdbc-example/orchestration-example/orchestration-spring-boot-example/src/main/resources/application-cloud-zookeeper-sharding-databases-tables.properties
+++ /dev/null
@@ -1,22 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-
-spring.shardingsphere.orchestration.name=demo_spring_boot_ds_sharding
-spring.shardingsphere.orchestration.overwrite=false
-
-spring.shardingsphere.orchestration.registry-center.type=ZooKeeper
-spring.shardingsphere.orchestration.registry-center.server-lists=localhost:2181
diff --git a/examples/shardingsphere-jdbc-example/pom.xml b/examples/shardingsphere-jdbc-example/pom.xml
index ec373fb..0cc2c0e 100644
--- a/examples/shardingsphere-jdbc-example/pom.xml
+++ b/examples/shardingsphere-jdbc-example/pom.xml
@@ -31,7 +31,7 @@
<modules>
<module>sharding-example</module>
- <module>orchestration-example</module>
+ <module>governance-example</module>
<module>transaction-example</module>
<module>other-feature-example</module>
</modules>
diff --git a/examples/shardingsphere-proxy-example/shardingsphere-proxy-boot-mybatis-example/src/main/resources/conf/server.yaml b/examples/shardingsphere-proxy-example/shardingsphere-proxy-boot-mybatis-example/src/main/resources/conf/server.yaml
index 49fc20d..b3bc6ca 100644
--- a/examples/shardingsphere-proxy-example/shardingsphere-proxy-boot-mybatis-example/src/main/resources/conf/server.yaml
+++ b/examples/shardingsphere-proxy-example/shardingsphere-proxy-boot-mybatis-example/src/main/resources/conf/server.yaml
@@ -17,12 +17,12 @@
######################################################################################################
#
-# If you want to configure orchestration, authorization and proxy properties, please refer to this file.
+# If you want to configure governance, authorization and proxy properties, please refer to this file.
#
######################################################################################################
#
-#orchestration:
-# name: orchestration_ds
+#governance:
+# name: governance_ds
# registryCenter:
# type: ZooKeeper
# serverLists: localhost:2181
diff --git a/examples/shardingsphere-proxy-example/shardingsphere-proxy-hint-example/src/main/resources/conf/server.yaml b/examples/shardingsphere-proxy-example/shardingsphere-proxy-hint-example/src/main/resources/conf/server.yaml
index 67ca4f6..1a56151 100644
--- a/examples/shardingsphere-proxy-example/shardingsphere-proxy-hint-example/src/main/resources/conf/server.yaml
+++ b/examples/shardingsphere-proxy-example/shardingsphere-proxy-hint-example/src/main/resources/conf/server.yaml
@@ -17,12 +17,12 @@
######################################################################################################
#
-# If you want to configure orchestration, authorization and proxy properties, please refer to this file.
+# If you want to configure governance, authorization and proxy properties, please refer to this file.
#
######################################################################################################
#
-#orchestration:
-# name: orchestration_ds
+#governance:
+# name: governance_ds
# registryCenter:
# type: ZooKeeper
# serverLists: localhost:2181