stratos-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lahi...@apache.org
Subject [2/5] stratos git commit: add removeMemberFromCloudController method to CC service
Date Thu, 11 Jun 2015 02:44:27 GMT
add removeMemberFromCloudController method to CC service


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

Branch: refs/heads/master
Commit: 450e8f01844401ee70bf9fc667840b7b8c2fba1d
Parents: 6d5ef56
Author: Lahiru Sandaruwan <lahirus@apache.org>
Authored: Wed Jun 10 19:26:27 2015 +0530
Committer: Lahiru Sandaruwan <lahirus@apache.org>
Committed: Wed Jun 10 19:27:17 2015 +0530

----------------------------------------------------------------------
 .../cloud/controller/services/CloudControllerService.java     | 6 ++++++
 .../controller/services/impl/CloudControllerServiceImpl.java  | 7 +++++++
 2 files changed, 13 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/450e8f01/components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/services/CloudControllerService.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/services/CloudControllerService.java
b/components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/services/CloudControllerService.java
index 5c417e1..8632d35 100644
--- a/components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/services/CloudControllerService.java
+++ b/components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/services/CloudControllerService.java
@@ -388,4 +388,10 @@ public interface CloudControllerService {
      * @return
      */
     public NetworkPartition getNetworkPartition(String networkPartitionId);
+
+    /**
+     * Remove member from cloud controller side context, topology etc.
+     * @param member member to be removed
+     */
+    void removeMemberFromCloudController(MemberContext member);
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/stratos/blob/450e8f01/components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/services/impl/CloudControllerServiceImpl.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/services/impl/CloudControllerServiceImpl.java
b/components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/services/impl/CloudControllerServiceImpl.java
index e6f0c04..55ecbc9 100644
--- a/components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/services/impl/CloudControllerServiceImpl.java
+++ b/components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/services/impl/CloudControllerServiceImpl.java
@@ -1608,4 +1608,11 @@ public class CloudControllerServiceImpl implements CloudControllerService
{
             throw new CloudControllerException(message, e);
         }
     }
+
+    @Override
+    public void removeMemberFromCloudController(MemberContext member) {
+
+        CloudControllerServiceUtil.executeMemberTerminationPostProcess(member);
+
+    }
 }


Mime
View raw message