|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BSPPeerProtocol
Protocol that task child process uses to contact its parent process.
Field Summary |
---|
Fields inherited from interface org.apache.hama.bsp.BSPRPCProtocolVersion |
---|
versionID |
Method Summary | |
---|---|
void |
done(TaskAttemptID taskid,
boolean shouldBePromoted)
Report that the task is successfully completed. |
void |
fsError(TaskAttemptID taskId,
java.lang.String message)
Report that the task encounted a local filesystem error. |
Task |
getTask(TaskAttemptID taskid)
Called when a child task process starts, to get its task. |
boolean |
ping(TaskAttemptID taskid)
Periodically called by child to check if parent is still alive. |
Methods inherited from interface org.apache.hama.bsp.BSPPeerInterface |
---|
clear, getAllPeerNames, getCurrentMessage, getNumCurrentMessages, getPeerName, getSuperstepCount, put, put, send, sync |
Methods inherited from interface org.apache.hadoop.ipc.VersionedProtocol |
---|
getProtocolVersion |
Methods inherited from interface java.io.Closeable |
---|
close |
Method Detail |
---|
Task getTask(TaskAttemptID taskid) throws java.io.IOException
java.io.IOException
boolean ping(TaskAttemptID taskid) throws java.io.IOException
java.io.IOException
void done(TaskAttemptID taskid, boolean shouldBePromoted) throws java.io.IOException
taskid
- task's idshouldBePromoted
- whether to promote the task's output or not
java.io.IOException
void fsError(TaskAttemptID taskId, java.lang.String message) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |