5657585960616263646566
assertTrue(entry.getValue().size() == 1); BSPMessageBundle bundle = new BSPMessageBundle(); for (BSPMessage msg : entry.getValue()) { bundle.addMessage(msg); } messageManager.transfer(peer, bundle); messageManager.clearOutgoingQueues();
7980818283848586878889
Iterator<BSPMessage> it = messages.iterator(); while (it.hasNext()) { sum += ((IntegerMessage) it.next()).getData(); } bundle.addMessage(new IntegerMessage("Sum = ", sum)); return bundle; } } static void printOutput(HamaConfiguration conf) throws IOException {