[infinispan-commits] Infinispan SVN: r621 - trunk/core/src/main/resources/schema.

infinispan-commits at lists.jboss.org infinispan-commits at lists.jboss.org
Tue Jul 28 10:23:54 EDT 2009


Author: vblagojevic at jboss.com
Date: 2009-07-28 10:23:53 -0400 (Tue, 28 Jul 2009)
New Revision: 621

Removed:
   trunk/core/src/main/resources/schema/infinispan-config-4.0.xsd
Log:
[ISPN-97] - Improve configuration processing and maintenance
jaxb based configuration processing

Deleted: trunk/core/src/main/resources/schema/infinispan-config-4.0.xsd
===================================================================
--- trunk/core/src/main/resources/schema/infinispan-config-4.0.xsd	2009-07-28 14:21:43 UTC (rev 620)
+++ trunk/core/src/main/resources/schema/infinispan-config-4.0.xsd	2009-07-28 14:23:53 UTC (rev 621)
@@ -1,290 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified"
-           xmlns:tns="urn:infinispan:config:4.0" targetNamespace="urn:infinispan:config:4.0"
-           xmlns:xs="http://www.w3.org/2001/XMLSchema" version="1.0">
-
-   <xs:element name="infinispan" type="tns:cacheManagerConfigurationType"/>
-
-   <xs:complexType name="cacheManagerConfigurationType">
-      <xs:sequence>
-         <xs:element name="global" type="tns:globalCacheConfigurationType" minOccurs="0" maxOccurs="1"/>
-         <xs:element name="default" type="tns:cacheConfigurationType" minOccurs="0" maxOccurs="1"/>
-         <xs:element name="namedCache" type="tns:cacheConfigurationType" maxOccurs="unbounded" minOccurs="0"/>
-      </xs:sequence>
-   </xs:complexType>
-
-   <xs:complexType name="globalCacheConfigurationType">
-      <xs:all>
-         <xs:element name="serialization" type="tns:sharedSerializationType" minOccurs="0" maxOccurs="1"/>
-         <xs:element name="globalJmxStatistics" type="tns:globalJmxStatisticsType" minOccurs="0" maxOccurs="1"/>
-         <xs:element name="transport" type="tns:transportConfigType" minOccurs="0" maxOccurs="1"/>
-         <xs:element name="asyncListenerExecutor" type="tns:executorConfigurationType" minOccurs="0" maxOccurs="1"/>
-         <xs:element name="asyncTransportExecutor" type="tns:executorConfigurationType" minOccurs="0"
-                     maxOccurs="1"/>
-         <xs:element name="evictionScheduledExecutor" type="tns:executorConfigurationType" minOccurs="0"
-                     maxOccurs="1"/>
-         <xs:element name="replicationQueueScheduledExecutor" type="tns:executorConfigurationType" minOccurs="0"
-                     maxOccurs="1"/>
-         <xs:element name="shutdown" type="tns:shutdownType" minOccurs="0" maxOccurs="1"/>
-      </xs:all>
-   </xs:complexType>
-
-   <xs:complexType name="sharedSerializationType">
-      <xs:attribute name="version" type="xs:string"/>
-      <xs:attribute name="marshallerClass" type="xs:string"/>
-   </xs:complexType>
-
-   <xs:complexType name="globalJmxStatisticsType">
-      <xs:attribute name="enabled" type="tns:booleanType"/>
-      <xs:attribute name="jmxDomain" type="xs:string"/>
-      <xs:attribute name="mBeanServerLookup" type="xs:string"/>
-      <xs:attribute name="allowDuplicateDomains" type="tns:booleanType"/>
-   </xs:complexType>
-
-   <xs:complexType name="executorConfigurationType">
-      <xs:sequence>
-         <xs:element name="property" minOccurs="0" maxOccurs="unbounded" type="tns:propertyType"/>
-      </xs:sequence>
-      <xs:attribute name="factory" type="xs:string"/>
-   </xs:complexType>
-
-   <xs:complexType name="cacheConfigurationType">
-      <xs:all>
-         <xs:element name="locking" type="tns:lockingType" minOccurs="0" maxOccurs="1"/>
-         <xs:element name="transaction" type="tns:transactionType" minOccurs="0" maxOccurs="1"/>
-         <xs:element name="jmxStatistics" type="tns:jmxStatisticsType" minOccurs="0" maxOccurs="1"/>
-         <xs:element name="lazyDeserialization" type="tns:lazyDeserializationType" minOccurs="0" maxOccurs="1"/>
-         <xs:element name="invocationBatching" type="tns:invocationBatchingType" minOccurs="0" maxOccurs="1"/>
-         <xs:element name="eviction" type="tns:evictionType" minOccurs="0" maxOccurs="1"/>
-         <xs:element name="expiration" type="tns:expirationType" minOccurs="0" maxOccurs="1"/>
-         <xs:element name="loaders" type="tns:loadersType" minOccurs="0" maxOccurs="1"/>
-         <xs:element name="customInterceptors" type="tns:customInterceptorsType" minOccurs="0" maxOccurs="1"/>
-         <xs:element name="clustering" type="tns:clusteringType" minOccurs="0" maxOccurs="1"/>
-         <xs:element name="deadlockDetection" type="tns:deadlockDetectionType" minOccurs="0" maxOccurs="1"/>
-         <xs:element name="unsafe" type="tns:unsafeType" minOccurs="0" maxOccurs="1"/>
-      </xs:all>
-      <xs:attribute name="name" type="xs:string"/>
-   </xs:complexType>
-
-   <xs:complexType name="clusteringType">
-      <xs:all>
-         <xs:element name="sync" type="tns:syncType" minOccurs="0" maxOccurs="1"/>
-         <xs:element name="async" type="tns:asyncType" minOccurs="0" maxOccurs="1"/>
-         <xs:element name="stateRetrieval" type="tns:stateRetrievalType" minOccurs="0" maxOccurs="1"/>
-         <xs:element name="hash" type="tns:hashType" minOccurs="0" maxOccurs="1"/>
-         <xs:element name="l1" type="tns:l1Type" minOccurs="0" maxOccurs="1"/>
-      </xs:all>
-      <xs:attribute name="mode">
-         <xs:simpleType>
-            <xs:restriction base="xs:string">
-               <xs:pattern
-                     value="[Rr][Ee][Pp][Ll][Ii][Cc][Aa][Tt][Ii][Oo][Nn]|[Ii][Nn][Vv][Aa][Ll][Ii][Dd][Aa][Tt][Ii][Oo][Nn]|[Dd][Ii][Ss][Tt][Rr][Ii][Bb][Uu][Tt][Ii][Oo][Nn]|[Rr]|[Ii]|[Dd]|[Rr][Ee][Pp][Ll]|[Ii][Nn][Vv][Aa][Ll]|[Dd][Ii][Ss][Tt]|\$\{.*\}"/>
-            </xs:restriction>
-         </xs:simpleType>
-      </xs:attribute>
-   </xs:complexType>
-
-   <xs:complexType name="lockingType">
-      <xs:attribute name="isolationLevel">
-         <xs:simpleType>
-            <xs:restriction base="xs:string">
-               <xs:pattern
-                     value="[Ss][Ee][Rr][Ii][Aa][Ll][Ii][Zz][Aa][Bb][Ll][Ee]|[Rr][Ee][Pp][Ee][Aa][Tt][Aa][Bb][Ll][Ee]_[Rr][Ee][Aa][Dd]|[Rr][Ee][Aa][Dd]_[Cc][Oo][Mm][Mm][Ii][Tt][Tt][Ee][Dd]|[Nn][Oo][Nn][Ee]|\$\{.*\}"/>
-            </xs:restriction>
-         </xs:simpleType>
-      </xs:attribute>
-      <xs:attribute name="lockAcquisitionTimeout" type="tns:positiveNumber"/>
-      <xs:attribute name="writeSkewCheck" type="tns:booleanType"/>
-      <xs:attribute name="useLockStriping" type="tns:booleanType"/>
-      <xs:attribute name="concurrencyLevel" type="xs:integer"/>
-   </xs:complexType>
-
-   <xs:complexType name="transactionType">
-      <xs:attribute name="transactionManagerLookupClass" type="xs:string"/>
-      <xs:attribute name="syncRollbackPhase" type="tns:booleanType"/>
-      <xs:attribute name="syncCommitPhase" type="tns:booleanType"/>
-      <xs:attribute name="useEagerLocking" type="tns:booleanType"/>
-   </xs:complexType>
-
-   <xs:complexType name="stateRetrievalType">
-      <xs:attribute name="fetchInMemoryState" type="tns:booleanType"/>
-      <xs:attribute name="timeout" type="tns:positiveNumber"/>
-   </xs:complexType>
-
-   <xs:complexType name="hashType">
-      <xs:attribute name="class" type="xs:string"/>
-      <xs:attribute name="numOwners" type="tns:positiveNumber"/>
-      <xs:attribute name="rehashWait" type="tns:positiveNumber"/>
-      <!-- This timeout is the sync repl timeout passed to JGroups for all rehash-related RPC calls -->
-      <xs:attribute name="rehashRpcTimeout" type="tns:positiveNumber"/>
-   </xs:complexType>
-
-   <xs:complexType name="l1Type">
-      <xs:attribute name="enabled" type="tns:booleanType"/>
-      <xs:attribute name="onRehash" type="tns:booleanType"/>
-      <xs:attribute name="lifespan" type="tns:positiveNumber"/>
-   </xs:complexType>
-
-   <xs:complexType name="shutdownType">
-      <xs:attribute name="hookBehavior">
-         <xs:simpleType>
-            <xs:restriction base="xs:string">
-               <xs:pattern
-                     value="[Dd][Ee][Ff][Aa][Uu][Ll][Tt]|[Rr][Ee][Gg][Ii][Ss][Tt][Ee][Rr]|[Dd][Oo][Nn][Tt]_[Rr][Ee][Gg][Ii][Ss][Tt][Ee][Rr]|\$\{.*\}"/>
-            </xs:restriction>
-         </xs:simpleType>
-      </xs:attribute>
-   </xs:complexType>
-
-   <xs:simpleType name="booleanType">
-      <xs:restriction base="xs:string">
-         <xs:pattern value="\$\{.*\}|[Tt][Rr][Uu][Ee]|[Ff][Aa][Ll][Ss][Ee]"/>
-      </xs:restriction>
-   </xs:simpleType>
-
-   <xs:simpleType name="positiveNumber">
-      <xs:restriction base="xs:string">
-         <xs:pattern value="\$\{.*\}|\+?[0-9]*"/>
-      </xs:restriction>
-   </xs:simpleType>
-
-   <xs:complexType name="jmxStatisticsType">
-      <xs:attribute name="enabled" type="tns:booleanType"/>
-   </xs:complexType>
-
-   <xs:complexType name="lazyDeserializationType">
-      <xs:attribute name="enabled" type="tns:booleanType"/>
-   </xs:complexType>
-
-   <xs:complexType name="unsafeType">
-      <xs:attribute name="unreliableReturnValues" type="tns:booleanType"/>
-   </xs:complexType>
-
-   <xs:complexType name="invocationBatchingType">
-      <xs:attribute name="enabled" type="tns:booleanType"/>
-   </xs:complexType>
-
-   <xs:complexType name="transportConfigType">
-      <xs:sequence>
-         <xs:element name="property" minOccurs="0" maxOccurs="unbounded" type="tns:propertyType"/>
-      </xs:sequence>
-      <xs:attribute name="transportClass" type="xs:string"/>
-      <xs:attribute name="clusterName" type="xs:string"/>
-      <xs:attribute name="distributedSyncTimeout" type="tns:positiveNumber"/>
-   </xs:complexType>
-
-   <xs:complexType name="syncType">
-      <xs:attribute name="replTimeout" type="tns:positiveNumber"/>
-   </xs:complexType>
-
-   <xs:complexType name="asyncType">
-      <xs:attribute name="asyncMarshalling" type="tns:booleanType"/>
-      <xs:attribute name="useReplQueue" type="tns:booleanType"/>
-      <xs:attribute name="replQueueInterval" type="tns:positiveNumber"/>
-      <xs:attribute name="replQueueMaxElements" type="tns:positiveNumber"/>
-   </xs:complexType>
-
-   <xs:complexType name="evictionType">
-      <xs:attribute name="wakeUpInterval" type="tns:positiveNumber" use="required"/>
-      <xs:attribute name="strategy">
-         <xs:simpleType>
-            <xs:restriction base="xs:string">
-               <xs:pattern
-                     value="[Nn][Oo][Nn][Ee]|[Ff][Ii][Ff][Oo]|[Ll][Rr][Uu]|\$\{.*\}"/>
-            </xs:restriction>
-         </xs:simpleType>
-      </xs:attribute>
-      <xs:attribute name="maxEntries" type="tns:positiveNumber"/>
-   </xs:complexType>
-
-   <xs:complexType name="expirationType">
-      <xs:attribute name="lifespan" type="tns:positiveNumber"/>
-      <xs:attribute name="maxIdle" type="tns:positiveNumber"/>
-   </xs:complexType>
-
-   <xs:complexType name="loadersType">
-      <xs:sequence>
-         <xs:element name="loader" minOccurs="0" maxOccurs="unbounded">
-            <xs:complexType>
-               <xs:all>
-                  <xs:element name="properties" type="tns:propertiesType"/>
-                  <xs:element name="singletonStore" minOccurs="0" maxOccurs="1">
-                     <xs:complexType>
-                        <xs:attribute name="enabled" type="tns:booleanType"/>
-                        <xs:attribute name="pushStateWhenCoordinator" type="tns:booleanType"/>
-                        <xs:attribute name="pushStateTimeout" type="tns:positiveNumber"/>
-                     </xs:complexType>
-                  </xs:element>
-                  <xs:element name="async" minOccurs="0" maxOccurs="1">
-                     <xs:complexType>
-                        <xs:attribute name="enabled" type="tns:booleanType">
-                           <xs:annotation>
-                              <xs:documentation>If true, modifications are stored in the cache store asynchronously.</xs:documentation>
-                           </xs:annotation>
-                        </xs:attribute>
-                        <xs:attribute name="mapLockTimeout" type="tns:positiveNumber">
-									<xs:annotation>
-   									<xs:documentation>Lock timeout for access to map containing latest state.</xs:documentation>
-									</xs:annotation>                        
-                        </xs:attribute>
-                        <xs:attribute name="threadPoolSize" type="tns:positiveNumber">
-									<xs:annotation>
-   									<xs:documentation>Size of the thread pool whose threads are responsible for applying the modifications.</xs:documentation>
-									</xs:annotation>                        
-                        </xs:attribute>
-                     </xs:complexType>
-                  </xs:element>
-               </xs:all>
-               <xs:attribute name="class" type="xs:string"/>
-               <xs:attribute name="fetchPersistentState" type="tns:booleanType"/>
-               <xs:attribute name="ignoreModifications" type="tns:booleanType"/>
-               <xs:attribute name="purgeOnStartup" type="tns:booleanType"/>
-               <xs:attribute name="purgeSynchronously" type="tns:booleanType"/>
-            </xs:complexType>
-         </xs:element>
-      </xs:sequence>
-      <xs:attribute name="preload" type="tns:booleanType"/>
-      <xs:attribute name="passivation" type="tns:booleanType"/>
-      <xs:attribute name="shared" type="tns:booleanType"/>
-   </xs:complexType>
-
-   <xs:complexType name="propertiesType">
-      <xs:sequence>
-         <xs:element name="property" minOccurs="0" maxOccurs="unbounded" type="tns:propertyType"/>
-      </xs:sequence>
-   </xs:complexType>
-
-   <xs:complexType name="customInterceptorsType">
-      <xs:sequence>
-         <xs:element name="interceptor" maxOccurs="unbounded">
-            <xs:complexType>
-               <xs:sequence>
-                  <xs:element name="property" maxOccurs="unbounded" type="tns:propertyType" minOccurs="0"/>
-               </xs:sequence>
-               <xs:attribute name="class" type="xs:string"/>
-               <xs:attribute name="position">
-                  <xs:simpleType>
-                     <xs:restriction base="xs:string">
-                        <xs:pattern value="[Ff][Ii][Rr][Ss][Tt]|[Ll][Aa][Ss][Tt]"/>
-                     </xs:restriction>
-                  </xs:simpleType>
-               </xs:attribute>
-               <xs:attribute name="before" type="xs:string"/>
-               <xs:attribute name="after" type="xs:string"/>
-               <xs:attribute name="index" type="tns:positiveNumber"/>
-            </xs:complexType>
-         </xs:element>
-      </xs:sequence>
-   </xs:complexType>
-
-   <xs:complexType name="deadlockDetectionType">
-      <xs:attribute name="enabled" type="tns:booleanType"/>
-      <xs:attribute name="spinDuration" type="xs:integer"/>
-   </xs:complexType>
-
-   <xs:complexType name="propertyType">
-      <xs:attribute name="name" type="xs:string"/>
-      <xs:attribute name="value" type="xs:string"/>
-   </xs:complexType>
-</xs:schema>
-



More information about the infinispan-commits mailing list