Loading sharding-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/orchestration/raw/jdbc/config/RegistryCenterConfigurationUtil.java +2 −2 Original line number Diff line number Diff line Loading @@ -28,14 +28,14 @@ public class RegistryCenterConfigurationUtil { private static final String ETCD_CONNECTION_STRING = "http://localhost:2379"; public static RegistryCenterConfiguration getZooKeeperConfiguration() { RegistryCenterConfiguration result = new RegistryCenterConfiguration(); RegistryCenterConfiguration result = new RegistryCenterConfiguration("zookeeper"); result.setServerLists(ZOOKEEPER_CONNECTION_STRING); result.setNamespace(NAMESPACE); return result; } public static RegistryCenterConfiguration getEtcdConfiguration() { RegistryCenterConfiguration result = new RegistryCenterConfiguration(); RegistryCenterConfiguration result = new RegistryCenterConfiguration("etcd"); result.setServerLists(ETCD_CONNECTION_STRING); return result; } Loading sharding-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/resources/META-INF/zookeeper/cloud/master-slave.yaml +1 −0 Original line number Diff line number Diff line Loading @@ -2,5 +2,6 @@ orchestration: name: demo_yaml_ds_ms overwrite: false registry: type: zookeeper serverLists: localhost:2181 namespace: orchestration-yaml-demo sharding-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/resources/META-INF/zookeeper/cloud/sharding-databases-tables.yaml +1 −0 Original line number Diff line number Diff line Loading @@ -2,5 +2,6 @@ orchestration: name: demo_yaml_ds_sharding overwrite: false registry: type: zookeeper serverLists: localhost:2181 namespace: orchestration-yaml-demo sharding-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/resources/META-INF/zookeeper/local/master-slave.yaml +1 −0 Original line number Diff line number Diff line Loading @@ -27,5 +27,6 @@ orchestration: name: demo_yaml_ds_ms overwrite: true registry: type: zookeeper serverLists: localhost:2181 namespace: orchestration-yaml-demo sharding-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/resources/META-INF/zookeeper/local/sharding-databases-tables.yaml +1 −0 Original line number Diff line number Diff line Loading @@ -44,5 +44,6 @@ orchestration: name: demo_yaml_ds_sharding overwrite: true registry: type: zookeeper serverLists: localhost:2181 namespace: orchestration-yaml-demo Loading
sharding-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/orchestration/raw/jdbc/config/RegistryCenterConfigurationUtil.java +2 −2 Original line number Diff line number Diff line Loading @@ -28,14 +28,14 @@ public class RegistryCenterConfigurationUtil { private static final String ETCD_CONNECTION_STRING = "http://localhost:2379"; public static RegistryCenterConfiguration getZooKeeperConfiguration() { RegistryCenterConfiguration result = new RegistryCenterConfiguration(); RegistryCenterConfiguration result = new RegistryCenterConfiguration("zookeeper"); result.setServerLists(ZOOKEEPER_CONNECTION_STRING); result.setNamespace(NAMESPACE); return result; } public static RegistryCenterConfiguration getEtcdConfiguration() { RegistryCenterConfiguration result = new RegistryCenterConfiguration(); RegistryCenterConfiguration result = new RegistryCenterConfiguration("etcd"); result.setServerLists(ETCD_CONNECTION_STRING); return result; } Loading
sharding-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/resources/META-INF/zookeeper/cloud/master-slave.yaml +1 −0 Original line number Diff line number Diff line Loading @@ -2,5 +2,6 @@ orchestration: name: demo_yaml_ds_ms overwrite: false registry: type: zookeeper serverLists: localhost:2181 namespace: orchestration-yaml-demo
sharding-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/resources/META-INF/zookeeper/cloud/sharding-databases-tables.yaml +1 −0 Original line number Diff line number Diff line Loading @@ -2,5 +2,6 @@ orchestration: name: demo_yaml_ds_sharding overwrite: false registry: type: zookeeper serverLists: localhost:2181 namespace: orchestration-yaml-demo
sharding-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/resources/META-INF/zookeeper/local/master-slave.yaml +1 −0 Original line number Diff line number Diff line Loading @@ -27,5 +27,6 @@ orchestration: name: demo_yaml_ds_ms overwrite: true registry: type: zookeeper serverLists: localhost:2181 namespace: orchestration-yaml-demo
sharding-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/resources/META-INF/zookeeper/local/sharding-databases-tables.yaml +1 −0 Original line number Diff line number Diff line Loading @@ -44,5 +44,6 @@ orchestration: name: demo_yaml_ds_sharding overwrite: true registry: type: zookeeper serverLists: localhost:2181 namespace: orchestration-yaml-demo