Package org.ggf.drmaa

Examples of org.ggf.drmaa.Session.wait()


        
         System.out.println("Your job has been submitted with id " + id);
        
         session.deleteJobTemplate(jt);
        
         JobInfo info = session.wait(id, Session.TIMEOUT_WAIT_FOREVER);
        
         if (info.wasAborted()) {
            System.out.println("Job " + info.getJobId() + " never ran");
         } else if (info.hasExited()) {
            System.out.println("Job " + info.getJobId() +


         session.deleteJobTemplate(jt);
         session.synchronize(Collections.singletonList(Session.JOB_IDS_SESSION_ALL),
               Session.TIMEOUT_WAIT_FOREVER, false);
        
         for (int count = start; count < end; count += step) {
            JobInfo info = session.wait(Session.JOB_IDS_SESSION_ANY,
                  Session.TIMEOUT_WAIT_FOREVER);
           
            if (info.wasAborted()) {
               System.out.println("Job " + info.getJobId() + " never ran");
            } else if (info.hasExited()) {

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.