Hi Nirmal,

The following is the API that i thought of introducing in order to update
the status of the cluster in the Topology from Autoscaler.

    /**
     * Update the topology with current cluster instance status.
     * @param clusterId id of the subjected cluster.
     * @param instanceId id of the cluster instance
     * @param status current status of the cluster instance.
     */
    void updateClusterStatus(String clusterId, String instanceId,
ClusterStatus status);

Thanks,
Reka

On Fri, Nov 28, 2014 at 2:10 PM, Nirmal Fernando <nirmal070...@gmail.com>
wrote:

> Hi Reka,
>
> Are you planning to introduce an API in CC to update cluster status? Can
> you please share the API/s skeleton ?
>
> On Thu, Nov 27, 2014 at 11:15 PM, Reka Thirunavukkarasu <r...@wso2.com>
> wrote:
>
>> Hi Imesh,
>>
>> This is there to update the cluster status from autoscaler to Topology in
>> CC . If we are getting rid of this, then we would need to go for service
>> call. We introduced this as like instance status.
>>
>> Thanks,
>> Reka
>>
>> On Thu, Nov 27, 2014 at 7:09 PM, Imesh Gunaratne <im...@apache.org>
>> wrote:
>>
>>> Hi Devs,
>>>
>>> Do we need the following in cloud controller?
>>>
>>>             clusterStatusTopicReceiver = new
>>> ClusterStatusTopicReceiver();
>>>             Thread tClusterStatusTopicReceiver = new
>>> Thread(clusterStatusTopicReceiver);
>>>             tClusterStatusTopicReceiver.start();
>>>
>>> Thanks
>>>
>>>
>>> --
>>> Imesh Gunaratne
>>>
>>> Technical Lead, WSO2
>>> Committer & PMC Member, Apache Stratos
>>>
>>
>>
>>
>> --
>> Reka Thirunavukkarasu
>> Senior Software Engineer,
>> WSO2, Inc.:http://wso2.com,
>> Mobile: +94776442007
>>
>>
>>
>
>
> --
> Best Regards,
> Nirmal
>
> Nirmal Fernando.
> PPMC Member & Committer of Apache Stratos,
> Senior Software Engineer, WSO2 Inc.
>
> Blog: http://nirmalfdo.blogspot.com/
>



-- 
Reka Thirunavukkarasu
Senior Software Engineer,
WSO2, Inc.:http://wso2.com,
Mobile: +94776442007

Reply via email to