Search in sources :

Example 1 with BasicServiceConfigBean

use of com.weibo.api.motan.config.springsupport.BasicServiceConfigBean in project motan by weibocom.

the class SpringBootRpcServerDemo method baseServiceConfig.

@Bean
public BasicServiceConfigBean baseServiceConfig() {
    BasicServiceConfigBean config = new BasicServiceConfigBean();
    config.setExport("demoMotan:8002");
    config.setGroup("testgroup");
    config.setAccessLog(false);
    config.setShareChannel(true);
    config.setModule("motan-demo-rpc");
    config.setApplication("myMotanDemo");
    config.setRegistry("registryConfig1");
    return config;
}
Also used : BasicServiceConfigBean(com.weibo.api.motan.config.springsupport.BasicServiceConfigBean) 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 2 with BasicServiceConfigBean

use of com.weibo.api.motan.config.springsupport.BasicServiceConfigBean in project motan by weibocom.

the class SpringBootRpcServerDemo method baseServiceConfig.

@Bean
public BasicServiceConfigBean baseServiceConfig() {
    BasicServiceConfigBean config = new BasicServiceConfigBean();
    config.setExport("demoMotan:8002");
    config.setGroup("testgroup");
    config.setAccessLog(false);
    config.setShareChannel(true);
    config.setModule("motan-demo-rpc");
    config.setApplication("myMotanDemo");
    config.setRegistry("registryConfig1");
    return config;
}
Also used : BasicServiceConfigBean(com.weibo.api.motan.config.springsupport.BasicServiceConfigBean) 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 BasicServiceConfigBean

use of com.weibo.api.motan.config.springsupport.BasicServiceConfigBean in project motan by weibocom.

the class AnnotationRpcServerDemo method baseServiceConfig.

@Bean
public BasicServiceConfigBean baseServiceConfig() {
    BasicServiceConfigBean config = new BasicServiceConfigBean();
    config.setExport("demoMotan:8002");
    config.setGroup("motan-demo-rpc");
    config.setAccessLog(false);
    config.setShareChannel(true);
    config.setModule("motan-demo-rpc");
    config.setApplication("myMotanDemo");
    config.setRegistry("registryConfig1");
    return config;
}
Also used : BasicServiceConfigBean(com.weibo.api.motan.config.springsupport.BasicServiceConfigBean) 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

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