Yes, This is eventually will be set when the user subscribe. He will select
a policy and it will be used in cluster created event.

I think Autoscaler policy name is also hard coded in Autoscaler side due to
same reason.

Thanks.


On Tue, Dec 3, 2013 at 11:31 AM, Nirmal Fernando <[email protected]>wrote:

> This is the *default* deployment policy name and also, currently the
> policy subscription is not there. So, there's no way to get this bit of
> information to the bus.
>
> And if someone use setter method and set the deployment policy name, upon
> a new subscription, that value would get propagated.
>
>
> On Tue, Dec 3, 2013 at 11:23 AM, Imesh Gunaratne <[email protected]> wrote:
>
>> Hi All,
>>
>> Is there any reason for hard coding deployment policy name in Cluster
>> class:
>>
>> package org.apache.stratos.messaging.domain.topology:
>> ...
>> public class Cluster implements Serializable {
>> ...
>>     private String deploymentPolicyName = "economy-deployment";
>>     ...
>> }
>>
>> Thanks
>> Imesh
>>
>
>
>
> --
> Best Regards,
> Nirmal
>
> Nirmal Fernando.
> PPMC Member & Committer of Apache Stratos,
> Senior Software Engineer, WSO2 Inc.
>
> Blog: http://nirmalfdo.blogspot.com/
>



-- 
--
Lahiru Sandaruwan
Software Engineer,
Platform Technologies,
WSO2 Inc., http://wso2.com
lean.enterprise.middleware

email: [email protected] cell: (+94) 773 325 954
blog: http://lahiruwrites.blogspot.com/
twitter: http://twitter.com/lahirus
linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146

Reply via email to