Skip to content

Commit

Permalink
[AS7-3623] applied changes from discussion with Paul to XSD
Browse files Browse the repository at this point in the history
  • Loading branch information
rhusar committed Feb 7, 2012
1 parent 3b81e07 commit 7a32e58
Showing 1 changed file with 28 additions and 19 deletions.
47 changes: 28 additions & 19 deletions build/src/main/resources/docs/schema/jboss-as-mod-cluster_1_1.xsd
Expand Up @@ -30,11 +30,12 @@
<xs:element name="subsystem" type="subsystemType"/>

<xs:complexType name="subsystemType">
<!-- TODO: workaround XSD to not force XSD but use choice inside -->
<xs:sequence>
<!-- General config -->
<xs:element name="sticky-session" type="sticky-sessionType" minOccurs="0" maxOccurs="1"/>
<xs:element name="advertise" type="advertiseType" minOccurs="0" maxOccurs="1"/>
<xs:element name="proxy-list" type="proxy-listType" minOccurs="0" maxOccurs="1"/>
<xs:element name="proxies" type="proxiesType" minOccurs="0" maxOccurs="1"/>
<xs:element name="contexts" type="contextsType" minOccurs="0" maxOccurs="1"/>

<!-- Simple load-provider or a dynamic one -->
Expand All @@ -55,22 +56,19 @@
</xs:complexType>

<!-- Example:
<advertise enable="true" socket="modcluster" security-key="secureKey"/>
<advertise enable="true" socket-binding"modcluster" security-key="secureKey"/>
-->
<xs:complexType name="advertiseType" abstract="true">
<xs:attribute name="enable" type="xs:boolean" use="optional" default="true"/>
<!-- Get the actual advertiseGroupAddress / advertisePort from advertiseSocket -->
<xs:attribute name="socket" type="xs:string" use="optional"/>
<xs:attribute name="socket-binding" type="xs:string" use="optional"/>
<xs:attribute name="security-key" type="xs:string" use="optional"/>
</xs:complexType>

<!-- Example:
<proxy-list url="prefix">
<proxy>lb01.example.com</proxy>
<proxy>lb02.example.com</proxy>
</proxy-list>
<proxies url="prefix" node-timeout="-1" ping="10" socket-timeout="20" outbound-socket-bindings="modcluster-proxies"/>
-->
<xs:complexType name="proxy-listType" abstract="true">
<xs:complexType name="proxiesType" abstract="true">
<xs:attribute name="url" type="xs:string" use="optional"/>
<xs:attribute name="node-timeout" type="xs:int" use="optional" default="-1">
<xs:annotation>
Expand All @@ -87,26 +85,38 @@
<xs:documentation>Number of seconds to wait for a response from an httpd proxy to MCMP commands before timing out, and flagging the proxy as in error.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:all>
<xs:element name="proxy" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
</xs:all>
<xs:attribute name="outbound-socket-bindings" type="xs:list" use="optional">
<xs:annotation>
<xs:documentation>outbound-socket-binding groups for proxies</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>

<!-- Example:
<contexts auto-enable="true" stop-timeout="20" excluded-contexts="ROOT"/>
-->
<xs:complexType name="contextsType" abstract="true">
<xs:attribute name="auto-enable" type="xs:boolean" use="optional" default="true" />
<xs:annotation>
<xs:documentation>If false the contexts are registered as disabled in httpd, they need to be enabled via manually.</xs:documentation>
</xs:annotation>
<xs:attribute name="auto-enable" type="xs:boolean" use="optional" default="true">
<xs:annotation>
<xs:documentation>If false the contexts are registered as disabled in httpd, they need to be enabled via manually.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="stop-timeout" type="xs:int" use="optional" default="10">
<xs:annotation>
<xs:documentation>The amount of time in seconds for which to wait for clean shutdown of a context.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:all>
<xs:element name="excluded-context" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
</xs:all>
<xs:attribute name="excluded-contexts" type="excluded-contextsType" default="ROOT invoker jbossws juddi console">
<xs:annotation>
<xs:documentation>Contexts not to be registered with httpd.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>

<xs:simpleType name='excluded-contextsType'>
<xs:list itemType='xs:string'/>
</xs:simpleType>

<!-- General SSL definitions -->
<xs:complexType name="sslType">
<xs:annotation>
Expand Down Expand Up @@ -236,7 +246,6 @@
<xs:enumeration value="send-traffic"/>
<xs:enumeration value="receive-traffic"/>
<xs:enumeration value="busyness"/>
<xs:enumeration value="connection-pool"/>
</xs:restriction>
</xs:simpleType>

Expand Down

0 comments on commit 7a32e58

Please sign in to comment.