ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Valentin Kulichenko <valentin.kuliche...@gmail.com>
Subject Re: Cluster group for cache server nodes
Date Sun, 01 Feb 2015 04:33:32 GMT
Look good. Ticket: https://issues.apache.org/jira/browse/IGNITE-158

On Fri, Jan 30, 2015 at 7:48 PM, Dmitriy Setrakyan <dsetrakyan@apache.org>
wrote:

> How about having the following:
>
> - forDataNodes(cacheName)
> - forClientNodes(cacheName)
> - forCacheNodes(cacheName)
>
> D.
>
> On Fri, Jan 30, 2015 at 8:33 PM, Valentin Kulichenko <
> valentin.kulichenko@gmail.com> wrote:
>
> > ClusterGroup provides forCache method that allows to get a group of nodes
> > with the provided cache. But it includes CLIENT_ONLY nodes which are not
> > needed in most cases (if you want to execute some computations with
> cached
> > data, you need only data nodes).
> >
> > I suggest to add forDataNodes(String cacheName, @Nullable String...
> > cacheNames) method that will exclude client nodes.
> >
> > Alternatively we can add a boolean flag to existing forCache method, like
> > this:
> >
> > forCache(boolean includeClients, String cacheName, @Nullable String...
> > cacheNames)
> >
> > Thoughts?
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message