You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ignite.apache.org by Atri Sharma <at...@gmail.com> on 2015/06/06 20:36:59 UTC
Method to get all hostnames for a ClusterGroup
Folks,
I have been trying to get list of all hostnames for a given ClusterGroup. I
think current solution is to get nodes() and then iterate over it and
append node hostNames() to a string array.
Is there method for directly getting the list?
--
Regards,
Atri
*l'apprenant*
Re: Method to get all hostnames for a ClusterGroup
Posted by Atri Sharma <at...@gmail.com>.
Hi,
Patch is posted.
https://issues.apache.org/jira/browse/IGNITE-1006
Please see and let me know your feedback and comments.
On Tue, Jun 9, 2015 at 6:07 PM, Atri Sharma <at...@gmail.com> wrote:
> Will put a patch
> On 9 Jun 2015 16:53, "Yakov Zhdanov" <yz...@apache.org> wrote:
>
>> I think your solution is fine, but you should add host names to a set (to
>> avoid duplicates).
>>
>> --Yakov
>>
>> 2015-06-06 21:36 GMT+03:00 Atri Sharma <at...@gmail.com>:
>>
>> > Folks,
>> >
>> > I have been trying to get list of all hostnames for a given
>> ClusterGroup. I
>> > think current solution is to get nodes() and then iterate over it and
>> > append node hostNames() to a string array.
>> >
>> > Is there method for directly getting the list?
>> >
>> > --
>> > Regards,
>> >
>> > Atri
>> > *l'apprenant*
>> >
>>
>
--
Regards,
Atri
*l'apprenant*
Re: Method to get all hostnames for a ClusterGroup
Posted by Atri Sharma <at...@gmail.com>.
Will put a patch
On 9 Jun 2015 16:53, "Yakov Zhdanov" <yz...@apache.org> wrote:
> I think your solution is fine, but you should add host names to a set (to
> avoid duplicates).
>
> --Yakov
>
> 2015-06-06 21:36 GMT+03:00 Atri Sharma <at...@gmail.com>:
>
> > Folks,
> >
> > I have been trying to get list of all hostnames for a given
> ClusterGroup. I
> > think current solution is to get nodes() and then iterate over it and
> > append node hostNames() to a string array.
> >
> > Is there method for directly getting the list?
> >
> > --
> > Regards,
> >
> > Atri
> > *l'apprenant*
> >
>
Re: Method to get all hostnames for a ClusterGroup
Posted by Yakov Zhdanov <yz...@apache.org>.
I think your solution is fine, but you should add host names to a set (to
avoid duplicates).
--Yakov
2015-06-06 21:36 GMT+03:00 Atri Sharma <at...@gmail.com>:
> Folks,
>
> I have been trying to get list of all hostnames for a given ClusterGroup. I
> think current solution is to get nodes() and then iterate over it and
> append node hostNames() to a string array.
>
> Is there method for directly getting the list?
>
> --
> Regards,
>
> Atri
> *l'apprenant*
>