sparqlGraphLibrary/src/main/java/com/ge/research/semtk/api/nodeGroupExecution/client/NodeGroupExecutionClient.java
private void waitForCompletion(String jobId, int freqMsec, int maxTries ) throws Exception {
		int percent = 0;
		
		for (int i=0; i < maxTries; i++) {
			percent = this.waitForPercentOrMsec(jobId, freqMsec, 100);
			if (percent == 100) {
				return;
			}
		}
		throw new Exception("Job " + jobId + " is only " + String.valueOf(percent) + "% complete after " + String.valueOf(maxTries) + " tries.");
	}
/**
	 * Preferred way to wait for a job to complete
	 * @param jobId
	 * @param freqMsec - a ping freq such as 10,000.  Will return sooner if job finishes
	 * @param maxTries - throw exception after this many tries
	 * @throws Exception
	 */
Preferred way to wait for a job to complete
@param jobId
@param freqMsec - a ping freq such as 10,000.  Will return sooner if job finishes
@param maxTries - throw exception after this many tries
@throws Exception
Preferred way to wait for a job to complete @param jobId @param freqMsec - a ping freq such as 10 000 . Will return sooner if job finishes @param maxTries - throw exception after this many tries @throws Exception
private void waitForCompletion(String jobId, int freqMsec, int maxTries ) throws Exception {
		int percent = 0;
		for (int i=0; i < maxTries; i++) {
			percent = this.waitForPercentOrMsec(jobId, freqMsec, 100);
			if (percent == 100) {
				return;
			}
		}
		throw new Exception("Job " + jobId + " is only " + String.valueOf(percent) + "% complete after " + String.valueOf(maxTries) + " tries.");
	}
private void waitForCompletion ( String jobId , int freqMsec , int maxTries ) throws Exception { int percent = 0 ; for ( int i = 0 ; i < maxTries ; i ++ ) { percent = this . waitForPercentOrMsec ( jobId , freqMsec , 100 ) ; if ( percent == 100 ) { return ; } } throw new Exception ( "Job " + jobId + " is only " + String . valueOf ( percent ) + "% complete after " + String . valueOf ( maxTries ) + " tries." ) ; }
Preferred way to wait for a job to complete
 @param jobId
 @param freqMsec - a ping freq such as 10,000.
Preferred way to wait for a job to complete @param jobId @param freqMsec - a ping freq such as 10 000 .