ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexey Kuznetsov <akuznet...@gridgain.com>
Subject Re: ClusterGroup is missing isEmpty() method.
Date Thu, 16 Apr 2015 04:13:05 GMT
It seems that we have method node() that do the trick.
But it is implemented not optimal (will create collection of nodes and take
first one) as F.first(nodes());

On Thu, Apr 16, 2015 at 11:01 AM, Alexey Kuznetsov <akuznetsov@gridgain.com>
wrote:

> Hi!
>
> Recently I have to write a lot of code involving *ClusterGroup*
> manipulations.
> And found my self that I missed *isEmpty()* method on *ClusterGroup*
> class.
> Instead I forced to write *prj.nodes().isEmpty().*
>
> Also I think that *isEmpty()*  method could be implemented in more
> efficient (no need to iterate over all nodes) and optimized manner, without
> creating underlying collection for nodes.
>
>
> Thoughts?
>
> --
> Alexey Kuznetsov
> GridGain Systems
> www.gridgain.com
>



-- 
Alexey Kuznetsov
GridGain Systems
www.gridgain.com

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