2015-02-09 65 views
2

我開始使用infinispan 5.3並根據我的需要準備配置文件。現在我想遷移到infinispan 7.但是我在找到等效的infinispan 7配置文件時發現了很多問題。請幫助我找到infinispan 7.但是我在找到等效的infinispan 7配置文件時發現了很多問題。這是我的infinispan 5配置文件。將infinispan 5遷移到infinspan 7

<?xml version="1.0" encoding="UTF-8"?> 
<infinispan 
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
     xsi:schemaLocation="urn:infinispan:config:5.1 http://www.infinispan.org/schemas/infinispan-config-5.1.xsd" 
     xmlns="urn:infinispan:config:5.1"> 

    <global> 

     <asyncListenerExecutor 
      factory="org.infinispan.executors.DefaultExecutorFactory"> 
      <properties> 
       <property name="maxThreads" value="5" /> 
       <property name="threadNamePrefix" 
        value="AsyncListenerThread" /> 
      </properties> 
     </asyncListenerExecutor> 

     <asyncTransportExecutor 
      factory="org.infinispan.executors.DefaultExecutorFactory"> 
      <properties> 
       <property name="maxThreads" value="20" /> 
       <property name="threadNamePrefix" 
        value="AsyncSerializationThread" /> 
      </properties> 
     </asyncTransportExecutor> 

     <evictionScheduledExecutor 
      factory="org.infinispan.executors.DefaultScheduledExecutorFactory"> 
      <properties> 
       <property name="threadNamePrefix" 
        value="EvictionThread" /> 
      </properties> 
     </evictionScheduledExecutor> 

     <replicationQueueScheduledExecutor 
      factory="org.infinispan.executors.DefaultScheduledExecutorFactory"> 
      <properties> 
       <property name="threadNamePrefix" 
        value="ReplicationQueueThread" /> 
      </properties> 
     </replicationQueueScheduledExecutor> 

     <globalJmxStatistics enabled="false" jmxDomain="infinispan" /> 

     <transport clusterName="PC_SITE_1" 
      distributedSyncTimeout="50000" 
      transportClass="org.infinispan.remoting.transport.jgroups.JGroupsTransport" 
      nodeName=""> 
      <properties> 
       <property name="configurationFile" 
        value="./tmp/_clusterconfig/pc_jgroups_main.xml" /> 
      </properties> 
     </transport> 

     <serialization 
      marshallerClass="org.infinispan.marshall.VersionAwareMarshaller" 
      version="1.0" /> 


     <shutdown hookBehavior="DEFAULT" /> 

    </global> 

    <default> 
     <locking isolationLevel="READ_COMMITTED" 
      lockAcquisitionTimeout="60000" writeSkewCheck="false" 
      concurrencyLevel="5000" useLockStriping="false" /> 
     <jmxStatistics enabled="false" /> 
     <storeAsBinary enabled="true"/> 
    </default> 

    <namedCache name="GLOBAL_ASYNC_CACHE"> 

    <transaction 
         transactionManagerLookupClass="com.suntecgroup.tbms.container.services.cluster.ContainerCacheTxManagerLookup" 
      syncRollbackPhase="false" syncCommitPhase="false" 
      useEagerLocking="false" lockingMode="PESSIMISTIC"/> 
     <clustering mode="replication"> 
      <!--<async useReplQueue="true" replQueueInterval="100" 
      asyncMarshalling="true" replQueueMaxElements="10000" />--> 
      <sync replTimeout="360000" /> 
      <stateTransfer timeout="360000" fetchInMemoryState="true" /> 
     </clustering> 
     <lazyDeserialization enabled="true" /> 
    </namedCache> 
    <namedCache name="GLOBAL_ASYNC_STR_CACHE"> 
    <transaction transactionMode="NON_TRANSACTIONAL" /> 
     <clustering mode="replication"> 
      <sync replTimeout="360000" /> 
      <stateTransfer timeout="360000" fetchInMemoryState="true" /> 
     </clustering> 
    </namedCache> 

    <namedCache name="GLOBAL_ASYNC_STR_EVCT_CACHE"> 
    <transaction transactionMode="NON_TRANSACTIONAL" /> 
     <clustering mode="replication"> 
      <sync replTimeout="360000" /> 
      <stateTransfer timeout="360000" fetchInMemoryState="true" /> 
     </clustering> 
    </namedCache> 

    <namedCache name="LOCAL_CACHE"> 

    <transaction 
      transactionManagerLookupClass="com.suntecgroup.tbms.container.services.cluster.ContainerCacheTxManagerLookup" 
      syncRollbackPhase="false" syncCommitPhase="false" 
      useEagerLocking="false" lockingMode="PESSIMISTIC"/> 

    </namedCache> 

</infinispan> 
+0

這裏是一個非常類似的主題:[遷移Infinispan的xml配置從6.x的到7.x] http://stackoverflow.com/問題/ 28021468 /遷移-的Infinispan-XML的配置從 - 6-X到7-X/28040287#28040287 – altanis 2015-02-10 09:40:43

回答

1

線程池設置在元素中配置,然後您設置使用它們(按名稱綁定)在元素上。這移出元素(這已被刪除)。

默認緩存沒有被定義爲它自己的元素,但它被聲明爲只是另一個緩存,然後緩存容器定義哪一個是屬性中的默認緩存。

與某些聚類模式命名緩存已成爲它自己的元件等