use of com.weibo.api.motan.config.springsupport.RegistryConfigBean in project motan by weibocom.
the class AnnotationRpcServerDemo method registryProxyConfig.
@Bean(name = "proxy_reg")
public RegistryConfigBean registryProxyConfig() {
RegistryConfigBean config = new RegistryConfigBean();
config.setRegProtocol("weibomesh");
config.setProxyRegistryId("registryConfig1");
return config;
}
use of com.weibo.api.motan.config.springsupport.RegistryConfigBean in project motan by weibocom.
the class SpringBootRpcServerDemo method registryConfig.
@Bean(name = "registryConfig1")
public RegistryConfigBean registryConfig() {
RegistryConfigBean config = new RegistryConfigBean();
config.setRegProtocol("local");
return config;
}
use of com.weibo.api.motan.config.springsupport.RegistryConfigBean in project motan by weibocom.
the class SpringBootRpcServerDemo method registryConfig.
@Bean(name = "registryConfig1")
public RegistryConfigBean registryConfig() {
RegistryConfigBean config = new RegistryConfigBean();
config.setRegProtocol("local");
return config;
}
use of com.weibo.api.motan.config.springsupport.RegistryConfigBean in project motan by weibocom.
the class SpringBootRpcClientDemo method registryConfig.
@Bean(name = "registry")
public RegistryConfigBean registryConfig() {
RegistryConfigBean config = new RegistryConfigBean();
config.setRegProtocol("direct");
config.setAddress("127.0.0.1:8002");
return config;
}
use of com.weibo.api.motan.config.springsupport.RegistryConfigBean in project motan by weibocom.
the class AnnotationRpcServerDemo method registryConfig.
@Bean(name = "registryConfig1")
public RegistryConfigBean registryConfig() {
RegistryConfigBean config = new RegistryConfigBean();
// config.setRegProtocol("zookeeper");
// config.setAddress("127.0.0.1:2181");
config.setRegProtocol("local");
return config;
}
Aggregations