public static Collection<InetSocketAddress> resolveAddresses(AddressResolver addrRslvr,Iterable<String> addrs,int port) throws IgniteSpiException {
  assert addrRslvr != null;
  Collection<InetSocketAddress> extAddrs=new HashSet<>();
  for (  String addr : addrs) {
    InetSocketAddress sockAddr=new InetSocketAddress(addr,port);
    if (!sockAddr.isUnresolved()) {
      Collection<InetSocketAddress> extAddrs0=resolveAddress(addrRslvr,sockAddr);
      if (extAddrs0 != null)       extAddrs.addAll(extAddrs0);
    }
  }
  return extAddrs;
}

public static Collection < InetSocketAddress > resolveAddresses ( AddressResolver addrRslvr , Iterable < String > addrs , int port ) throws IgniteSpiException { assert addrRslvr != null ; Collection < InetSocketAddress > extAddrs = new HashSet < > ( ) ; for ( String addr : addrs ) { InetSocketAddress sockAddr = new InetSocketAddress ( addr , port ) ; if ( ! sockAddr . isUnresolved ( ) ) { Collection < InetSocketAddress > extAddrs0 = resolveAddress ( addrRslvr , sockAddr ) ; if ( extAddrs0 != null ) extAddrs . addAll ( extAddrs0 ) ; } } return extAddrs ; }
resolves all not loopback addresses and collect results .
