[jboss-cvs] JBossAS SVN: r106114 - projects/profileservice/trunk/domain/src/test/resources/schemas.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Jun 17 08:13:13 EDT 2010


Author: alex.loubyansky at jboss.com
Date: 2010-06-17 08:13:12 -0400 (Thu, 17 Jun 2010)
New Revision: 106114

Added:
   projects/profileservice/trunk/domain/src/test/resources/schemas/jboss-domain-host.xsd
Modified:
   projects/profileservice/trunk/domain/src/test/resources/schemas/jboss-domain-common.xsd
   projects/profileservice/trunk/domain/src/test/resources/schemas/jboss-domain-servers.xsd
Log:
added jboss-domain-host.xsd and merged/re-used common types

Modified: projects/profileservice/trunk/domain/src/test/resources/schemas/jboss-domain-common.xsd
===================================================================
--- projects/profileservice/trunk/domain/src/test/resources/schemas/jboss-domain-common.xsd	2010-06-17 11:47:53 UTC (rev 106113)
+++ projects/profileservice/trunk/domain/src/test/resources/schemas/jboss-domain-common.xsd	2010-06-17 12:13:12 UTC (rev 106114)
@@ -8,6 +8,10 @@
     <xs:complexType name="java-configType">
         <xs:all minOccurs="0" maxOccurs="1">
             <xs:element name="heap" type="heapType"/>
+            <!-- XX:PermSize, XX:MaxPermSize -->
+            <xs:element name="permgen" type="bounded-memory-sizeType" minOccurs="0"/>
+            <!-- Xss -->
+            <xs:element name="stack" type="memory-sizeType" minOccurs="0"/>
             <xs:element name="jvm-option" type="jvm-optionType" />
             <xs:element name="jvm-properties" type="propertiesType" />
             <xs:element name="system-properties" type="propertiesType" />
@@ -97,4 +101,13 @@
     </xs:attribute>
   </xs:complexType>
 
+    <xs:complexType name="bounded-memory-sizeType">
+        <xs:attribute name="size" type="xs:string"/>
+        <xs:attribute name="max-size" type="xs:string"/>
+    </xs:complexType>
+
+    <xs:complexType name="memory-sizeType">
+        <xs:attribute name="size" type="xs:string" use="required"/>
+    </xs:complexType>
+
 </xs:schema>

Added: projects/profileservice/trunk/domain/src/test/resources/schemas/jboss-domain-host.xsd
===================================================================
--- projects/profileservice/trunk/domain/src/test/resources/schemas/jboss-domain-host.xsd	                        (rev 0)
+++ projects/profileservice/trunk/domain/src/test/resources/schemas/jboss-domain-host.xsd	2010-06-17 12:13:12 UTC (rev 106114)
@@ -0,0 +1,91 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+  ~ JBoss, Home of Professional Open Source.
+  ~ Copyright 2010, Red Hat Middleware LLC, and individual contributors
+  ~ as indicated by the @author tags. See the copyright.txt file in the
+  ~ distribution for a full listing of individual contributors.
+  ~
+  ~ This is free software; you can redistribute it and/or modify it
+  ~ under the terms of the GNU Lesser General Public License as
+  ~ published by the Free Software Foundation; either version 2.1 of
+  ~ the License, or (at your option) any later version.
+  ~
+  ~ This software is distributed in the hope that it will be useful,
+  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
+  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+  ~ Lesser General Public License for more details.
+  ~
+  ~ You should have received a copy of the GNU Lesser General Public
+  ~ License along with this software; if not, write to the Free
+  ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+  ~ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+  -->
+
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
+            targetNamespace="urn:jboss:domain:1.0"
+            xmlns="urn:jboss:domain:1.0"
+            elementFormDefault="qualified"
+            attributeFormDefault="unqualified"
+            version="1.0">
+
+  <!-- Include the server groups definitions -->
+  <xs:include schemaLocation="jboss-domain-servers.xsd" />
+
+    <xs:element name="host-config" type="host-configType"/>
+
+    <xs:complexType name="host-configType">
+        <xs:all>
+            <xs:element name="domain-controller" type="locationType" minOccurs="1"/>
+            <xs:element name="servers" type="serversType" minOccurs="0"/>
+            <xs:element name="interfaces" type="interfacesType" minOccurs="0"/>
+            <xs:element name="java-config" type="java-configType" minOccurs="0"/>
+            <xs:element name="extensions" type="extensionsType" minOccurs="0"/>
+        </xs:all>
+    </xs:complexType>
+
+    <xs:complexType name="network-configurationType">
+        <xs:choice minOccurs="0" maxOccurs="unbounded">
+            <xs:element name="server-socket" type="net-conf-serverType"/>
+        </xs:choice>
+        <xs:attribute name="group-size" type="xs:positiveInteger" default="0" use="optional"/>
+        <xs:attribute name="maximum-offset" type="xs:positiveInteger" default="100" use="optional"/>
+    </xs:complexType>
+
+    <xs:complexType name="locationType">
+        <xs:attribute name="location" type="xs:anyURI" use="required"/>
+        <!-- the interface to bind to for outbound connections to the given location -->
+        <xs:attribute name="bind-interface" type="xs:string" use="optional"/>
+    </xs:complexType>
+
+    <xs:complexType name="serversType">
+        <xs:sequence>
+            <xs:element name="server" type="serverType" minOccurs="0" maxOccurs="unbounded"/>
+        </xs:sequence>
+    </xs:complexType>
+ 
+    <xs:complexType name="net-conf-serverType">
+        <xs:all>
+            <xs:element name="interface" type="refType" minOccurs="0"/>
+            <xs:element name="extensions" type="extensionsType" minOccurs="0"/>
+        </xs:all>
+        <xs:attribute name="service-name" type="xs:string" use="required"/>
+        <xs:attribute name="binding-name" type="xs:string" default="default" use="optional"/>
+        <xs:attribute name="port" type="port-numberType" use="required"/>
+        <xs:attribute name="fixed" type="xs:boolean" default="false" use="optional"/>
+    </xs:complexType>
+
+    <xs:simpleType name="port-numberType">
+        <xs:restriction base="xs:int">
+            <xs:minInclusive value="0"/>
+            <xs:maxExclusive value="65536"/>
+        </xs:restriction>
+    </xs:simpleType>
+
+    <xs:complexType name="extensionsType">
+        <xs:choice minOccurs="0" maxOccurs="unbounded">
+            <xs:any/>
+        </xs:choice>
+    </xs:complexType>
+
+</xs:schema>

Modified: projects/profileservice/trunk/domain/src/test/resources/schemas/jboss-domain-servers.xsd
===================================================================
--- projects/profileservice/trunk/domain/src/test/resources/schemas/jboss-domain-servers.xsd	2010-06-17 11:47:53 UTC (rev 106113)
+++ projects/profileservice/trunk/domain/src/test/resources/schemas/jboss-domain-servers.xsd	2010-06-17 12:13:12 UTC (rev 106114)
@@ -50,9 +50,18 @@
         <xs:sequence>
             <xs:element name="server-group-ref" minOccurs="1" maxOccurs="unbounded" type="server-group-refType" />
             <xs:element name="java-config" minOccurs="0" type="java-configType" />
+
+            <!-- this element is present if the server is started at boot; otherwise, the server is configured but idle -->
+            <xs:element name="running" minOccurs="0"/>
+
+            <xs:element name="interfaces" type="interfacesType" minOccurs="0"/>
+            <xs:element name="port-group" type="attributeNameType" minOccurs="0"/>
+
+
             <xs:element name="loggers" type="loggersType" />
             <xs:element name="system-properties" type="propertiesType"/>
         </xs:sequence>
+        <xs:attribute name="name" type="xs:string" use="required"/>
     </xs:complexType>
 
     <xs:complexType name="server-group-refType">
@@ -65,6 +74,18 @@
         </xs:attribute>
     </xs:complexType>
 
+    <xs:complexType name="interfacesType">
+        <xs:sequence>
+            <xs:element name="interface" type="interfaceType" minOccurs="0" maxOccurs="unbounded"/>
+        </xs:sequence>
+    </xs:complexType>
+
+    <xs:complexType name="interfaceType">
+        <xs:attribute name="name" type="xs:string" use="required"/>
+        <xs:attribute name="address" type="xs:string" use="required"/>
+    </xs:complexType>
+
+
   <xs:complexType name="disabledSubsystemsType">
     <xs:annotation>
       <xs:documentation>Contains a list of disabled subsystems per server-group</xs:documentation>



More information about the jboss-cvs-commits mailing list