Author: ruwan
Date: Sun Sep 26 12:48:35 2010
New Revision: 1001422

URL: http://svn.apache.org/viewvc?rev=1001422&view=rev
Log:
Fixing target to have faultSequence and few other fixes

Modified:
    synapse/trunk/java/repository/schema/endpoint.xsd
    synapse/trunk/java/repository/schema/misc/target.xsd
    synapse/trunk/java/repository/schema/proxy.xsd

Modified: synapse/trunk/java/repository/schema/endpoint.xsd
URL: 
http://svn.apache.org/viewvc/synapse/trunk/java/repository/schema/endpoint.xsd?rev=1001422&r1=1001421&r2=1001422&view=diff
==============================================================================
--- synapse/trunk/java/repository/schema/endpoint.xsd (original)
+++ synapse/trunk/java/repository/schema/endpoint.xsd Sun Sep 26 12:48:35 2010
@@ -99,17 +99,60 @@
             </xs:documentation>
         </xs:annotation>
         <xs:choice>
-            <xs:element name="loadbalance">
+            <xs:group ref="lbEndpoints"/>
+            <xs:group ref="failoverEndpoints"/>
+        </xs:choice>
+    </xs:group>
+
+    <xs:group name="lbEndpoints">
+        <xs:annotation>
+            <xs:documentation source="description">
+                This group represents the secondary load balance endpoints
+            </xs:documentation>
+        </xs:annotation>
+        <xs:all>
+            <xs:element name="session" minOccurs="0" maxOccurs="1">
                 <xs:complexType>
-                    <xs:group ref="leafEndpoints" minOccurs="1" 
maxOccurs="unbounded"/>
+                    <xs:attribute name="type" use="optional">
+                        <xs:simpleType>
+                            <xs:restriction base="xs:string">
+                                <xs:enumeration value="simpleClientSession"/>
+                                <!-- TODO : add other possible values -->
+                            </xs:restriction>
+                        </xs:simpleType>
+                    </xs:attribute>
                 </xs:complexType>
             </xs:element>
-            <xs:element name="failover">
+            <xs:element name="loadbalance" minOccurs="1" maxOccurs="1">
+                <xs:complexType>
+                    <xs:sequence>
+                        <xs:element name="endpoint" minOccurs="1" 
maxOccurs="unbounded">
+                            <xs:complexType>
+                                <xs:group ref="leafEndpoints" minOccurs="1" 
maxOccurs="1"/>
+                                <xs:attribute name="name" type="xs:string" 
use="optional"/>
+                                <xs:attribute name="key" type="xs:string" 
use="optional"/>
+                            </xs:complexType>
+                        </xs:element>
+                    </xs:sequence>
+                    <xs:attribute name="algorithm" type="xs:string" 
default="org.apache.synapse.endpoints.algorithms.RoundRobin" use="required"/>
+                </xs:complexType>
+            </xs:element>
+        </xs:all>
+    </xs:group>
+
+    <xs:group name="failoverEndpoints">
+        <xs:annotation>
+            <xs:documentation source="description">
+                This group represents the secondary fail over endpoints
+            </xs:documentation>
+        </xs:annotation>
+        <xs:all>
+            <xs:element name="failover" minOccurs="1" maxOccurs="1">
                 <xs:complexType>
                     <xs:group ref="leafEndpoints" minOccurs="1" 
maxOccurs="unbounded"/>
                 </xs:complexType>
             </xs:element>
-        </xs:choice>
+        </xs:all>
     </xs:group>
 
     <xs:complexType name="DefaultEndpoint">
@@ -176,6 +219,13 @@
                     </xs:all>
                 </xs:complexType>
             </xs:element>
+            <xs:element name="suspendDurationOnFailure" minOccurs="0" 
maxOccurs="1">
+                <xs:annotation>
+                    <xs:documentation source="description">
+                        This is deprecated, please use the suspendOnFailure
+                    </xs:documentation>
+                </xs:annotation>
+            </xs:element>
         </xs:all>
         <xs:attributeGroup ref="commonEndpoint"/>
     </xs:complexType>

Modified: synapse/trunk/java/repository/schema/misc/target.xsd
URL: 
http://svn.apache.org/viewvc/synapse/trunk/java/repository/schema/misc/target.xsd?rev=1001422&r1=1001421&r2=1001422&view=diff
==============================================================================
--- synapse/trunk/java/repository/schema/misc/target.xsd (original)
+++ synapse/trunk/java/repository/schema/misc/target.xsd Sun Sep 26 12:48:35 
2010
@@ -54,10 +54,18 @@
                     </xs:sequence>
                 </xs:complexType>
             </xs:element>
+            <xs:element name="faultSequence" minOccurs="0" maxOccurs="1">
+                <xs:complexType>
+                    <xs:sequence>
+                        <xs:group ref="mediatorList" minOccurs="1" 
maxOccurs="unbounded"/>
+                    </xs:sequence>
+                </xs:complexType>
+            </xs:element>
             <xs:element name="endpoint" type="Endpoint" minOccurs="0" 
maxOccurs="1"/>
         </xs:all>
         <xs:attribute name="inSequence" type="xs:string" use="optional"/>
         <xs:attribute name="outSequence" type="xs:string" use="optional"/>
+        <xs:attribute name="faultSequence" type="xs:string" use="optional"/>
         <xs:attribute name="endpoint" type="xs:string" use="optional"/>
     </xs:complexType>
 

Modified: synapse/trunk/java/repository/schema/proxy.xsd
URL: 
http://svn.apache.org/viewvc/synapse/trunk/java/repository/schema/proxy.xsd?rev=1001422&r1=1001421&r2=1001422&view=diff
==============================================================================
--- synapse/trunk/java/repository/schema/proxy.xsd (original)
+++ synapse/trunk/java/repository/schema/proxy.xsd Sun Sep 26 12:48:35 2010
@@ -61,9 +61,10 @@
             <xs:element ref="parameter" minOccurs="0"/>
         </xs:all>
         <xs:attributeGroup ref="monitoringAspect"/>
-        <xs:attribute name="name" use="required"/>
-        <xs:attribute name="transports" use="optional"/>
-        <xs:attribute name="pinnedServers" use="optional"/>
+        <xs:attribute name="name" type="xs:string" use="required"/>
+        <xs:attribute name="transports" type="xs:string" use="optional"/>
+        <xs:attribute name="pinnedServers" type="xs:string" use="optional"/>
+        <xs:attribute name="startOnLoad" type="xs:boolean" use="optional"/>
     </xs:complexType>
 
 </xs:schema>
\ No newline at end of file


Reply via email to