提交 121d61ba 编写于 作者: H haocao

Refactor orchestration yaml configuration.

上级 db2221b6
......@@ -46,6 +46,9 @@ public class YamlOrchestrationConfiguration {
* @return orchestration master-slave rule configuration from yaml
*/
public OrchestrationConfiguration getOrchestrationConfiguration() {
if (null != etcd && null != zookeeper) {
throw new RuntimeException("Can't config both zookeeper and etcd as registry center!");
}
return new OrchestrationConfiguration(getName(), null != etcd ? etcd : zookeeper, overwrite);
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册