[wsas-java-dev] svn commit r1738 - trunk/wsas/java/modules/clustering/src/org/wso2/wsas/clustering

svn at wso2.org svn at wso2.org
Tue Apr 3 08:11:49 PDT 2007


Author: azeez
Date: Tue Apr  3 08:11:45 2007
New Revision: 1738

Modified:
   trunk/wsas/java/modules/clustering/src/org/wso2/wsas/clustering/NodeManagerClient.java
Log:
Added commit method



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	Tue Apr  3 08:11:45 2007
@@ -31,7 +31,7 @@
         NodeManagerStub.ReloadConfigurationResponse r = stub.reloadConfiguration();
         if (r.get_return()) {
             NodeManagerStub.CommitResponse commitResponse = stub.commit();
-            if (commitResponse.get_return()) {
+            if (commitResponse.get_return()) {    // TODO: Don't automatically commit. Let the shell script do it
                 System.out.println("Successfully committed");
             } else {
                 System.out.println("Commit failed");
@@ -71,6 +71,15 @@
         // TODO
     }
 
+    private void commit() throws Exception {
+        NodeManagerStub.CommitResponse commitResponse = stub.commit();
+        if (commitResponse.get_return()) {
+            System.out.println("Successfully committed");
+        } else {
+            System.out.println("Commit failed");
+        }
+    }
+
     /**
      * Usage: admin --epr <epr> --operation <reloadConfig | loadSG | unloadSG | applyPolicy>
      *




More information about the Wsas-java-dev mailing list