Hi All,

I had a offline discussion with Anjana. Currently the NTask will run in one
node at a given time.

But as we develop the inbound we have the requirement to either run on all
nodes, limited nodes or single node.

We are currently discussing this internally, how we can achieve this for
inbound.

One way is we can use NTask if we require coordination. In other cases we
can simply do the polling using a background thread.

Best Regards,
Malaka

On Fri, Nov 28, 2014 at 11:44 AM, Anjana Fernando <[email protected]> wrote:

> Hi Malaka,
>
> Yeah, we can, for each task, we can give a "TaskLocationResolver", where
> it determines the candidate locations for the task to be scheduled in.
> Globally, this can be controlled in the tasks-config.xml, where we have a
> "defaultTaskLocationResolver", this is used, if we don't internally give an
> explicit TaskLocationResolver.
>
> Cheers,
> Anjana.
>
> On Fri, Nov 28, 2014 at 10:12 AM, Malaka Silva <[email protected]> wrote:
>
>> Hi,
>>
>> Is there a way to set the coordination behavior in NTask. (All or one
>> worker)
>>
>> If so can we do this for each task or global setting?
>>
>> 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/
>> <http://wso2.com/about/team/malaka-silva/>
>>
>> Save a tree -Conserve nature & Save the world for your future. Print this
>> email only if it is absolutely necessary.
>>
>
>
>
> --
> *Anjana Fernando*
> Senior Technical Lead
> WSO2 Inc. | http://wso2.com
> lean . enterprise . middleware
>



-- 

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/
<http://wso2.com/about/team/malaka-silva/>

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

Reply via email to