You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stratos.apache.org by Chamila De Alwis <ch...@wso2.com> on 2015/04/30 19:45:07 UTC

Guide to Create PCA Plugins

Hi Devs,

If you are creating Python Cartridge Agent plugins you can refer to the
README in the plugins folder inside the PCA component[1]. It has a detailed
guide on how to create plugins and how to make use of the Meta Data Service
client included in the PCA.

[1] -
https://github.com/apache/stratos/tree/master/components/org.apache.stratos.python.cartridge.agent/src/main/python/cartridge.agent/cartridge.agent/plugins

Regards,
Chamila de Alwis
Software Engineer | WSO2 | +94772207163
Blog: code.chamiladealwis.com

Re: Guide to Create PCA Plugins

Posted by Chamila De Alwis <ch...@wso2.com>.
Hi Imesh,

I will document the 'values' variable. I've missed that detail.

+1 for adding a reference. The readme can be updated quickly that way.
On May 1, 2015 11:26 AM, "Lahiru Sandaruwan" <la...@wso2.com> wrote:

>
>
> On Fri, May 1, 2015 at 10:51 AM, Imesh Gunaratne <im...@apache.org> wrote:
>
>> May be we could maintain this in README.md itself and add a pointer in
>> docs without duplicating. WDYT?
>>
>> +1.  Let's add a link from PCA section.
>
>> On Fri, May 1, 2015 at 9:39 AM, Lahiru Sandaruwan <la...@wso2.com>
>> wrote:
>>
>>> Great stuff. Doc candidate?
>>>
>>> On Fri, May 1, 2015 at 8:04 AM, Imesh Gunaratne <im...@apache.org>
>>> wrote:
>>>
>>>> Great work Chamila!! Very descriptive!! One minor point, shall we
>>>> either rename or document "values" variable in run_plugin method?
>>>>
>>>> def run_plugin(self, values)
>>>>
>>>>
>>>> On Thu, Apr 30, 2015 at 11:15 PM, Chamila De Alwis <ch...@wso2.com>
>>>> wrote:
>>>>
>>>>> Hi Devs,
>>>>>
>>>>> If you are creating Python Cartridge Agent plugins you can refer to
>>>>> the README in the plugins folder inside the PCA component[1]. It has a
>>>>> detailed guide on how to create plugins and how to make use of the Meta
>>>>> Data Service client included in the PCA.
>>>>>
>>>>> [1] -
>>>>> https://github.com/apache/stratos/tree/master/components/org.apache.stratos.python.cartridge.agent/src/main/python/cartridge.agent/cartridge.agent/plugins
>>>>>
>>>>> Regards,
>>>>> Chamila de Alwis
>>>>> Software Engineer | WSO2 | +94772207163
>>>>> Blog: code.chamiladealwis.com
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Imesh Gunaratne
>>>>
>>>> Senior Technical Lead, WSO2
>>>> Committer & PMC Member, Apache Stratos
>>>>
>>>
>>>
>>>
>>> --
>>> --
>>> Lahiru Sandaruwan
>>> Committer and PMC member, Apache Stratos,
>>> Senior Software Engineer,
>>> WSO2 Inc., http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> phone: +94773325954
>>> email: lahirus@wso2.com blog: http://lahiruwrites.blogspot.com/
>>> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>>>
>>>
>>
>>
>> --
>> Imesh Gunaratne
>>
>> Senior Technical Lead, WSO2
>> Committer & PMC Member, Apache Stratos
>>
>
>
>
> --
> --
> Lahiru Sandaruwan
> Committer and PMC member, Apache Stratos,
> Senior Software Engineer,
> WSO2 Inc., http://wso2.com
> lean.enterprise.middleware
>
> phone: +94773325954
> email: lahirus@wso2.com blog: http://lahiruwrites.blogspot.com/
> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>
>

Re: Guide to Create PCA Plugins

Posted by Lahiru Sandaruwan <la...@wso2.com>.
On Fri, May 1, 2015 at 10:51 AM, Imesh Gunaratne <im...@apache.org> wrote:

> May be we could maintain this in README.md itself and add a pointer in
> docs without duplicating. WDYT?
>
> +1.  Let's add a link from PCA section.

> On Fri, May 1, 2015 at 9:39 AM, Lahiru Sandaruwan <la...@wso2.com>
> wrote:
>
>> Great stuff. Doc candidate?
>>
>> On Fri, May 1, 2015 at 8:04 AM, Imesh Gunaratne <im...@apache.org> wrote:
>>
>>> Great work Chamila!! Very descriptive!! One minor point, shall we either
>>> rename or document "values" variable in run_plugin method?
>>>
>>> def run_plugin(self, values)
>>>
>>>
>>> On Thu, Apr 30, 2015 at 11:15 PM, Chamila De Alwis <ch...@wso2.com>
>>> wrote:
>>>
>>>> Hi Devs,
>>>>
>>>> If you are creating Python Cartridge Agent plugins you can refer to the
>>>> README in the plugins folder inside the PCA component[1]. It has a detailed
>>>> guide on how to create plugins and how to make use of the Meta Data Service
>>>> client included in the PCA.
>>>>
>>>> [1] -
>>>> https://github.com/apache/stratos/tree/master/components/org.apache.stratos.python.cartridge.agent/src/main/python/cartridge.agent/cartridge.agent/plugins
>>>>
>>>> Regards,
>>>> Chamila de Alwis
>>>> Software Engineer | WSO2 | +94772207163
>>>> Blog: code.chamiladealwis.com
>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> Imesh Gunaratne
>>>
>>> Senior Technical Lead, WSO2
>>> Committer & PMC Member, Apache Stratos
>>>
>>
>>
>>
>> --
>> --
>> Lahiru Sandaruwan
>> Committer and PMC member, Apache Stratos,
>> Senior Software Engineer,
>> WSO2 Inc., http://wso2.com
>> lean.enterprise.middleware
>>
>> phone: +94773325954
>> email: lahirus@wso2.com blog: http://lahiruwrites.blogspot.com/
>> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>>
>>
>
>
> --
> Imesh Gunaratne
>
> Senior Technical Lead, WSO2
> Committer & PMC Member, Apache Stratos
>



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

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

Re: Guide to Create PCA Plugins

Posted by Imesh Gunaratne <im...@apache.org>.
May be we could maintain this in README.md itself and add a pointer in docs
without duplicating. WDYT?

On Fri, May 1, 2015 at 9:39 AM, Lahiru Sandaruwan <la...@wso2.com> wrote:

> Great stuff. Doc candidate?
>
> On Fri, May 1, 2015 at 8:04 AM, Imesh Gunaratne <im...@apache.org> wrote:
>
>> Great work Chamila!! Very descriptive!! One minor point, shall we either
>> rename or document "values" variable in run_plugin method?
>>
>> def run_plugin(self, values)
>>
>>
>> On Thu, Apr 30, 2015 at 11:15 PM, Chamila De Alwis <ch...@wso2.com>
>> wrote:
>>
>>> Hi Devs,
>>>
>>> If you are creating Python Cartridge Agent plugins you can refer to the
>>> README in the plugins folder inside the PCA component[1]. It has a detailed
>>> guide on how to create plugins and how to make use of the Meta Data Service
>>> client included in the PCA.
>>>
>>> [1] -
>>> https://github.com/apache/stratos/tree/master/components/org.apache.stratos.python.cartridge.agent/src/main/python/cartridge.agent/cartridge.agent/plugins
>>>
>>> Regards,
>>> Chamila de Alwis
>>> Software Engineer | WSO2 | +94772207163
>>> Blog: code.chamiladealwis.com
>>>
>>>
>>>
>>
>>
>> --
>> Imesh Gunaratne
>>
>> Senior Technical Lead, WSO2
>> Committer & PMC Member, Apache Stratos
>>
>
>
>
> --
> --
> Lahiru Sandaruwan
> Committer and PMC member, Apache Stratos,
> Senior Software Engineer,
> WSO2 Inc., http://wso2.com
> lean.enterprise.middleware
>
> phone: +94773325954
> email: lahirus@wso2.com blog: http://lahiruwrites.blogspot.com/
> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>
>


-- 
Imesh Gunaratne

Senior Technical Lead, WSO2
Committer & PMC Member, Apache Stratos

Re: Guide to Create PCA Plugins

Posted by Lahiru Sandaruwan <la...@wso2.com>.
Great stuff. Doc candidate?

On Fri, May 1, 2015 at 8:04 AM, Imesh Gunaratne <im...@apache.org> wrote:

> Great work Chamila!! Very descriptive!! One minor point, shall we either
> rename or document "values" variable in run_plugin method?
>
> def run_plugin(self, values)
>
>
> On Thu, Apr 30, 2015 at 11:15 PM, Chamila De Alwis <ch...@wso2.com>
> wrote:
>
>> Hi Devs,
>>
>> If you are creating Python Cartridge Agent plugins you can refer to the
>> README in the plugins folder inside the PCA component[1]. It has a detailed
>> guide on how to create plugins and how to make use of the Meta Data Service
>> client included in the PCA.
>>
>> [1] -
>> https://github.com/apache/stratos/tree/master/components/org.apache.stratos.python.cartridge.agent/src/main/python/cartridge.agent/cartridge.agent/plugins
>>
>> Regards,
>> Chamila de Alwis
>> Software Engineer | WSO2 | +94772207163
>> Blog: code.chamiladealwis.com
>>
>>
>>
>
>
> --
> Imesh Gunaratne
>
> Senior Technical Lead, WSO2
> Committer & PMC Member, Apache Stratos
>



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

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

Re: Guide to Create PCA Plugins

Posted by Imesh Gunaratne <im...@apache.org>.
Great work Chamila!! Very descriptive!! One minor point, shall we either
rename or document "values" variable in run_plugin method?

def run_plugin(self, values)


On Thu, Apr 30, 2015 at 11:15 PM, Chamila De Alwis <ch...@wso2.com>
wrote:

> Hi Devs,
>
> If you are creating Python Cartridge Agent plugins you can refer to the
> README in the plugins folder inside the PCA component[1]. It has a detailed
> guide on how to create plugins and how to make use of the Meta Data Service
> client included in the PCA.
>
> [1] -
> https://github.com/apache/stratos/tree/master/components/org.apache.stratos.python.cartridge.agent/src/main/python/cartridge.agent/cartridge.agent/plugins
>
> Regards,
> Chamila de Alwis
> Software Engineer | WSO2 | +94772207163
> Blog: code.chamiladealwis.com
>
>
>


-- 
Imesh Gunaratne

Senior Technical Lead, WSO2
Committer & PMC Member, Apache Stratos