private void startMaster() {
		// Open a port to listen to slave connections
		Listener t = new Listener(port, this);
		t.start();
		Heartbeat heart = new Heartbeat(this);
		Thread heartbeat = new Thread(heart);
		heartbeat.start();
		System.out.println("Start Process Manager (Master) : port " + port);
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		while (true) {
			try {
				System.out.print(">> ");
				String in = br.readLine();
				String[] args = in.split(" ");
				if (args.length <= 0) {
					continue;
				}
				switch (args[0]) {
				case "jobs":
					printJob();
					break;
				case "slave":
					printSlaves();
					break;
				case "launch":
					launch(args);
					break;
				case "suspend":
					suspend(Integer.parseInt(args[1]));
					break;
				case "migrate":
					migrate(args);
					break;
				case "ping":
					pingSlave();
					break;
				case "exit":
				case "quit":
					System.out.println("Master Process Manager terminated...");
					System.exit(0);
					break;
				default:
					System.out.println("Usage: \n"
							+ "Launch process: launch -n\n"
							+ "Suspend process: suspend \n"
							+ "Migrate process: migrate \n"
							+ "Print process: jobs \n" + "Exit: exit/quit \n");
					break;
				}

			} catch (IOException e) {
				System.out.println("IOException");
				System.exit(-1);
			}

		}
	}