Package com.sun.grid.jgdi.configuration

Examples of com.sun.grid.jgdi.configuration.Job


                for (JobSchedulingMessage mes : schedInfo.getMessageList()) {
                    pw.println(mes.getMessage() + " (" + mes.getMessageNumber() + ")");
                    for (int i = 0; i < mes.getJobNumberCount(); i++) {
                        int jobId = ((ULNG) mes.getJobNumberList().get(i)).getValue();
                        pw.println("job_number: " + jobId);
                        Job job = jgdi.getJob(jobId);
                        pw.println("exec_file:  " + job.getExecFile());
                        pw.println("submission_time: " + job.getSubmissionTime());
                        pw.println("owner: " + job.getOwner());
                        pw.println("uid: " + job.getUid());
                        pw.println("group: " + job.getGroup());
                        pw.println("gid: " + job.getGid());
//                  pw.println("default env: " + job.getDefaultEnv());
//                  pw.println("sge_o_home: " + job.getEnv("SGE_O_HOME"));
//                  pw.println("sge_o_log_name: " + job.getEnv("SGE_O_LOG_NAME"));
//                  pw.println("sge_o_path: " + job.getEnv("SGE_O_PATH"));
                    }
View Full Code Here


    //[-j job_identifier_list ]         show scheduler job information
    @OptionAnnotation(value = "-j", extra=OptionAnnotation.MAX_ARG_VALUE)
    public void setShowSchedulerJobInfo(final OptionInfo oi) throws JGDIException {
        //TODO LP: Improve input values and printing
        String job = oi.getFirstArg();
        Job jb = jgdi.getJob(Integer.parseInt(job));
      /*pw.printf("%29.29s %-s%n", "job_number:", jb.getJobNumber());
      pw.printf("%29.29s %-s%n", "exec_file:", jb.getExecFile());*/
        out.print(((JobImpl)jb).dump());
        throw new AbortException();
    }
View Full Code Here

TOP

Related Classes of com.sun.grid.jgdi.configuration.Job

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.