}
master.remoteRegisterSlave(nodeInfo);
System.out.println("Nodes now: " + nodes);
break;
case MessageIds.FINISHED_PHASE:
FinishedPhaseMessage finishedPhaseMessage = (FinishedPhaseMessage) message;
int nodeId = channelIdToNodeId.get(e.getChannel().getId()); // Can we store it in the context?
master.remoteFinishedPhase(nodeId, finishedPhaseMessage.getPhase());
break;
case MessageIds.TOPRESULTS:
System.out.println("Receive top results...");
IndexedValueArray iv = (IndexedValueArray) message;
master.remoteReceiveTopResults(iv.getIndices(), iv.getValues());