Package com.sun.grid.jgdi.configuration

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


       
        JGDI jgdi = createJGDI();
        try {
            PrintWriter pw = new PrintWriter(System.out);
            pw.println("Global Message List");
            JobSchedulingInfo schedInfo = jgdi.getJobSchedulingInfo();
            for (JobSchedulingMessage mes : schedInfo.getGlobalMessageList()) {
                pw.println(mes.getMessage() + " (" + mes.getMessageNumber() + ")");
                for (int i = 0; i < mes.getJobNumberCount(); i++) {
                    pw.println("Job " + mes.getJobNumberList().get(i).toString());
                }
            }
            if (schedInfo.isSetMessage()) {
                pw.println("Message List");
                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);
View Full Code Here

TOP

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

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.