Introduce UpdateKubernetesController API.

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

Branch: refs/heads/master
Commit: 562e85ecdf55b99dce6cbc3183584ba6271fc542
Parents: a5cd17e
Author: Nirmal Fernando <[email protected]>
Authored: Thu Sep 25 07:51:40 2014 +0530
Committer: Nirmal Fernando <[email protected]>
Committed: Thu Sep 25 07:51:40 2014 +0530

----------------------------------------------------------------------
 .../cloud/controller/impl/CloudControllerServiceImpl.java    | 7 +++++++
 .../cloud/controller/interfaces/CloudControllerService.java  | 8 ++++++++
 2 files changed, 15 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/562e85ec/components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/impl/CloudControllerServiceImpl.java
----------------------------------------------------------------------
diff --git 
a/components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/impl/CloudControllerServiceImpl.java
 
b/components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/impl/CloudControllerServiceImpl.java
index 7b4e221..3386231 100644
--- 
a/components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/impl/CloudControllerServiceImpl.java
+++ 
b/components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/impl/CloudControllerServiceImpl.java
@@ -1562,5 +1562,12 @@ public class CloudControllerServiceImpl implements 
CloudControllerService {
                persist();
        }
 
+       @Override
+       public void updateKubernetesController(String clusterId, int replicas)
+                       throws InvalidClusterException {
+               // TODO Auto-generated method stub
+               
+       }
+
 }
 

http://git-wip-us.apache.org/repos/asf/stratos/blob/562e85ec/components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/interfaces/CloudControllerService.java
----------------------------------------------------------------------
diff --git 
a/components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/interfaces/CloudControllerService.java
 
b/components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/interfaces/CloudControllerService.java
index e966c74..019a3cd 100644
--- 
a/components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/interfaces/CloudControllerService.java
+++ 
b/components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/interfaces/CloudControllerService.java
@@ -137,6 +137,14 @@ public interface CloudControllerService {
     public void terminateAllContainers(String clusterId) throws 
InvalidClusterException;
     
     /**
+     * Update the Kubernetes controller created for the given cluster with the 
specified number of replicas.
+     * @param clusterId id of the subjected cluster.
+     * @param replicas total number of replicas to be set to the controller.
+     * @throws InvalidClusterException
+     */
+    public void updateKubernetesController(String clusterId, int replicas) 
throws InvalidClusterException;
+    
+    /**
      * Unregister a docker service identified by the given cluster id.
      * @param clusterId service cluster id.
      * @throws UnregisteredClusterException if the service cluster requested 
is not a registered one.

Reply via email to