You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by la...@apache.org on 2013/10/25 04:00:59 UTC

git commit: Fixing CC client

Updated Branches:
  refs/heads/master 3d2376fa3 -> bb7176680


Fixing CC client


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

Branch: refs/heads/master
Commit: bb717668088b6cd63130d74896398ffbea7276eb
Parents: 3d2376f
Author: Lahiru Sandaruwan <la...@apache.org>
Authored: Fri Oct 25 07:35:38 2013 +0530
Committer: Lahiru Sandaruwan <la...@apache.org>
Committed: Fri Oct 25 07:35:38 2013 +0530

----------------------------------------------------------------------
 .../client/cloud/controller/CloudControllerClient.java         | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/bb717668/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/client/cloud/controller/CloudControllerClient.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/client/cloud/controller/CloudControllerClient.java b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/client/cloud/controller/CloudControllerClient.java
index 23865ef..6393be4 100644
--- a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/client/cloud/controller/CloudControllerClient.java
+++ b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/client/cloud/controller/CloudControllerClient.java
@@ -29,7 +29,7 @@ public class CloudControllerClient {
         locationScope.setRegion(partition.getZone());
 
         try {
-            stub.startInstance(clusterId, locationScope, memberCountToBeIncreased);
+            stub.startInstances(clusterId, locationScope, memberCountToBeIncreased);
         } catch (RemoteException e) {
             throw new SpawningException("Error occurred in cloud controller side while spawning instance", e );
         }
@@ -43,7 +43,7 @@ public class CloudControllerClient {
         locationScope.setRegion(partition.getZone());
 
         try {
-            stub.startInstance(clusterId, locationScope, 1);
+            stub.startInstance(clusterId, locationScope);
         } catch (RemoteException e) {
             throw new SpawningException("Error occurred in cloud controller side while spawning instance", e );
         }
@@ -58,7 +58,7 @@ public class CloudControllerClient {
         locationScope.setRegion(partition.getZone());
 
         try {
-            stub.terminateAllInstances(clusterId);//TODO change when cloud controller side is fixed
+            stub.terminateInstance(clusterId, locationScope);
         } catch (RemoteException e) {
             throw new TerminationException("Error occurred in cloud controller side while spawning instance", e );
         }