hama-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Edward J. Yoon" <edwardy...@apache.org>
Subject Re: Peer.getAllPeerNames
Date Fri, 07 Mar 2014 00:39:49 GMT
Yes.

On Fri, Mar 7, 2014 at 12:26 AM, Martin Illecker <millecker@apache.org> wrote:
> Hello,
>
> are indices of the *allPeerNames[]* array always equal to
> *getPeerName(index)*?
> Does the following always hold?
>
> String[] allPeerNames = peer.getAllPeerNames();
> assertTrue(allPeerNames[0].equals(peer.getPeerName(0)));
> assertTrue(allPeerNames[1].equals(peer.getPeerName(1)));
> assertTrue(allPeerNames[2].equals(peer.getPeerName(2)));
>
> Thanks!
>
> Martin



-- 
Edward J. Yoon (@eddieyoon)
Chief Executive Officer
DataSayer, Inc.

Mime
View raw message