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>
  • 相关阅读:
    【HBase】三、HBase和RDBMS的比较
    【HBase】二、HBase实现原理及系统架构
    【HBase】一、分布式数据库HBase简介
    【LeetCode】9、Palindrome Number(回文数)
    【LeetCode】7、Reverse Integer(整数反转)
    【HDFS】四、HDFS的java接口
    【HDFS】三、HDFS命令行接口
    【HDFS】二、HDFS文件读写流程
    【HDFS】一、HDFS简介及基本概念
    【Redis】四、Redis设计原理及相关问题
  • 原文地址:https://www.cnblogs.com/heidsoft/p/3522851.html
Copyright © 2011-2022 走看看