Updated Branches: refs/heads/master eaf17741a -> f573c2083
cluster created event should set the deployment policy Project: http://git-wip-us.apache.org/repos/asf/incubator-stratos/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-stratos/commit/4a7783dd Tree: http://git-wip-us.apache.org/repos/asf/incubator-stratos/tree/4a7783dd Diff: http://git-wip-us.apache.org/repos/asf/incubator-stratos/diff/4a7783dd Branch: refs/heads/master Commit: 4a7783ddef3325c001d01df8eed6a063f6cd1761 Parents: adc7ec7 Author: Nirmal Fernando <[email protected]> Authored: Sun Dec 8 10:55:21 2013 +0530 Committer: Nirmal Fernando <[email protected]> Committed: Tue Dec 10 19:16:12 2013 +0530 ---------------------------------------------------------------------- .../stratos/cloud/controller/topology/TopologyEventSender.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/4a7783dd/components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/topology/TopologyEventSender.java ---------------------------------------------------------------------- diff --git a/components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/topology/TopologyEventSender.java b/components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/topology/TopologyEventSender.java index b0ac12f..59a9e55 100644 --- a/components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/topology/TopologyEventSender.java +++ b/components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/topology/TopologyEventSender.java @@ -116,12 +116,14 @@ public class TopologyEventSender { clusterCreatedEvent.setTenantRange(registrant.getTenantRange()); clusterCreatedEvent.setAutoscalingPolicyName(registrant.getAutoScalerPolicyName()); clusterCreatedEvent.setProperties(props); + clusterCreatedEvent.setDeploymentPolicyName(registrant.getDeploymentPolicyName()); if(log.isInfoEnabled()) { log.info(String.format("Publishing cluster created event: " + - "[service] %s [cluster] %s [host] %s [tenant-range] %s [autoscaling-policy] %s", + "[service] %s [cluster] %s [host] %s [tenant-range] %s [autoscaling-policy] %s [deployment-policy] %s ", registrant.getCartridgeType(), registrant.getClusterId(), - registrant.getHostName(), registrant.getTenantRange(), registrant.getAutoScalerPolicyName())); + registrant.getHostName(), registrant.getTenantRange(), registrant.getAutoScalerPolicyName(), + registrant.getDeploymentPolicyName())); } publishEvent(clusterCreatedEvent);
