...
Function | Description |
send(String peerName, BSPMessage msg) | Send a message to another peer. |
put(BSPMessage msg) | Put a message to local queue. |
getCurrentMessage() | Get a received message. |
getNumCurrentMessages() | Get the number of received messages. |
sync() | Barrier synchronization. |
getPeerName() | Get a peer’s hostnamepeer name. |
getPeerName(int index) | Get a nth peer's name. |
getNumPeers() | Get the number of peers. |
getAllPeerNames() | Get all peer’s hostnamepeer names. |
The send(), put() and the other all functions are very flexible. For example, you can send one more messages on to any other processes in bsp() function:
...