Search in sources :

Example 1 with RegistryConfigBean

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;
}
Also used : RegistryConfigBean(com.weibo.api.motan.config.springsupport.RegistryConfigBean) ProtocolConfigBean(com.weibo.api.motan.config.springsupport.ProtocolConfigBean) BasicServiceConfigBean(com.weibo.api.motan.config.springsupport.BasicServiceConfigBean) Bean(org.springframework.context.annotation.Bean) RegistryConfigBean(com.weibo.api.motan.config.springsupport.RegistryConfigBean)

Example 2 with RegistryConfigBean

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;
}
Also used : RegistryConfigBean(com.weibo.api.motan.config.springsupport.RegistryConfigBean) ProtocolConfigBean(com.weibo.api.motan.config.springsupport.ProtocolConfigBean) AnnotationBean(com.weibo.api.motan.config.springsupport.AnnotationBean) BasicServiceConfigBean(com.weibo.api.motan.config.springsupport.BasicServiceConfigBean) Bean(org.springframework.context.annotation.Bean) RegistryConfigBean(com.weibo.api.motan.config.springsupport.RegistryConfigBean)

Example 3 with RegistryConfigBean

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;
}
Also used : RegistryConfigBean(com.weibo.api.motan.config.springsupport.RegistryConfigBean) ProtocolConfigBean(com.weibo.api.motan.config.springsupport.ProtocolConfigBean) AnnotationBean(com.weibo.api.motan.config.springsupport.AnnotationBean) BasicServiceConfigBean(com.weibo.api.motan.config.springsupport.BasicServiceConfigBean) Bean(org.springframework.context.annotation.Bean) RegistryConfigBean(com.weibo.api.motan.config.springsupport.RegistryConfigBean)

Example 4 with RegistryConfigBean

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;
}
Also used : RegistryConfigBean(com.weibo.api.motan.config.springsupport.RegistryConfigBean) ProtocolConfigBean(com.weibo.api.motan.config.springsupport.ProtocolConfigBean) BasicRefererConfigBean(com.weibo.api.motan.config.springsupport.BasicRefererConfigBean) AnnotationBean(com.weibo.api.motan.config.springsupport.AnnotationBean) Bean(org.springframework.context.annotation.Bean) RegistryConfigBean(com.weibo.api.motan.config.springsupport.RegistryConfigBean)

Example 5 with RegistryConfigBean

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;
}
Also used : RegistryConfigBean(com.weibo.api.motan.config.springsupport.RegistryConfigBean) ProtocolConfigBean(com.weibo.api.motan.config.springsupport.ProtocolConfigBean) BasicServiceConfigBean(com.weibo.api.motan.config.springsupport.BasicServiceConfigBean) Bean(org.springframework.context.annotation.Bean) RegistryConfigBean(com.weibo.api.motan.config.springsupport.RegistryConfigBean)

Aggregations

ProtocolConfigBean (com.weibo.api.motan.config.springsupport.ProtocolConfigBean)6 RegistryConfigBean (com.weibo.api.motan.config.springsupport.RegistryConfigBean)6 Bean (org.springframework.context.annotation.Bean)6 BasicServiceConfigBean (com.weibo.api.motan.config.springsupport.BasicServiceConfigBean)4 AnnotationBean (com.weibo.api.motan.config.springsupport.AnnotationBean)3 BasicRefererConfigBean (com.weibo.api.motan.config.springsupport.BasicRefererConfigBean)2