Return-Path: X-Original-To: apmail-ignite-issues-archive@minotaur.apache.org Delivered-To: apmail-ignite-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6E7271822B for ; Tue, 23 Jun 2015 11:41:39 +0000 (UTC) Received: (qmail 31109 invoked by uid 500); 23 Jun 2015 11:41:39 -0000 Delivered-To: apmail-ignite-issues-archive@ignite.apache.org Received: (qmail 31084 invoked by uid 500); 23 Jun 2015 11:41:39 -0000 Mailing-List: contact issues-help@ignite.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.incubator.apache.org Delivered-To: mailing list issues@ignite.incubator.apache.org Received: (qmail 31075 invoked by uid 99); 23 Jun 2015 11:41:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Jun 2015 11:41:39 +0000 X-ASF-Spam-Status: No, hits=-2001.4 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 23 Jun 2015 11:39:28 +0000 Received: (qmail 23103 invoked by uid 99); 23 Jun 2015 11:40:01 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Jun 2015 11:40:01 +0000 Date: Tue, 23 Jun 2015 11:40:01 +0000 (UTC) From: "Atri Sharma (JIRA)" To: issues@ignite.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Issue Comment Deleted] (IGNITE-1006) Add hostnames() method to ClusterGroup to get all hostnames in current ClusterGroup MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/IGNITE-1006?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Atri Sharma updated IGNITE-1006: -------------------------------- Comment: was deleted (was: I am not sure if I understood your comments correctly. For your concern about not reusing ClusterGroupAdapter#nodes, I mentioned that I cannot see a clear mechanism of reusing existing nodes() (without major refactoring of ClusterGroupAdapter#nodes which I try to avoid since ClusterGroupAdapter#nodes is a heavily used method). If there is a method I missed, please let me know. For the tests, test I added gets all the hostnames for test cluster using new method, gets localnode's hostnames and tests if all of localnode's hostnames are present in hostnames result returned by hostNames() method. I did not understand your concern around it (is it that test cluster might have single node)? Please elaborate a bit.) > Add hostnames() method to ClusterGroup to get all hostnames in current ClusterGroup > ----------------------------------------------------------------------------------- > > Key: IGNITE-1006 > URL: https://issues.apache.org/jira/browse/IGNITE-1006 > Project: Ignite > Issue Type: Task > Reporter: Atri Sharma > Assignee: Atri Sharma > Attachments: ignite-sprint-5_ignite-1006ver3.patch > > > We should have method like nodes() in ClusterGroup to allow getting all hostnames currently in this ClusterGroup. Method should ensure handling for duplicates as well. -- This message was sent by Atlassian JIRA (v6.3.4#6332)