Author: sebawagner
Date: Sun Nov 18 09:00:10 2012
New Revision: 1410854

URL: http://svn.apache.org/viewvc?rev=1410854&view=rev
Log:
OPENMEETINGS-460 update docs, shift some testing code

Modified:
    incubator/openmeetings/trunk/singlewebapp/docs/ServerService.html
    
incubator/openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/cluster/sync/RestClient.java

Modified: incubator/openmeetings/trunk/singlewebapp/docs/ServerService.html
URL: 
http://svn.apache.org/viewvc/incubator/openmeetings/trunk/singlewebapp/docs/ServerService.html?rev=1410854&r1=1410853&r2=1410854&view=diff
==============================================================================
--- incubator/openmeetings/trunk/singlewebapp/docs/ServerService.html (original)
+++ incubator/openmeetings/trunk/singlewebapp/docs/ServerService.html Sun Nov 
18 09:00:10 2012
@@ -207,6 +207,8 @@ limitations under the License.
                                                                                
                     , 
                                                   String protocol
                                                                                
                     , 
+                                                  Boolean active
+                                                                               
                     , 
                                                   String comment
                                                                        )
                        </i><br/>
@@ -301,6 +303,14 @@ limitations under the License.
                           
                                                                                
   <tr>
                             <td valign="top">
+                                                                       Boolean
+                                                            </td>
+                            <td valign="top">active</td>
+                            <td valign="top">- if the server currently 
participates in the cluster or not</td>
+                          </tr>
+                          
+                                                                               
   <tr>
+                            <td valign="top">
                                                                        String
                                                             </td>
                             <td valign="top">comment</td>
@@ -311,7 +321,7 @@ limitations under the License.
                                </table>
                                                <br/>
                        REST Sample Call/URL:<br/>
-                                                                               
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
<a 
href="http://localhost:5080/openmeetings/services/ServerService/saveServer?SID=VALUE&id=VALUE&name=VALUE&address=VALUE&port=VALUE&user=VALUE&pass=VALUE&webapp=VALUE&protocol=VALUE&comment=VALUE";>http://localhost:5080/openmeetings/services/ServerService/saveServer?&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;</a>
+                                                                               
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                <a 
href="http://localhost:5080/openmeetings/services/ServerService/saveServer?SID=VALUE&id=VALUE&name=VALUE&address=VALUE&port=VALUE&user=VALUE&pass=VALUE&webapp=VALUE&protocol=VALUE&active=VALUE&comment=VALUE";>http://localhost:5080/openmeetings/services/ServerService/saveServer?&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;</a>
                  </div>
                                                              <div 
class="method">
                        <div class="method_header">

Modified: 
incubator/openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/cluster/sync/RestClient.java
URL: 
http://svn.apache.org/viewvc/incubator/openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/cluster/sync/RestClient.java?rev=1410854&r1=1410853&r2=1410854&view=diff
==============================================================================
--- 
incubator/openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/cluster/sync/RestClient.java
 (original)
+++ 
incubator/openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/cluster/sync/RestClient.java
 Sun Nov 18 09:00:10 2012
@@ -91,17 +91,6 @@ public class RestClient {
                                + "/services/ServerService";
        }
 
-       public static void main(String... strings) {
-               RestClient rClient = new RestClient("127.0.0.1", 5080, "http",
-                               "openmeetings", "swagner", "qweqwe");
-               try {
-                       rClient.loginUser();
-                       rClient.ping();
-               } catch (Exception e) {
-                       e.printStackTrace();
-               }
-       }
-
        /**
         * The observerInstance will be notified whenever a ping was completed
         * 
@@ -123,6 +112,22 @@ public class RestClient {
                this.user = server.getUser();
                this.pass = server.getPass();
        }
+       
+       /**
+        * Main method to perform tests
+        * 
+        * @param strings
+        */
+       public static void main(String... strings) {
+               RestClient rClient = new RestClient("127.0.0.1", 5080, "http",
+                               "openmeetings", "swagner", "qweqwe");
+               try {
+                       rClient.loginUser();
+                       rClient.ping();
+               } catch (Exception e) {
+                       e.printStackTrace();
+               }
+       }
 
        /**
         * for simple testing this method provides a version of the constructor


Reply via email to