[
https://issues.apache.org/jira/browse/HAMA-899?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13968003#comment-13968003
]
Edward J. Yoon commented on HAMA-899:
-------------------------------------
{code}
/**
* @return the index of this peer from sorted array by name.
*/
public int getPeerIndex();
/**
* @return the string array of all the peers executing tasks from the same job
* (including this peer). They ordered ascending by their task id.
*/
public String[] getAllPeerNames();
{code}
Unlike comment, the getPeerIndex() returns the index of this peer from sorted
array by task ID (not Name). And the getAllPeerNames() returns the sorted array
by task ID.
Task ID is unique, but since task ID is defined by sequence of splits, they
lack a consistency. I'll use the sorted array by name.
> Add getAdjacentPeerNames() that returns the names of locally adjacent peers
> ---------------------------------------------------------------------------
>
> Key: HAMA-899
> URL: https://issues.apache.org/jira/browse/HAMA-899
> Project: Hama
> Issue Type: Improvement
> Components: bsp core
> Affects Versions: 0.6.4
> Reporter: Edward J. Yoon
> Fix For: 0.7.0
>
>
> This API can be useful when Peer need to know which task is in same machine.
--
This message was sent by Atlassian JIRA
(v6.2#6252)