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 C105817ADB for ; Tue, 2 Jun 2015 11:35:19 +0000 (UTC) Received: (qmail 8917 invoked by uid 500); 2 Jun 2015 11:35:19 -0000 Delivered-To: apmail-ignite-issues-archive@ignite.apache.org Received: (qmail 8894 invoked by uid 500); 2 Jun 2015 11:35:19 -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 8885 invoked by uid 99); 2 Jun 2015 11:35:19 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Jun 2015 11:35:19 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 4B9E8CAB87 for ; Tue, 2 Jun 2015 11:35:19 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.77 X-Spam-Level: * X-Spam-Status: No, score=1.77 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, T_RP_MATCHES_RCVD=-0.01] autolearn=disabled Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id DbFL8JNK-mSY for ; Tue, 2 Jun 2015 11:35:18 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with SMTP id 8E89447BFE for ; Tue, 2 Jun 2015 11:35:18 +0000 (UTC) Received: (qmail 8703 invoked by uid 99); 2 Jun 2015 11:35:18 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Jun 2015 11:35:18 +0000 Date: Tue, 2 Jun 2015 11:35:17 +0000 (UTC) From: "Atri Sharma (JIRA)" To: issues@ignite.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (IGNITE-917) Add org.apache.ignite.cluster.ClusterGroup.forHost(String host, String... hosts) overload MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/IGNITE-917?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14568978#comment-14568978 ] Atri Sharma commented on IGNITE-917: ------------------------------------ Thanks for inputs. Are you referring to {forAttribute} implementation in {ClusterGroupAdapter} class? Also, I am a bit confused about {ClusterGroupAdapter#nodes} methods. If I understand correctly that returns the set of ClusterNodes, and then we can build a predicate on top of that set which filters based on input hostnames, then pass it to forPredicate. However, do we plan to implement {forHosts} in {ClusterGroupAdapter}, since {ClusterGroup} is only an interface? > Add org.apache.ignite.cluster.ClusterGroup.forHost(String host, String... hosts) overload > ----------------------------------------------------------------------------------------- > > Key: IGNITE-917 > URL: https://issues.apache.org/jira/browse/IGNITE-917 > Project: Ignite > Issue Type: Task > Components: newbie > Reporter: Yakov Zhdanov > Assignee: Atri Sharma > > Method should build a cluster group from all nodes running on the hosts specified. > This should be dynamic group. I think method implementation should build up a predicate to check that passed in node's host names contain one of the host names from parameters. > See IgnitePredicate, ClusterGroup, ClusterNode, ClusterNode#hostNames -- This message was sent by Atlassian JIRA (v6.3.4#6332)