zoukankan      html  css  js  c++  java
  • CloudStack服务引擎配置(cloud-engine-service模块)

    <?xml version="1.0" encoding="UTF-8"?>
    <!--CloudStack服务引擎配置-->
    <beans xmlns="http://www.springframework.org/schema/beans"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jaxrs="http://cxf.apache.org/jaxrs"
      xmlns:context="http://www.springframework.org/schema/context"
      xsi:schemaLocation="
           http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
           http://cxf.apache.org/jaxrs http://cxf.apache.org/schemas/jaxrs.xsd
           http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd">
    
      <import resource="classpath:META-INF/cxf/cxf.xml" />
      <import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
      <!--spring自动扫描组建-->
      <context:component-scan base-package="org.apache.cloudstack" />
      <!--CloudStack服务类型注册,采用REST风格-->
      <jaxrs:server id="EngineService" address="/">
        <jaxrs:serviceBeans>
          <ref bean="ZoneRestService" />
          <ref bean="PodRestService" />
          <ref bean="ClusterRestService" />
          <ref bean="VirtualMachineRestService" />
          <ref bean="VolumeRestService" />
        </jaxrs:serviceBeans>
        <jaxrs:providers>
          <bean class="com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider" />
        </jaxrs:providers>
      </jaxrs:server>
      
      <bean id="onwireRegistry" class="org.apache.cloudstack.framework.serializer.OnwireClassRegistry"
        init-method="scan" >
        <property name="packages">
          <list>
            <value>org.apache.cloudstack.framework</value>
          </list>
        </property>
      </bean>
      
    <!--消息序列化--> <bean id="messageSerializer" class="org.apache.cloudstack.framework.serializer.JsonMessageSerializer"> <property name="onwireClassRegistry" ref="onwireRegistry" /> </bean> <bean id="transportProvider" class="org.apache.cloudstack.framework.server.ServerTransportProvider" init-method="initialize"> <property name="workerPoolSize" value="5" /> <property name="nodeId" value="Node1" /> <property name="messageSerializer" ref="messageSerializer" /> </bean>
    <!--远程调用提供--> <bean id="rpcProvider" class="org.apache.cloudstack.framework.rpc.RpcProviderImpl" init-method="initialize"> <constructor-arg ref="transportProvider" /> <property name="messageSerializer" ref="messageSerializer" /> </bean> <bean id="eventBus" class = "org.apache.cloudstack.framework.eventbus.EventBusBase" /> </beans>
  • 相关阅读:
    cf1100 F. Ivan and Burgers
    cf 1033 D. Divisors
    LeetCode 17. 电话号码的字母组合
    LeetCode 491. 递增的子序列
    LeetCode 459.重复的子字符串
    LeetCode 504. 七进制数
    LeetCode 3.无重复字符的最长子串
    LeetCode 16.06. 最小差
    LeetCode 77. 组合
    LeetCode 611. 有效三角形个数
  • 原文地址:https://www.cnblogs.com/heidsoft/p/3522851.html
Copyright © 2011-2022 走看看