You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by ma...@apache.org on 2013/12/12 18:44:27 UTC

git commit: Add comments

Updated Branches:
  refs/heads/master fc51f7781 -> 30eb003e1


Add comments


Project: http://git-wip-us.apache.org/repos/asf/incubator-stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-stratos/commit/30eb003e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-stratos/tree/30eb003e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-stratos/diff/30eb003e

Branch: refs/heads/master
Commit: 30eb003e13fadbfb36f2f04dda86a5d1cfa7e4ce
Parents: fc51f77
Author: Manula Thantriwatte <ma...@apache.org>
Authored: Thu Dec 12 23:14:04 2013 +0530
Committer: Manula Thantriwatte <ma...@apache.org>
Committed: Thu Dec 12 23:14:04 2013 +0530

----------------------------------------------------------------------
 .../main/java/org/apache/stratos/cli/RestCommandLineService.java | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/30eb003e/components/org.apache.stratos.cli/src/main/java/org/apache/stratos/cli/RestCommandLineService.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.cli/src/main/java/org/apache/stratos/cli/RestCommandLineService.java b/components/org.apache.stratos.cli/src/main/java/org/apache/stratos/cli/RestCommandLineService.java
index 5c9fd27..e397eb9 100644
--- a/components/org.apache.stratos.cli/src/main/java/org/apache/stratos/cli/RestCommandLineService.java
+++ b/components/org.apache.stratos.cli/src/main/java/org/apache/stratos/cli/RestCommandLineService.java
@@ -615,6 +615,7 @@ public class RestCommandLineService {
         }
     }
 
+    // This method list available partitons
     public void listPartitions() throws CommandException{
         try {
             HttpResponse response = restClientService.doGet(restClientService.getUrl() + listParitionRestEndPoint,
@@ -659,6 +660,7 @@ public class RestCommandLineService {
         }
     }
 
+    // This method list autoscale policies
     public void listAutoscalePolicies() throws CommandException {
         try {
             HttpResponse response = restClientService.doGet(restClientService.getUrl() + listAutoscalePolicyRestEndPoint,
@@ -703,6 +705,7 @@ public class RestCommandLineService {
         }
     }
 
+    // This class convert JSON string to autoscalepolicylist object
     private class AutoscalePolicyList {
         private ArrayList<AutoscalePolicy> autoscalePolicy;
 
@@ -719,6 +722,7 @@ public class RestCommandLineService {
         }
     }
 
+    // This class convert JSON string to PartitionLIst object
     private class PartitionList {
         private ArrayList<Partition> partition;