private void dispatch(Message msg) {
		// If no message is received, retry or abort
		if (msg == null) {
			System.out.println("Coordinator died... retry in " + sleepInterval
					/ 1000 + " seconds...");
		}
		String method = msg.getContent();
		switch (method) {
		case "todo":
			// Get the task message from master, do new tasks
			TaskMessage m = (TaskMessage) msg;
			tracker.addMapTask(m.getMapTask());
			tracker.addReduceTask(m.getReduceTask());
			break;
		case "slave":
			// Get the slave message from the master
			// Parse and get slave information
			ShowSlaveMessage mm = (ShowSlaveMessage) msg;
			tracker.setSlaveList(mm.getSlaveList());
			break;
		default:
			break;
		}
	}