You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by im...@apache.org on 2014/11/09 19:29:34 UTC
[27/59] [abbrv] stratos git commit: adding allocated service port
property to cluster context
adding allocated service port property to cluster context
Project: http://git-wip-us.apache.org/repos/asf/stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/ffe345f1
Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/ffe345f1
Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/ffe345f1
Branch: refs/heads/master
Commit: ffe345f1386bd161ffc9351457c7bd9994f62aca
Parents: 376a624
Author: R-Rajkumar <rr...@gmail.com>
Authored: Sat Nov 8 19:29:50 2014 +0530
Committer: R-Rajkumar <rr...@gmail.com>
Committed: Sat Nov 8 19:29:50 2014 +0530
----------------------------------------------------------------------
.../stratos/cloud/controller/impl/CloudControllerServiceImpl.java | 2 ++
1 file changed, 2 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/stratos/blob/ffe345f1/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 cd83a06..c1c93df 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
@@ -1501,6 +1501,8 @@ public class CloudControllerServiceImpl implements CloudControllerService {
Property allocatedServiceHostPortProp = new Property();
allocatedServiceHostPortProp.setName(StratosConstants.ALLOCATED_SERVICE_HOST_PORT);
allocatedServiceHostPortProp.setValue(String.valueOf(service.getPort()));
+ ctxt.getProperties().addProperty(allocatedServiceHostPortProp);
+ dataHolder.addClusterContext(ctxt);
if (LOG.isDebugEnabled()) {
LOG.debug("Cloud Controller successfully started the service "