[
https://issues.apache.org/jira/browse/IGNITE-917?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14567136#comment-14567136
]
Andrey Gura commented on IGNITE-917:
------------------------------------
[~atris], look at {{ClusterGroup}} interface and implementation of
{{forAttribute}} method. Instead of attributes you can use {{hostNames}}
property of {{ClusterNode}} class.
The real magic happens in {{ClusterGroupAdapter#nodes()}} method. Please make
sure that {{ClusterGroup.forHost(String host, String... host).nodes()}} method
call returns valid node list in case of changes in topology.
> 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)