Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spring.schema支持 JAcceptor配置 #29

Closed
fengjiachun opened this issue Jul 11, 2017 · 1 comment
Closed

Spring.schema支持 JAcceptor配置 #29

fengjiachun opened this issue Jul 11, 2017 · 1 comment

Comments

@fengjiachun
Copy link
Owner

fengjiachun commented Jul 11, 2017

Spring.schema目前没有放开对JAcceptor/JConnector 端口, work线程数...等配置

@fengjiachun
Copy link
Owner Author

fengjiachun commented Jul 11, 2017

<bean id="acceptor" class="org.jupiter.transport.netty.JNettyTcpAcceptor">
    <constructor-arg index="0" value="18090"/>
</bean>

<jupiter:server id="jupiterServer" acceptor="acceptor">
    <jupiter:property registryServerAddresses="127.0.0.1:20001" />
    <!-- 可选配置 -->
    <!--
        String registryServerAddresses                      // 注册中心地址 [host1:port1,host2:port2....]
        ProviderInterceptor[] providerInterceptors          // 全局拦截器
        FlowController<JRequest> flowController             // 全局流量控制
    -->
</jupiter:server>



<bean id="connector" class="org.jupiter.transport.netty.JNettyTcpConnector">
    <constructor-arg index="0" value="false"/>
</bean>

<jupiter:client id="jupiterClient" appName="test" connector="connector">
    <jupiter:property registryServerAddresses="127.0.0.1:20001" />
    <!-- 可选配置 -->
    <!--
        String registryServerAddresses                  // 注册中心地址 [host1:port1,host2:port2....]
        String providerServerAddresses                  // IP直连到providers [host1:port1,host2:port2....]
    -->
</jupiter:client>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant