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 <[email protected]>: > 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* >
