You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stratos.apache.org by Lahiru Sandaruwan <la...@wso2.com> on 2014/10/31 09:13:40 UTC

Invoking osgi services when Stratos is running in single JVM mode

Hi,

$subject can replace the service calls among Autoscaler, Cloud controller,
and Stratos Manager.
This will increase the efficiency.

This may be a good exercise for a new comer to the community. Jira [1]
tracks it.

[1] https://issues.apache.org/jira/browse/STRATOS-935

Thanks.

-- 
--
Lahiru Sandaruwan
Committer and PMC member, Apache Stratos,
Senior Software Engineer,
WSO2 Inc., http://wso2.com
lean.enterprise.middleware

email: lahirus@wso2.com blog: http://lahiruwrites.blogspot.com/
linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146

Re: Invoking osgi services when Stratos is running in single JVM mode

Posted by Lahiru Sandaruwan <la...@wso2.com>.
On Fri, Oct 31, 2014 at 2:02 PM, Nirmal Fernando <ni...@gmail.com>
wrote:

> I'm more concerned about having to write duplicated code. IMO we need to
> see whether it's worth to have two modes before start implementing it. Wdyt?
>

Where would be the duplicated code? @client?

>
> On Fri, Oct 31, 2014 at 9:27 AM, Lahiru Sandaruwan <la...@wso2.com>
> wrote:
>
>>
>>
>> On Fri, Oct 31, 2014 at 1:47 PM, Nirmal Fernando <ni...@gmail.com>
>> wrote:
>>
>>> Then we would have to have 2 modes of calling these services, which will
>>> introduce lot of complexity ?
>>>
>>
>> Two modes, but it would be simple check of whether the OSGi service is
>> enabled.
>>
>>
>>>
>>> On Fri, Oct 31, 2014 at 9:13 AM, Lahiru Sandaruwan <la...@wso2.com>
>>> wrote:
>>>
>>>> Hi,
>>>>
>>>> $subject can replace the service calls among Autoscaler, Cloud
>>>> controller, and Stratos Manager.
>>>> This will increase the efficiency.
>>>>
>>>> This may be a good exercise for a new comer to the community. Jira [1]
>>>> tracks it.
>>>>
>>>> [1] https://issues.apache.org/jira/browse/STRATOS-935
>>>>
>>>> Thanks.
>>>>
>>>> --
>>>> --
>>>> Lahiru Sandaruwan
>>>> Committer and PMC member, Apache Stratos,
>>>> Senior Software Engineer,
>>>> WSO2 Inc., http://wso2.com
>>>> lean.enterprise.middleware
>>>>
>>>> email: lahirus@wso2.com blog: http://lahiruwrites.blogspot.com/
>>>> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>>>>
>>>>
>>>
>>>
>>> --
>>> Best Regards,
>>> Nirmal
>>>
>>> Nirmal Fernando.
>>> PPMC Member & Committer of Apache Stratos,
>>> Senior Software Engineer, WSO2 Inc.
>>>
>>> Blog: http://nirmalfdo.blogspot.com/
>>>
>>
>>
>>
>> --
>> --
>> Lahiru Sandaruwan
>> Committer and PMC member, Apache Stratos,
>> Senior Software Engineer,
>> WSO2 Inc., http://wso2.com
>> lean.enterprise.middleware
>>
>> email: lahirus@wso2.com blog: http://lahiruwrites.blogspot.com/
>> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>>
>>
>
>
> --
> Best Regards,
> Nirmal
>
> Nirmal Fernando.
> PPMC Member & Committer of Apache Stratos,
> Senior Software Engineer, WSO2 Inc.
>
> Blog: http://nirmalfdo.blogspot.com/
>



-- 
--
Lahiru Sandaruwan
Committer and PMC member, Apache Stratos,
Senior Software Engineer,
WSO2 Inc., http://wso2.com
lean.enterprise.middleware

email: lahirus@wso2.com blog: http://lahiruwrites.blogspot.com/
linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146

Re: Invoking osgi services when Stratos is running in single JVM mode

Posted by Imesh Gunaratne <im...@apache.org>.
Yes this will add an overhead of introducing a wrapper on top of the
service client stub, however it might be useful when running in single JVM
mode.

On Fri, Oct 31, 2014 at 2:02 PM, Nirmal Fernando <ni...@gmail.com>
wrote:

> I'm more concerned about having to write duplicated code. IMO we need to
> see whether it's worth to have two modes before start implementing it. Wdyt?
>
> On Fri, Oct 31, 2014 at 9:27 AM, Lahiru Sandaruwan <la...@wso2.com>
> wrote:
>
>>
>>
>> On Fri, Oct 31, 2014 at 1:47 PM, Nirmal Fernando <ni...@gmail.com>
>> wrote:
>>
>>> Then we would have to have 2 modes of calling these services, which will
>>> introduce lot of complexity ?
>>>
>>
>> Two modes, but it would be simple check of whether the OSGi service is
>> enabled.
>>
>>
>>>
>>> On Fri, Oct 31, 2014 at 9:13 AM, Lahiru Sandaruwan <la...@wso2.com>
>>> wrote:
>>>
>>>> Hi,
>>>>
>>>> $subject can replace the service calls among Autoscaler, Cloud
>>>> controller, and Stratos Manager.
>>>> This will increase the efficiency.
>>>>
>>>> This may be a good exercise for a new comer to the community. Jira [1]
>>>> tracks it.
>>>>
>>>> [1] https://issues.apache.org/jira/browse/STRATOS-935
>>>>
>>>> Thanks.
>>>>
>>>> --
>>>> --
>>>> Lahiru Sandaruwan
>>>> Committer and PMC member, Apache Stratos,
>>>> Senior Software Engineer,
>>>> WSO2 Inc., http://wso2.com
>>>> lean.enterprise.middleware
>>>>
>>>> email: lahirus@wso2.com blog: http://lahiruwrites.blogspot.com/
>>>> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>>>>
>>>>
>>>
>>>
>>> --
>>> Best Regards,
>>> Nirmal
>>>
>>> Nirmal Fernando.
>>> PPMC Member & Committer of Apache Stratos,
>>> Senior Software Engineer, WSO2 Inc.
>>>
>>> Blog: http://nirmalfdo.blogspot.com/
>>>
>>
>>
>>
>> --
>> --
>> Lahiru Sandaruwan
>> Committer and PMC member, Apache Stratos,
>> Senior Software Engineer,
>> WSO2 Inc., http://wso2.com
>> lean.enterprise.middleware
>>
>> email: lahirus@wso2.com blog: http://lahiruwrites.blogspot.com/
>> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>>
>>
>
>
> --
> Best Regards,
> Nirmal
>
> Nirmal Fernando.
> PPMC Member & Committer of Apache Stratos,
> Senior Software Engineer, WSO2 Inc.
>
> Blog: http://nirmalfdo.blogspot.com/
>



-- 
Imesh Gunaratne

Technical Lead, WSO2
Committer & PMC Member, Apache Stratos

Re: Invoking osgi services when Stratos is running in single JVM mode

Posted by Nirmal Fernando <ni...@gmail.com>.
I'm more concerned about having to write duplicated code. IMO we need to
see whether it's worth to have two modes before start implementing it. Wdyt?

On Fri, Oct 31, 2014 at 9:27 AM, Lahiru Sandaruwan <la...@wso2.com> wrote:

>
>
> On Fri, Oct 31, 2014 at 1:47 PM, Nirmal Fernando <ni...@gmail.com>
> wrote:
>
>> Then we would have to have 2 modes of calling these services, which will
>> introduce lot of complexity ?
>>
>
> Two modes, but it would be simple check of whether the OSGi service is
> enabled.
>
>
>>
>> On Fri, Oct 31, 2014 at 9:13 AM, Lahiru Sandaruwan <la...@wso2.com>
>> wrote:
>>
>>> Hi,
>>>
>>> $subject can replace the service calls among Autoscaler, Cloud
>>> controller, and Stratos Manager.
>>> This will increase the efficiency.
>>>
>>> This may be a good exercise for a new comer to the community. Jira [1]
>>> tracks it.
>>>
>>> [1] https://issues.apache.org/jira/browse/STRATOS-935
>>>
>>> Thanks.
>>>
>>> --
>>> --
>>> Lahiru Sandaruwan
>>> Committer and PMC member, Apache Stratos,
>>> Senior Software Engineer,
>>> WSO2 Inc., http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> email: lahirus@wso2.com blog: http://lahiruwrites.blogspot.com/
>>> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>>>
>>>
>>
>>
>> --
>> Best Regards,
>> Nirmal
>>
>> Nirmal Fernando.
>> PPMC Member & Committer of Apache Stratos,
>> Senior Software Engineer, WSO2 Inc.
>>
>> Blog: http://nirmalfdo.blogspot.com/
>>
>
>
>
> --
> --
> Lahiru Sandaruwan
> Committer and PMC member, Apache Stratos,
> Senior Software Engineer,
> WSO2 Inc., http://wso2.com
> lean.enterprise.middleware
>
> email: lahirus@wso2.com blog: http://lahiruwrites.blogspot.com/
> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>
>


-- 
Best Regards,
Nirmal

Nirmal Fernando.
PPMC Member & Committer of Apache Stratos,
Senior Software Engineer, WSO2 Inc.

Blog: http://nirmalfdo.blogspot.com/

Re: Invoking osgi services when Stratos is running in single JVM mode

Posted by Lahiru Sandaruwan <la...@wso2.com>.
On Fri, Oct 31, 2014 at 1:47 PM, Nirmal Fernando <ni...@gmail.com>
wrote:

> Then we would have to have 2 modes of calling these services, which will
> introduce lot of complexity ?
>

Two modes, but it would be simple check of whether the OSGi service is
enabled.


>
> On Fri, Oct 31, 2014 at 9:13 AM, Lahiru Sandaruwan <la...@wso2.com>
> wrote:
>
>> Hi,
>>
>> $subject can replace the service calls among Autoscaler, Cloud
>> controller, and Stratos Manager.
>> This will increase the efficiency.
>>
>> This may be a good exercise for a new comer to the community. Jira [1]
>> tracks it.
>>
>> [1] https://issues.apache.org/jira/browse/STRATOS-935
>>
>> Thanks.
>>
>> --
>> --
>> Lahiru Sandaruwan
>> Committer and PMC member, Apache Stratos,
>> Senior Software Engineer,
>> WSO2 Inc., http://wso2.com
>> lean.enterprise.middleware
>>
>> email: lahirus@wso2.com blog: http://lahiruwrites.blogspot.com/
>> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>>
>>
>
>
> --
> Best Regards,
> Nirmal
>
> Nirmal Fernando.
> PPMC Member & Committer of Apache Stratos,
> Senior Software Engineer, WSO2 Inc.
>
> Blog: http://nirmalfdo.blogspot.com/
>



-- 
--
Lahiru Sandaruwan
Committer and PMC member, Apache Stratos,
Senior Software Engineer,
WSO2 Inc., http://wso2.com
lean.enterprise.middleware

email: lahirus@wso2.com blog: http://lahiruwrites.blogspot.com/
linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146

Re: Invoking osgi services when Stratos is running in single JVM mode

Posted by Nirmal Fernando <ni...@gmail.com>.
Then we would have to have 2 modes of calling these services, which will
introduce lot of complexity ?

On Fri, Oct 31, 2014 at 9:13 AM, Lahiru Sandaruwan <la...@wso2.com> wrote:

> Hi,
>
> $subject can replace the service calls among Autoscaler, Cloud controller,
> and Stratos Manager.
> This will increase the efficiency.
>
> This may be a good exercise for a new comer to the community. Jira [1]
> tracks it.
>
> [1] https://issues.apache.org/jira/browse/STRATOS-935
>
> Thanks.
>
> --
> --
> Lahiru Sandaruwan
> Committer and PMC member, Apache Stratos,
> Senior Software Engineer,
> WSO2 Inc., http://wso2.com
> lean.enterprise.middleware
>
> email: lahirus@wso2.com blog: http://lahiruwrites.blogspot.com/
> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>
>


-- 
Best Regards,
Nirmal

Nirmal Fernando.
PPMC Member & Committer of Apache Stratos,
Senior Software Engineer, WSO2 Inc.

Blog: http://nirmalfdo.blogspot.com/