|
||||||||||
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,
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, 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 IOException
IOException
boolean ping(TaskAttemptID taskid) throws IOException
IOException
void done(TaskAttemptID taskid, boolean shouldBePromoted) throws IOException
taskid
- task's idshouldBePromoted
- whether to promote the task's output or not
IOException
void fsError(TaskAttemptID taskId, String message) throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |