Package org.ggf.drmaa

Examples of org.ggf.drmaa.JobTemplate


      SessionFactory factory = SessionFactory.getFactory();
      Session session = factory.getSession();
     
      try {
         session.init("");
         JobTemplate jt = session.createJobTemplate();
         jt.setRemoteCommand("sleeper.sh");
         jt.setArgs(Collections.singletonList("5"));
        
         String id = session.runJob(jt);
        
         System.out.println("Your job has been submitted with id " + id);
        
View Full Code Here


      SessionFactory factory = SessionFactory.getFactory();
      Session session = factory.getSession();
     
      try {
         session.init("");
         JobTemplate jt = session.createJobTemplate();
         jt.setRemoteCommand("sleeper.sh");
         jt.setArgs(Collections.singletonList("5"));
        
         String id = session.runJob(jt);
        
         System.out.println("Your job has been submitted with id " + id);
        
View Full Code Here

      SessionFactory factory = SessionFactory.getFactory();
      Session session = factory.getSession();
     
      try {
         session.init("");
         JobTemplate jt = session.createJobTemplate();
         jt.setRemoteCommand("sleeper.sh");
         jt.setArgs(Collections.singletonList("5"));
        
         java.util.List ids = session.runBulkJobs(jt, 1, 30, 2);
         java.util.Iterator i = ids.iterator();
        
         while (i.hasNext()) {
View Full Code Here

      SessionFactory factory = SessionFactory.getFactory();
      Session session = factory.getSession();
     
      try {
         session.init("");
         JobTemplate jt = session.createJobTemplate();
         jt.setRemoteCommand("sleeper.sh");
         jt.setArgs(Collections.singletonList("5"));
        
         String id = session.runJob(jt);
        
         System.out.println("Your job has been submitted with id " + id);
        
View Full Code Here

      SessionFactory factory = SessionFactory.getFactory();
      Session session = factory.getSession();
     
      try {
         session.init("");
         JobTemplate jt = session.createJobTemplate();
         jt.setRemoteCommand("sleeper.sh");
         jt.setArgs(Collections.singletonList("5"));
        
         List ids = session.runBulkJobs(jt, 1, 30, 2);
         Iterator i = ids.iterator();
        
         while (i.hasNext()) {
View Full Code Here

        SessionFactory factory = SessionFactory.getFactory();
       
        session = factory.getSession();
        session.init(null);
       
        JobTemplate jt = createJobTemplate(jobPath, 5, true);
       
        List allJobIds = new LinkedList();
        List jobIds = null;
        boolean retry = true;
       
View Full Code Here

            }
        }
    }
   
    private static JobTemplate createJobTemplate(String jobPath, int seconds, boolean isBulkJob) throws DrmaaException {
        JobTemplate jt = session.createJobTemplate();
       
        jt.setWorkingDirectory("$drmaa_hd_ph$");
        jt.setRemoteCommand(jobPath);
        jt.setArgs(Collections.singletonList(Integer.toString(seconds)));
        jt.setJoinFiles(true);
       
        if (!isBulkJob) {
            jt.setOutputPath(":$drmaa_hd_ph$/DRMAA_JOB");
        } else {
            jt.setOutputPath(":$drmaa_hd_ph$/DRMAA_JOB$drmaa_incr_ph$");
        }
       
        return jt;
    }
View Full Code Here

      SessionFactory factory = SessionFactory.getFactory();
      Session session = factory.getSession();
     
      try {
         session.init("");
         JobTemplate jt = session.createJobTemplate();
         jt.setRemoteCommand("sleeper.sh");
         jt.setArgs(Collections.singletonList("5"));
        
         String id = session.runJob(jt);
        
         System.out.println("Your job has been submitted with id " + id);
        
View Full Code Here

      SessionFactory factory = SessionFactory.getFactory();
      Session session = factory.getSession();
     
      try {
         session.init("");
         JobTemplate jt = session.createJobTemplate();
         jt.setRemoteCommand("sleeper.sh");
         jt.setArgs(Collections.singletonList("5"));
        
         int start = 1;
         int end  = 30;
         int step = 2;
        
View Full Code Here

TOP

Related Classes of org.ggf.drmaa.JobTemplate

Copyright © 2018 www.massapicom. 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.