Package org.ggf.drmaa

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


         session.control(id, Session.TERMINATE);
        
         System.out.println("Your job has been deleted");
        
         session.deleteJobTemplate(jt);
         session.exit();
      } catch (DrmaaException e) {
         System.out.println("Error: " + e.getMessage());
      }
   }
}
View Full Code Here


               System.out.println("Job finished, but failed\n");
               break;
         } /* switch */
        
         session.deleteJobTemplate(jt);
         session.exit();
      } catch (DrmaaException e) {
         System.out.println("Error: " + e.getMessage());
      }
   }
}
View Full Code Here

         while (i.hasNext()) {
            System.out.println("Your job has been submitted with id " + i.next());
         }
        
         session.deleteJobTemplate(jt);
         session.exit();
      } catch (DrmaaException e) {
         System.out.println("Error: " + e.getMessage());
      }
   }
}
View Full Code Here

      SessionFactory factory = SessionFactory.getFactory();
      Session session = factory.getSession();
     
      try {
         session.init("");
         session.exit();
      } catch (DrmaaException e) {
         System.out.println("Error: " + e.getMessage());
      }
   }
}
View Full Code Here

            String value = (String)rmap.get(name);
           
            System.out.println("  " + name + "=" + value);
         }
        
         session.exit();
      } catch (DrmaaException e) {
         System.out.println("Error: " + e.getMessage());
      }
   }
}
View Full Code Here

        
         Version version = session.getVersion();
        
         System.out.println("Using DRMAA version " + version.toString());
        
         session.exit();
      } catch (DrmaaException e) {
         System.out.println("Error: " + e.getMessage());
      }
   }
}
View Full Code Here

         session.synchronize(Collections.singletonList(Session.JOB_IDS_SESSION_ALL),
               Session.TIMEOUT_WAIT_FOREVER, true);
        
         System.out.println("All jobs have finished.");
        
         session.exit();
      } catch (DrmaaException e) {
         System.out.println("Error: " + e.getMessage());
      }
   }
}
View Full Code Here

         String id = session.runJob(jt);
        
         System.out.println("Your job has been submitted with id " + id);
        
         session.deleteJobTemplate(jt);
         session.exit();
      } catch (DrmaaException e) {
         System.out.println("Error: " + e.getMessage());
      }
   }
}
View Full Code Here

              
               System.out.println("  " + name + "=" + value);
            }
         }
        
         session.exit();
      } catch (DrmaaException e) {
         System.out.println("Error: " + e.getMessage());
      }
   }
}
View Full Code Here

      Session session = factory.getSession();

      try {
         session.init("");
         String contact = session.getContact();
         session.exit();
        
         session.init(contact);
         session.exit();
      } catch (DrmaaException e) {
         System.out.println("Error: " + e.getMessage());
View Full Code Here

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.