[wsas-java-dev] svn commit r1744 - in trunk/wsas/java/modules/clustering: . src/org/wso2/wsas/clustering

svn at wso2.org svn at wso2.org
Wed Apr 4 02:13:37 PDT 2007


Author: azeez
Date: Wed Apr  4 02:13:14 2007
New Revision: 1744

Modified:
   trunk/wsas/java/modules/clustering/clustering-codegen.xml
   trunk/wsas/java/modules/clustering/nodemanager.wsdl
   trunk/wsas/java/modules/clustering/src/org/wso2/wsas/clustering/NodeManagerClient.java
Log:
Updated nodemanager.wsdl



Modified: trunk/wsas/java/modules/clustering/clustering-codegen.xml
==============================================================================
--- trunk/wsas/java/modules/clustering/clustering-codegen.xml	(original)
+++ trunk/wsas/java/modules/clustering/clustering-codegen.xml	Wed Apr  4 02:13:14 2007
@@ -7,8 +7,8 @@
         <o>./target/generated</o>
         <p>org.wso2.wsas.clustering</p>
         <d>adb</d>
-        <sn>NodeManager</sn>
-        <pn>NodeManagerSOAP11port_https</pn>
+        <sn>WSO2WSASNodeManager</sn>
+        <pn>WSO2WSASNodeManagerSOAP11port_https</pn>
         <ns2p>http://www.wso2.org/types=org.wso2.www.types.client</ns2p>
         <Emp>org.wso2.wsas.clustering.client</Emp>
     </set>

Modified: trunk/wsas/java/modules/clustering/nodemanager.wsdl
==============================================================================
--- trunk/wsas/java/modules/clustering/nodemanager.wsdl	(original)
+++ trunk/wsas/java/modules/clustering/nodemanager.wsdl	Wed Apr  4 02:13:14 2007
@@ -71,6 +71,21 @@
                     </xs:sequence>
                 </xs:complexType>
             </xs:element>
+            <xs:element name="prepareFault">
+                <xs:complexType>
+                    <xs:sequence>
+                        <xs:element name="prepareFault" type="xs:anyType"/>
+                    </xs:sequence>
+                </xs:complexType>
+            </xs:element>
+            <xs:element name="prepareResponse">
+                <xs:complexType>
+                    <xs:sequence>
+
+                        <xs:element name="return" nillable="true" type="xs:boolean"/>
+                    </xs:sequence>
+                </xs:complexType>
+            </xs:element>
             <xs:element name="reloadConfigurationFault">
                 <xs:complexType>
                     <xs:sequence>
@@ -81,10 +96,10 @@
             <xs:element name="reloadConfigurationResponse">
                 <xs:complexType>
                     <xs:sequence>
-
                         <xs:element name="return" nillable="true" type="xs:boolean"/>
                     </xs:sequence>
                 </xs:complexType>
+
             </xs:element>
             <xs:element name="unloadServiceGroupFault">
                 <xs:complexType>
@@ -99,10 +114,10 @@
                         <xs:element name="serviceGroupName" nillable="true" type="xs:string"/>
                     </xs:sequence>
                 </xs:complexType>
-
             </xs:element>
             <xs:element name="unloadServiceGroupResponse">
                 <xs:complexType>
+
                     <xs:sequence>
                         <xs:element name="return" nillable="true" type="xs:boolean"/>
                     </xs:sequence>
@@ -119,6 +134,13 @@
     <wsdl:message name="applyPolicyFault">
         <wsdl:part name="part1" element="ns0:applyPolicyFault"/>
     </wsdl:message>
+    <wsdl:message name="prepareMessage"/>
+    <wsdl:message name="prepareResponse">
+        <wsdl:part name="part1" element="ns0:prepareResponse"/>
+    </wsdl:message>
+    <wsdl:message name="prepareFault">
+        <wsdl:part name="part1" element="ns0:prepareFault"/>
+    </wsdl:message>
     <wsdl:message name="loadServiceGroupMessage">
         <wsdl:part name="part1" element="ns0:loadServiceGroup"/>
     </wsdl:message>
@@ -151,13 +173,19 @@
     <wsdl:message name="unloadServiceGroupFault">
         <wsdl:part name="part1" element="ns0:unloadServiceGroupFault"/>
     </wsdl:message>
-    <wsdl:portType name="NodeManagerPortType">
+    <wsdl:portType name="WSO2WSASNodeManagerPortType">
         <wsdl:operation name="applyPolicy">
             <wsdl:input xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"
                         message="ns0:applyPolicyMessage" wsaw:Action="urn:applyPolicy"/>
             <wsdl:output message="ns0:applyPolicyResponse"/>
             <wsdl:fault message="ns0:applyPolicyFault" name="applyPolicyFault"/>
         </wsdl:operation>
+        <wsdl:operation name="prepare">
+            <wsdl:input xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"
+                        message="ns0:prepareMessage" wsaw:Action="urn:prepare"/>
+            <wsdl:output message="ns0:prepareResponse"/>
+            <wsdl:fault message="ns0:prepareFault" name="prepareFault"/>
+        </wsdl:operation>
         <wsdl:operation name="loadServiceGroup">
             <wsdl:input xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"
                         message="ns0:loadServiceGroupMessage" wsaw:Action="urn:loadServiceGroup"/>
@@ -185,7 +213,7 @@
             <wsdl:fault message="ns0:unloadServiceGroupFault" name="unloadServiceGroupFault"/>
         </wsdl:operation>
     </wsdl:portType>
-    <wsdl:binding name="NodeManagerSOAP11Binding" type="ns0:NodeManagerPortType">
+    <wsdl:binding name="WSO2WSASNodeManagerSOAP11Binding" type="ns0:WSO2WSASNodeManagerPortType">
         <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
         <wsdl:operation name="applyPolicy">
             <soap:operation soapAction="urn:applyPolicy" style="document"/>
@@ -199,6 +227,18 @@
                 <soap12:fault use="literal" name="applyPolicyFault"/>
             </wsdl:fault>
         </wsdl:operation>
+        <wsdl:operation name="prepare">
+            <soap:operation soapAction="urn:prepare" style="document"/>
+            <wsdl:input>
+                <soap:body use="literal"/>
+            </wsdl:input>
+            <wsdl:output>
+                <soap:body use="literal"/>
+            </wsdl:output>
+            <wsdl:fault name="prepareFault">
+                <soap12:fault use="literal" name="prepareFault"/>
+            </wsdl:fault>
+        </wsdl:operation>
         <wsdl:operation name="loadServiceGroup">
             <soap:operation soapAction="urn:loadServiceGroup" style="document"/>
             <wsdl:input>
@@ -248,7 +288,7 @@
             </wsdl:fault>
         </wsdl:operation>
     </wsdl:binding>
-    <wsdl:binding name="NodeManagerSOAP12Binding" type="ns0:NodeManagerPortType">
+    <wsdl:binding name="WSO2WSASNodeManagerSOAP12Binding" type="ns0:WSO2WSASNodeManagerPortType">
         <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
         <wsdl:operation name="applyPolicy">
             <soap12:operation soapAction="urn:applyPolicy" style="document"/>
@@ -262,6 +302,18 @@
                 <soap12:fault use="literal" name="applyPolicyFault"/>
             </wsdl:fault>
         </wsdl:operation>
+        <wsdl:operation name="prepare">
+            <soap12:operation soapAction="urn:prepare" style="document"/>
+            <wsdl:input>
+                <soap12:body use="literal"/>
+            </wsdl:input>
+            <wsdl:output>
+                <soap12:body use="literal"/>
+            </wsdl:output>
+            <wsdl:fault name="prepareFault">
+                <soap12:fault use="literal" name="prepareFault"/>
+            </wsdl:fault>
+        </wsdl:operation>
         <wsdl:operation name="loadServiceGroup">
             <soap12:operation soapAction="urn:loadServiceGroup" style="document"/>
             <wsdl:input>
@@ -311,7 +363,7 @@
             </wsdl:fault>
         </wsdl:operation>
     </wsdl:binding>
-    <wsdl:binding name="NodeManagerHttpBinding" type="ns0:NodeManagerPortType">
+    <wsdl:binding name="WSO2WSASNodeManagerHttpBinding" type="ns0:WSO2WSASNodeManagerPortType">
         <http:binding verb="POST"/>
         <wsdl:operation name="applyPolicy">
             <http:operation location="applyPolicy"/>
@@ -322,6 +374,15 @@
                 <mime:content type="text/xml"/>
             </wsdl:output>
         </wsdl:operation>
+        <wsdl:operation name="prepare">
+            <http:operation location="prepare"/>
+            <wsdl:input>
+                <mime:content type="text/xml"/>
+            </wsdl:input>
+            <wsdl:output>
+                <mime:content type="text/xml"/>
+            </wsdl:output>
+        </wsdl:operation>
         <wsdl:operation name="loadServiceGroup">
             <http:operation location="loadServiceGroup"/>
             <wsdl:input>
@@ -359,18 +420,28 @@
             </wsdl:output>
         </wsdl:operation>
     </wsdl:binding>
-    <wsdl:service name="NodeManager">
-        <wsdl:port name="NodeManagerSOAP11port_https" binding="ns0:NodeManagerSOAP11Binding">
-            <soap:address location="https://10.100.1.225:9443/soap/NodeManager"/>
+    <wsdl:service name="WSO2WSASNodeManager">
+        <wsdl:port name="WSO2WSASNodeManagerSOAP11port_https"
+                   binding="ns0:WSO2WSASNodeManagerSOAP11Binding">
+            <soap:address location="https://10.100.1.118:9443/services/WSO2WSASNodeManager"/>
+        </wsdl:port>
+        <wsdl:port name="WSO2WSASNodeManagerSOAP11port_http1"
+                   binding="ns0:WSO2WSASNodeManagerSOAP11Binding">
+            <soap:address location="http://10.100.1.118:9762/services/WSO2WSASNodeManager"/>
+        </wsdl:port>
+        <wsdl:port name="WSO2WSASNodeManagerSOAP12port_https"
+                   binding="ns0:WSO2WSASNodeManagerSOAP12Binding">
+            <soap12:address location="https://10.100.1.118:9443/services/WSO2WSASNodeManager"/>
         </wsdl:port>
-        <wsdl:port name="NodeManagerSOAP11port_http2" binding="ns0:NodeManagerSOAP11Binding">
-            <soap:address location="http://10.100.1.225:9762/soap/NodeManager"/>
+        <wsdl:port name="WSO2WSASNodeManagerSOAP12port_http1"
+                   binding="ns0:WSO2WSASNodeManagerSOAP12Binding">
+            <soap12:address location="http://10.100.1.118:9762/services/WSO2WSASNodeManager"/>
         </wsdl:port>
-        <wsdl:port name="NodeManagerSOAP12port_https" binding="ns0:NodeManagerSOAP12Binding">
-            <soap12:address location="https://10.100.1.225:9443/soap/NodeManager"/>
+        <wsdl:port name="WSO2WSASNodeManagerHttpport" binding="ns0:WSO2WSASNodeManagerHttpBinding">
+            <http:address location="https://10.100.1.118:9443/services/WSO2WSASNodeManager"/>
         </wsdl:port>
-        <wsdl:port name="NodeManagerSOAP12port_http2" binding="ns0:NodeManagerSOAP12Binding">
-            <soap12:address location="http://10.100.1.225:9762/soap/NodeManager"/>
+        <wsdl:port name="WSO2WSASNodeManagerHttpport1" binding="ns0:WSO2WSASNodeManagerHttpBinding">
+            <http:address location="http://10.100.1.118:9762/services/WSO2WSASNodeManager"/>
         </wsdl:port>
     </wsdl:service>
-</wsdl:definitions>
+</wsdl:definitions>
\ No newline at end of file

Modified: trunk/wsas/java/modules/clustering/src/org/wso2/wsas/clustering/NodeManagerClient.java
==============================================================================
--- trunk/wsas/java/modules/clustering/src/org/wso2/wsas/clustering/NodeManagerClient.java	(original)
+++ trunk/wsas/java/modules/clustering/src/org/wso2/wsas/clustering/NodeManagerClient.java	Wed Apr  4 02:13:14 2007
@@ -21,16 +21,16 @@
  * 
  */
 public class NodeManagerClient {
-    private NodeManagerStub stub;
+    private WSO2WSASNodeManagerStub stub;
 
     public NodeManagerClient(String nodeManagerEPR) throws AxisFault {
-        stub = new NodeManagerStub(nodeManagerEPR);
+        stub = new WSO2WSASNodeManagerStub(nodeManagerEPR);
     }
 
     private void reloadConfiguration() throws Exception {
-        NodeManagerStub.ReloadConfigurationResponse r = stub.reloadConfiguration();
+        WSO2WSASNodeManagerStub.ReloadConfigurationResponse r = stub.reloadConfiguration();
         if (r.get_return()) {
-            NodeManagerStub.CommitResponse commitResponse = stub.commit();
+            WSO2WSASNodeManagerStub.CommitResponse commitResponse = stub.commit();
             if (commitResponse.get_return()) {    // TODO: Don't automatically commit. Let the shell script do it
                 System.out.println("Successfully committed");
             } else {
@@ -40,11 +40,11 @@
     }
 
     private void loadServiceGroup(String serviceGroupName) throws Exception {
-        NodeManagerStub.LoadServiceGroup req = new NodeManagerStub.LoadServiceGroup();
+        WSO2WSASNodeManagerStub.LoadServiceGroup req = new WSO2WSASNodeManagerStub.LoadServiceGroup();
         req.setServiceGroupName(serviceGroupName);
-        NodeManagerStub.LoadServiceGroupResponse resp = stub.loadServiceGroup(req);
+        WSO2WSASNodeManagerStub.LoadServiceGroupResponse resp = stub.loadServiceGroup(req);
         if (resp.get_return()) {
-            NodeManagerStub.CommitResponse commitResponse = stub.commit();
+            WSO2WSASNodeManagerStub.CommitResponse commitResponse = stub.commit();
             if (commitResponse.get_return()) {
                 System.out.println("Successfully committed");
             } else {
@@ -54,11 +54,11 @@
     }
 
     private void unloadServiceGroup(String serviceGroupName) throws Exception {
-        NodeManagerStub.UnloadServiceGroup req = new NodeManagerStub.UnloadServiceGroup();
+        WSO2WSASNodeManagerStub.UnloadServiceGroup req = new WSO2WSASNodeManagerStub.UnloadServiceGroup();
         req.setServiceGroupName(serviceGroupName);
-        NodeManagerStub.UnloadServiceGroupResponse resp = stub.unloadServiceGroup(req);
+        WSO2WSASNodeManagerStub.UnloadServiceGroupResponse resp = stub.unloadServiceGroup(req);
         if (resp.get_return()) {
-            NodeManagerStub.CommitResponse commitResponse = stub.commit();
+            WSO2WSASNodeManagerStub.CommitResponse commitResponse = stub.commit();
             if (commitResponse.get_return()) {
                 System.out.println("Successfully committed");
             } else {
@@ -72,7 +72,7 @@
     }
 
     private void commit() throws Exception {
-        NodeManagerStub.CommitResponse commitResponse = stub.commit();
+        WSO2WSASNodeManagerStub.CommitResponse commitResponse = stub.commit();
         if (commitResponse.get_return()) {
             System.out.println("Successfully committed");
         } else {
@@ -81,11 +81,11 @@
     }
 
     private void prepare() throws Exception {
-        NodeManagerStub.CommitResponse commitResponse = stub.commit();
-        if (commitResponse.get_return()) {
-            System.out.println("Successfully committed");
+        WSO2WSASNodeManagerStub.PrepareResponse prepareResponse = stub.prepare();
+        if (prepareResponse.get_return()) {
+            System.out.println("Successfully sent prepare request.");
         } else {
-            System.out.println("Commit failed");
+            System.out.println("Preparation failed");
         }
     }
 




More information about the Wsas-java-dev mailing list