public static Integer[] getContainerPidsFromURL(URL url, String privateKey, String jpsCommand) {
		Assert.notNull(url, "url can not be null");
		Assert.hasText(privateKey, "privateKey can not be empty nor null");
		SshjSshClient client = getSSHClient(url, privateKey);
		ExecResponse response = client.exec(jpsCommand);
		return extractPidsFromJPS(response.getOutput());
	}
Retrieves the container pids for a remote machine.  	 
@param url The URL where the containers are deployed.
@param privateKey ssh private key credential
@param jpsCommand The command to retrieve java processes on container machine.
@return An Integer array that contains the pids.
spring-xd-integration-test/src/main/java/org/springframework/xd/integration/util/StreamUtils.java