|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BSPPeerInterface
BSP communication interface.
Field Summary |
---|
Fields inherited from interface org.apache.hama.bsp.BSPRPCProtocolVersion |
---|
versionID |
Method Summary | |
---|---|
void |
clear()
Clears all queues entries. |
String[] |
getAllPeerNames()
|
BSPMessage |
getCurrentMessage()
|
int |
getNumCurrentMessages()
|
String |
getPeerName()
|
long |
getSuperstepCount()
|
void |
put(BSPMessage msg)
Puts a message to local queue. |
void |
send(String peerName,
BSPMessage msg)
Send a data with a tag to another BSPSlave corresponding to hostname. |
void |
sync()
Barrier Synchronization. |
Methods inherited from interface org.apache.hadoop.ipc.VersionedProtocol |
---|
getProtocolVersion |
Methods inherited from interface java.io.Closeable |
---|
close |
Method Detail |
---|
void send(String peerName, BSPMessage msg) throws IOException
peerName
- msg
-
IOException
void put(BSPMessage msg) throws IOException
msg
-
IOException
BSPMessage getCurrentMessage() throws IOException
IOException
int getNumCurrentMessages()
void sync() throws IOException, org.apache.zookeeper.KeeperException, InterruptedException
InterruptedException
org.apache.zookeeper.KeeperException
IOException
long getSuperstepCount()
String getPeerName()
String[] getAllPeerNames()
void clear()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |