Re: [Dev] How to select Leader/Contributer node in a cluster

2016-01-19 Thread Nipuna Prashan
Hi Danesh,

Yes, I will try to do that.
Thank you,

On Tue, Jan 19, 2016 at 8:48 AM, Danesh Kuruppu  wrote:

> Hi Nipuna,
>
> Think you can check for the coordinator in clustering agent. There will be
> only one coordinator for a cluster domain.  Clustering agent is in
> AxisConfiguration which is in server configuration context.
>
> Thanks
> Danesh
>
> On Mon, Jan 18, 2016 at 6:24 PM, Nipuna Prashan  wrote:
>
>> Hi all,
>>
>> I am building an osgi component for tenant deletion task. This will be
>> deployed in every server (APIM, AS, AF, BAM, IS..). I have a requirement to
>> do this task in one node in the cluster while there is no single point of
>> failure. Only one node should start deletion while other nodes waiting on
>> the same server.
>> Is there a way to find the leader node/ contributor in a cluster? Any
>> help would be appreciated.
>>
>>
>>
>> --
>> *Nipuna Prashan*
>> Software Engineering Intern
>> +94711852792
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> Danesh Kuruppu
> Software Engineer
> WSO2 Inc,
> Mobile: +94 (77) 1690552
>



-- 
*Nipuna Prashan*
Software Engineering Intern
+94711852792
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Requesting a new jenkins build for jaggery-extensions

2016-01-19 Thread Ayesha Dissanayaka
Thanks a lot Maheshika :)

On Tue, Jan 19, 2016 at 1:25 PM, Maheshika Goonetilleke 
wrote:

> Hi Ayesha
>
> Created [1] as requested. Please check.
>
> [1] https://wso2.org/jenkins/job/jaggery-extensions_1.4.x/
>
> On Tue, Jan 19, 2016 at 12:40 PM, Sagara Gunathunga 
> wrote:
>
>>
>>
>> On Tue, Jan 19, 2016 at 12:34 PM, Ayesha Dissanayaka 
>> wrote:
>>
>>> Hi Maheshika,
>>>
>>> Can we get a new jenkins build job for the "1.4.5-SNAPSHOT-temp" branch
>>> of jaggery-extensions repository [1].
>>>
>>
>> Please don't use "-temp" use something meaningful so that others can
>> understand the purpose of this job.
>>
>> Thanks !
>>
>>>
>>> This is because, as of now we are maintaining two active branches of
>>> jaggery-extensions [2].
>>>
>>>-master
>>>   - depend on 0.12.0
>>>-1.4.5-SNAPSHOT-temp
>>>   - depend on 0.11.2
>>>
>>>
>>> For repositories product-greg[3] and product-es[4], we are pointing to
>>> 1.4.5-SNAPSHOT-temp since these repositories are not yet moved to jaggery
>>> 0.12.0 which depends on identity major version- 5.x.x
>>>
>>> [1] https://github.com/wso2/jaggery-extensions/tree/1.4.5-SNAPSHOT-temp
>>> [2] https://github.com/wso2/jaggery-extensions/
>>> [3] https://github.com/wso2/product-greg
>>> [4] https://github.com/wso2/product-es
>>>
>>> Thanks!
>>> -Ayesha
>>>
>>> --
>>> *Ayesha Dissanayaka*
>>> Software Engineer,
>>> WSO2, Inc : http://wso2.com
>>> 
>>> 20, Palmgrove Avenue, Colombo 3
>>> E-Mail: aye...@wso2.com 
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Sagara Gunathunga
>>
>> Architect; WSO2, Inc.;  http://wso2.com
>> V.P Apache Web Services;http://ws.apache.org/
>> Linkedin; http://www.linkedin.com/in/ssagara
>> Blog ;  http://ssagara.blogspot.com
>>
>>
>
>
> --
>
> Thanks & Best Regards,
>
> Maheshika Goonetilleke
> Engineering Process Coordinator
>
> *WSO2 Inc*
> *email   : mahesh...@wso2.com *
> *mobile : +94 773 596707 <%2B94%20773%20596707>*
> *www: :http://wso2.com *lean . enterprise . middleware
>
>
>
>
>


-- 
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.com

20, Palmgrove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Effects of removing the already installed features from the "features" folder of a Product-Pack?

2016-01-19 Thread Irham Iqbal
Hi Shabir,

Do you want to remove a installed feature from a product ?.

Thanks,
Iqbal

On Tue, Jan 19, 2016 at 9:54 AM, Shabir Mohamed  wrote:

> Hi All,
>
> What could be the implications of $subject?
>
> Thanks
> -
> *Shabir Mohamed*
> *Software Engineer*
> WSO2 Inc.; http://wso2.com
> Email: sha...@wso2.com 
> Mobile: +94 77 3516019 | +94 71 6583393
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Irham Iqbal
Software Engineer - Test Automation
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware
phone: +94 777888452
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Effects of removing the already installed features from the "features" folder of a Product-Pack?

2016-01-19 Thread Shabir Mohamed
Hi All,

What could be the implications of $subject?

Thanks
-
*Shabir Mohamed*
*Software Engineer*
WSO2 Inc.; http://wso2.com
Email: sha...@wso2.com 
Mobile: +94 77 3516019 | +94 71 6583393
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Effects of removing the already installed features from the "features" folder of a Product-Pack?

2016-01-19 Thread Shabir Mohamed
Hi,

No. I just want to know what happens if I delete the features copied into
the "repository/components/features" folder during the p2-profile-gen goal
of the p2 pom after they have been installed?

After the features have been installed, is it required for these features
to still be there inside the features folder in the pack?

Well one scenario which I could think of for it to be there is if someone
wants to install a feature that he/she already uninstalled.

Thanks

-
*Shabir Mohamed*
*Software Engineer*
WSO2 Inc.; http://wso2.com
Email: sha...@wso2.com 
Mobile: +94 77 3516019 | +94 71 6583393

On Tue, Jan 19, 2016 at 3:58 PM, Irham Iqbal  wrote:

> Hi Shabir,
>
> Do you want to remove a installed feature from a product ?.
>
> Thanks,
> Iqbal
>
> On Tue, Jan 19, 2016 at 9:54 AM, Shabir Mohamed  wrote:
>
>> Hi All,
>>
>> What could be the implications of $subject?
>>
>> Thanks
>> -
>> *Shabir Mohamed*
>> *Software Engineer*
>> WSO2 Inc.; http://wso2.com
>> Email: sha...@wso2.com 
>> Mobile: +94 77 3516019 | +94 71 6583393
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Irham Iqbal
> Software Engineer - Test Automation
> WSO2, Inc.: http://wso2.com
> lean. enterprise. middleware
> phone: +94 777888452
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to select Leader/Contributer node in a cluster

2016-01-19 Thread Nipuna Prashan
Adding Afkham Azeez, Amila Maha Arachchi

On Tue, Jan 19, 2016 at 2:20 PM, Nipuna Prashan  wrote:

> Hi Danesh,
>
> Yes, I will try to do that.
> Thank you,
>
> On Tue, Jan 19, 2016 at 8:48 AM, Danesh Kuruppu  wrote:
>
>> Hi Nipuna,
>>
>> Think you can check for the coordinator in clustering agent. There will
>> be only one coordinator for a cluster domain.  Clustering agent is in
>> AxisConfiguration which is in server configuration context.
>>
>> Thanks
>> Danesh
>>
>> On Mon, Jan 18, 2016 at 6:24 PM, Nipuna Prashan  wrote:
>>
>>> Hi all,
>>>
>>> I am building an osgi component for tenant deletion task. This will be
>>> deployed in every server (APIM, AS, AF, BAM, IS..). I have a requirement to
>>> do this task in one node in the cluster while there is no single point of
>>> failure. Only one node should start deletion while other nodes waiting on
>>> the same server.
>>> Is there a way to find the leader node/ contributor in a cluster? Any
>>> help would be appreciated.
>>>
>>>
>>>
>>> --
>>> *Nipuna Prashan*
>>> Software Engineering Intern
>>> +94711852792
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>>
>> Danesh Kuruppu
>> Software Engineer
>> WSO2 Inc,
>> Mobile: +94 (77) 1690552
>>
>
>
>
> --
> *Nipuna Prashan*
> Software Engineering Intern
> +94711852792
>



-- 
*Nipuna Prashan*
Software Engineering Intern
+94711852792
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to select Leader/Contributer node in a cluster

2016-01-19 Thread Danushka Fernando
We implemented a similar thing for AF. Not sure it was Stratos based or
not. Any way adding Anuruddha to comment on it.

Thanks & Regards
Danushka Fernando
Senior Software Engineer
WSO2 inc. http://wso2.com/
Mobile : +94716332729


On Jan 18, 2016 6:25 PM, "Nipuna Prashan"  wrote:

> Hi all,
>
> I am building an osgi component for tenant deletion task. This will be
> deployed in every server (APIM, AS, AF, BAM, IS..). I have a requirement to
> do this task in one node in the cluster while there is no single point of
> failure. Only one node should start deletion while other nodes waiting on
> the same server.
> Is there a way to find the leader node/ contributor in a cluster? Any help
> would be appreciated.
>
>
>
> --
> *Nipuna Prashan*
> Software Engineering Intern
> +94711852792
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [VOTE] Release WSO2 Microservices Server 1.0.0 RC4

2016-01-19 Thread Samiyuru Senarathne
Hi Devs,

This is the 4th Release Candidate of WSO2 Microservices Server 1.0.0.

Please download, test the product and vote.

*​Source and binary distribution files:*
*https://github.com/wso2/product-mss/releases/tag/v1.0.0-RC4
*

*Maven staging repository:*
http://maven.wso2.org/nexus/content/repositories/orgwso2carbonmss-298/

*The tag to be voted upon:*
*https://github.com/wso2/product-mss/tree/v1.0.0-RC4
*


[ ] Broken - do not release (explain why)
[ ] Stable - go ahead and release

Note: Since the artifacts that have to be uploaded to the maven central are
not yet uploaded, please make sure to first build the project from the
source in order to make all artifacts available in the maven local
repository.

Thank you,
Carbon Team

-- 
Samiyuru Senarathne
*Software Engineer*
Mobile : +94 (0) 71 134 6087
samiy...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to select Leader/Contributer node in a cluster

2016-01-19 Thread Nipuna Prashan
Hi Krishanthan,

Cloud team has developed three osgi components to delete tenants, but
tenant deletion has to be done manually by adding components to
dropping folder when we want to start tenant deletion. Now, my project
is to automate this process by making one osgi component for every
server and the component will be in the server every time.

AxisConfiguration serverAxisConfig =
ServiceHolder.getConfigurationContextService().getServerConfigContext().getAxisConfiguration();
ClusteringAgent agent = serverAxisConfig.getClusteringAgent();
boolean isCoordinator = agent.isCoordinator();

I tried this, but this always returns false.

On Tue, Jan 19, 2016 at 9:08 PM, Kishanthan Thangarajah
 wrote:
> IIRC, we already have a way (tool) to delete tenants in a cluster which is
> used by cloud team. So what's the requirement for this component here?
>
> With hazelcast based clustering, we assume that the first (oldest) member as
> the coordinator for the cluster. We set this member as the coordinator and
> you can check whether the current node is the coordinator using
> ClusteringAgent#isCoordinator method.
>
> On Mon, Jan 18, 2016 at 6:24 PM, Nipuna Prashan  wrote:
>>
>> Hi all,
>>
>> I am building an osgi component for tenant deletion task. This will be
>> deployed in every server (APIM, AS, AF, BAM, IS..). I have a requirement to
>> do this task in one node in the cluster while there is no single point of
>> failure. Only one node should start deletion while other nodes waiting on
>> the same server.
>> Is there a way to find the leader node/ contributor in a cluster? Any help
>> would be appreciated.
>>
>>
>>
>> --
>> Nipuna Prashan
>> Software Engineering Intern
>> +94711852792
>
>
>
>
> --
> Kishanthan Thangarajah
> Associate Technical Lead,
> Platform Technologies Team,
> WSO2, Inc.
> lean.enterprise.middleware
>
> Mobile - +94773426635
> Blog - http://kishanthan.wordpress.com
> Twitter - http://twitter.com/kishanthan



-- 
Nipuna Prashan
Software Engineering Intern
+94711852792
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Handling time-consuming processes within Carbon Metrics Gauges

2016-01-19 Thread Grainier Perera
Currently, the memory usage calculation mechanism used on a Siddhi query
takes around 3 seconds. Therefore, when it comes to complex flow with
several of execution plans, it takes around (# of queries * 3) seconds.
Moreover, we have integrated carbon-metrics [1] (Gauges in this scenario)
with CEP for metrics calculation and reporting. Therefore, if we were to
use the same mechanism within the getValue() method of carbon-metrics
Gauges, it will increase the reporting time consumed by scheduled reporters
(per iteration) by ~(# of queries * 3) seconds. That might cause issues
such as reporters does not report according to the defined PollingPeriod,
takes a considerable amount of time to update and render Carbon Metrics UI,
etc. Therefore, is there a way to handle such time-consuming process within
Carbon Metrics Gauges?

Gauge.getValue() Implementation:

new Gauge() {
@Override
public Long getValue() {
*// Below process takes ~3 seconds.*
ObjectGraphMeasurer.Footprint footprint =
ObjectGraphMeasurer.measure(object);
return MemoryMeasurerUtil.footprintSizeEstimate(footprint);
}
});

[1] https://github.com/wso2/carbon-metrics

Thanks,
Grainier.
-- 
Grainier Perera
Software Engineer
Mobile : +94716122384
WSO2 Inc. | http://wso2.com
lean.enterprise.middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Requesting pull requests to be merged to DAS/DSS/CEP components

2016-01-19 Thread Ruwan Yatawara
Hi Team.

While trying to include DAS & MB components together in the IOT Server, we
ran in to several OSGI issues due to version ranges not being set properly
for com.google.common.* and org.apache.thrift libraries in the
analytics/analytics-common components.

As a fix for this we had to patch the hadop-client orbit bundle along with
analytics components. Therefore, i have update the DAS/CEP/DSS component
repos to reflect the hadoop-client version upgrade.

PRs for the changes can be found below @ [1],[2] & [3].

[1] - https://github.com/wso2/carbon-data/pull/71
[2] - https://github.com/wso2/carbon-analytics/pull/152
[3] - https://github.com/wso2/carbon-analytics-common/pull/173


Thanks and Regards,

Ruwan Yatawara

Senior Software Engineer,
WSO2 Inc.

email : ruw...@wso2.com
mobile : +94 77 9110413
blog : http://ruwansrants.blogspot.com/
www: :http://wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Effects of removing the already installed features from the "features" folder of a Product-Pack?

2016-01-19 Thread Chamara Philips
Deleting the folders from "repository/components/features" folder will not
uninstall the feature properly. If you need to reinstall a feature the best
way to do is to uninstall it from the UI and then reinstall it.

Thanks.

On Tue, Jan 19, 2016 at 4:49 PM, Shabir Mohamed  wrote:

> Hi,
>
> No. I just want to know what happens if I delete the features copied into
> the "repository/components/features" folder during the p2-profile-gen goal
> of the p2 pom after they have been installed?
>
> After the features have been installed, is it required for these features
> to still be there inside the features folder in the pack?
>
> Well one scenario which I could think of for it to be there is if someone
> wants to install a feature that he/she already uninstalled.
>
> Thanks
>
> -
> *Shabir Mohamed*
> *Software Engineer*
> WSO2 Inc.; http://wso2.com
> Email: sha...@wso2.com 
> Mobile: +94 77 3516019 | +94 71 6583393
>
> On Tue, Jan 19, 2016 at 3:58 PM, Irham Iqbal  wrote:
>
>> Hi Shabir,
>>
>> Do you want to remove a installed feature from a product ?.
>>
>> Thanks,
>> Iqbal
>>
>> On Tue, Jan 19, 2016 at 9:54 AM, Shabir Mohamed  wrote:
>>
>>> Hi All,
>>>
>>> What could be the implications of $subject?
>>>
>>> Thanks
>>> -
>>> *Shabir Mohamed*
>>> *Software Engineer*
>>> WSO2 Inc.; http://wso2.com
>>> Email: sha...@wso2.com 
>>> Mobile: +94 77 3516019 | +94 71 6583393
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Irham Iqbal
>> Software Engineer - Test Automation
>> WSO2, Inc.: http://wso2.com
>> lean. enterprise. middleware
>> phone: +94 777888452
>>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Hareendra Chamara Philips
*Software  Engineer*
Mobile : +94 (0) 767 184161 <%2B94%20%280%29%20773%20451194>
chama...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ML] Are we using correct names for feature types?

2016-01-19 Thread Madhawa Gunasekara
AFAIK there are 4 types of data measures. Why can't we use those 4 types
for feature type names. Nominal, Ordinal, Interval, Ratio. [1]

[1]
http://www.mymarketresearchmethods.com/types-of-data-nominal-ordinal-interval-ratio/#pogrhrik

On Tue, Jan 19, 2016 at 12:21 PM, Maheshakya Wijewardena <
mahesha...@wso2.com> wrote:

> No.
> The only reason is we need a name for the features that actually have a
> numerical meanings. Numerical may mean "numbers" (which can be categorical
> as well) to users. In that case we need an alternative. Is there a better
> name we can use?
> Or we need to keep numerical as it is and assume it means the features
> that have some numerical meaning.
>
> On Tue, Jan 19, 2016 at 12:04 PM, CD Athuraliya 
> wrote:
>
>>
>>
>> On Tue, Jan 19, 2016 at 11:58 AM, Maheshakya Wijewardena <
>> mahesha...@wso2.com> wrote:
>>
>>> Note that only continuous is not sufficient since there can be numerical
>>> attributes that are not continuous like number of wins, etc.
>>>
>>> On Tue, Jan 19, 2016 at 11:57 AM, Maheshakya Wijewardena <
>>> mahesha...@wso2.com> wrote:
>>>
 Since the concern is about the suitability of the term "numerical",
 what if we add two new feature types:

1. Continues numerical
2. Discrete numerical

 to represent the features that actually have some numerical meaning and
 then eliminate "numerical". That way we can get rid of the confusion when
 there is categorical features with numerical values.

>>>
>> What are we trying achieve by introducing these new types? Do we
>> introduce anything new to our workflow depending on these new types?
>>
>>>
 On Tue, Jan 19, 2016 at 11:03 AM, Maheshakya Wijewardena <
 mahesha...@wso2.com> wrote:

> Should there be an issue, since we are already considering these type
> of "numerical" features as categorical?
>
> On Tue, Jan 19, 2016 at 10:57 AM, Nirmal Fernando 
> wrote:
>
>>
>> On Tue, Jan 19, 2016 at 10:53 AM, Supun Sethunga 
>> wrote:
>>
>>> IMO, 0 & 1 is still categorical. Its an equivalent to a encoded
>>> string variable, isn't it?
>>>
>>
>> Question is about what we should name current 'numerical' type. 0, 1
>> is of course categorical :)
>>
>>
>>> On Tue, Jan 19, 2016 at 10:49 AM, Nirmal Fernando 
>>> wrote:
>>>
 All,

 Currently we have; numerical and categorical. But there can be
 categorical features with numerical values for an example if a feature 
 has
 only 0 & 1 we say it's a categorical feature. What should be the
 appropriate names?

 --

 Thanks & regards,
 Nirmal

 Team Lead - WSO2 Machine Learner
 Associate Technical Lead - Data Technologies Team, WSO2 Inc.
 Mobile: +94715779733
 Blog: http://nirmalfdo.blogspot.com/



>>>
>>>
>>> --
>>> *Supun Sethunga*
>>> Software Engineer
>>> WSO2, Inc.
>>> http://wso2.com/
>>> lean | enterprise | middleware
>>> Mobile : +94 716546324
>>>
>>
>>
>>
>> --
>>
>> Thanks & regards,
>> Nirmal
>>
>> Team Lead - WSO2 Machine Learner
>> Associate Technical Lead - Data Technologies Team, WSO2 Inc.
>> Mobile: +94715779733
>> Blog: http://nirmalfdo.blogspot.com/
>>
>>
>>
>
>
> --
> Pruthuvi Maheshakya Wijewardena
> mahesha...@wso2.com
> +94711228855
>
>
>


 --
 Pruthuvi Maheshakya Wijewardena
 mahesha...@wso2.com
 +94711228855



>>>
>>>
>>> --
>>> Pruthuvi Maheshakya Wijewardena
>>> mahesha...@wso2.com
>>> +94711228855
>>>
>>>
>>>
>>
>>
>> --
>> *CD Athuraliya*
>> Software Engineer
>> WSO2, Inc.
>> lean . enterprise . middleware
>> Mobile: +94 716288847 <94716288847>
>> LinkedIn  | Twitter
>>  | Blog
>> 
>>
>
>
>
> --
> Pruthuvi Maheshakya Wijewardena
> mahesha...@wso2.com
> +94711228855
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Madhawa Gunasekara*
Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 719411002 <+94+719411002>
blog: *http://madhawa-gunasekara.blogspot.com
*
linkedin: *http://lk.linkedin.com/in/mgunasekara
*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] VFS in tenant mode

2016-01-19 Thread John Q
Hello,
I have a proxy service that retrieve a file from an FTP, it works well but
when I go in multi-tenant mode, it seems like it doesn't listen to the VFS,
can any body tell me what do I have to configure?

thanks,
john
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to select Leader/Contributer node in a cluster

2016-01-19 Thread Kishanthan Thangarajah
IIRC, we already have a way (tool) to delete tenants in a cluster which is
used by cloud team. So what's the requirement for this component here?

With hazelcast based clustering, we assume that the first (oldest) member
as the coordinator for the cluster. We set this member as the coordinator
and you can check whether the current node is the coordinator
using ClusteringAgent#isCoordinator method.

On Mon, Jan 18, 2016 at 6:24 PM, Nipuna Prashan  wrote:

> Hi all,
>
> I am building an osgi component for tenant deletion task. This will be
> deployed in every server (APIM, AS, AF, BAM, IS..). I have a requirement to
> do this task in one node in the cluster while there is no single point of
> failure. Only one node should start deletion while other nodes waiting on
> the same server.
> Is there a way to find the leader node/ contributor in a cluster? Any help
> would be appreciated.
>
>
>
> --
> *Nipuna Prashan*
> Software Engineering Intern
> +94711852792
>



-- 
*Kishanthan Thangarajah*
Associate Technical Lead,
Platform Technologies Team,
WSO2, Inc.
lean.enterprise.middleware

Mobile - +94773426635
Blog - *http://kishanthan.wordpress.com *
Twitter - *http://twitter.com/kishanthan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] VFS in tenant mode

2016-01-19 Thread Malaka Silva
Hi John,

Please use Inbound File Endpoints instead of proxies. This support multi
tenancy [1]

[1] https://docs.wso2.com/display/ESB490/File+Inbound+Protocol

On Tue, Jan 19, 2016 at 9:05 PM, John Q  wrote:

> Hello,
> I have a proxy service that retrieve a file from an FTP, it works well but
> when I go in multi-tenant mode, it seems like it doesn't listen to the VFS,
> can any body tell me what do I have to configure?
>
> thanks,
> john
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

Best Regards,

Malaka Silva
Senior Tech Lead
M: +94 777 219 791
Tel : 94 11 214 5345
Fax :94 11 2145300
Skype : malaka.sampath.silva
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
Blog : http://mrmalakasilva.blogspot.com/

WSO2, Inc.
lean . enterprise . middleware
http://www.wso2.com/
http://www.wso2.com/about/team/malaka-silva/

https://store.wso2.com/store/

Save a tree -Conserve nature & Save the world for your future. Print this
email only if it is absolutely necessary.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Requesting pull requests to be merged to DAS/DSS/CEP components

2016-01-19 Thread Mohanadarshan Vivekanandalingam
PR-173 is merged few hours before...

Thanks,
Mohan

On Tue, Jan 19, 2016 at 6:15 PM, Ruwan Yatawara  wrote:

> Hi Team.
>
> While trying to include DAS & MB components together in the IOT Server, we
> ran in to several OSGI issues due to version ranges not being set properly
> for com.google.common.* and org.apache.thrift libraries in the
> analytics/analytics-common components.
>
> As a fix for this we had to patch the hadop-client orbit bundle along with
> analytics components. Therefore, i have update the DAS/CEP/DSS component
> repos to reflect the hadoop-client version upgrade.
>
> PRs for the changes can be found below @ [1],[2] & [3].
>
> [1] - https://github.com/wso2/carbon-data/pull/71
> [2] - https://github.com/wso2/carbon-analytics/pull/152
> [3] - https://github.com/wso2/carbon-analytics-common/pull/173
>
>
> Thanks and Regards,
>
> Ruwan Yatawara
>
> Senior Software Engineer,
> WSO2 Inc.
>
> email : ruw...@wso2.com
> mobile : +94 77 9110413
> blog : http://ruwansrants.blogspot.com/
> www: :http://wso2.com
>
>


-- 
*V. Mohanadarshan*
*Senior Software Engineer,*
*Data Technologies Team,*
*WSO2, Inc. http://wso2.com  *
*lean.enterprise.middleware.*

email: mo...@wso2.com
phone:(+94) 771117673
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev