X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=webservices%2Fcompbio%2Fws%2Fclient%2FJws2Client.java;fp=webservices%2Fcompbio%2Fws%2Fclient%2FJws2Client.java;h=095d8fdb1338070e46aacb615f29d7637b726aa9;hb=61c75714c63045025f891312ff44876688cb57b5;hp=cf0cf23d3cd1ee497eeef6004c40f180a7225e25;hpb=21a9abe54b10fe6b68620c4234e139fa7c8c3def;p=jabaws.git diff --git a/webservices/compbio/ws/client/Jws2Client.java b/webservices/compbio/ws/client/Jws2Client.java index cf0cf23..095d8fd 100644 --- a/webservices/compbio/ws/client/Jws2Client.java +++ b/webservices/compbio/ws/client/Jws2Client.java @@ -374,9 +374,11 @@ public class Jws2Client { jobId = wsproxy.analize(fastalist); } System.out.println("\n\rcalling predictor........."); - Thread.sleep(100); + Thread.sleep(1000); + /* JobStatus status = wsproxy.getJobStatus(jobId); System.out.println("\njob " + jobId + " status: " + status); + */ scores = wsproxy.getAnnotation(jobId); } catch (JobSubmissionException e) { System.err.println("Exception while submitting job to a web server. Exception details are below:"); @@ -466,11 +468,14 @@ public class Jws2Client { } System.out.println("\ncalling program........."); long startTime = System.nanoTime(); + /* while (JobStatus.RUNNING == msaws.getJobStatus(jobId)) { Thread.sleep(1000); long endTime = System.nanoTime(); System.out.println("job " + jobId + " time executing: "+ (endTime - startTime) / 1000000 +" msec, status: " + msaws.getJobStatus(jobId)); } + */ + Thread.sleep(1000); alignment = msaws.getResult(jobId); } catch (IOException e) { System.err.println("Exception while reading the input file. Check that the input file is a FASTA file! "