Examples of enableQueues()


Examples of com.sun.grid.jgdi.JGDI.enableQueues()

                        break;
                    }
                }
                assertTrue("queue instance " + qis.getName() + " has not been found in disabled queue list", found);
            }
            jgdi.enableQueues(new String[]{"*"}, true);
            result = jgdi.getQueueInstanceSummary(options);
            newQiList = result.getQueueInstanceSummary();
            if (logger.isLoggable(Level.FINE)) {
                PrintWriter pw = new PrintWriter(System.out);
                QueueInstanceSummaryPrinter.print(pw, result, options);
View Full Code Here

Examples of com.sun.grid.jgdi.JGDI.enableQueues()

                Set hardRequestNames = jobFound.getHardRequestNames();
                assertFalse("Job has not hard requested value", hardRequestNames.isEmpty());
                assertTrue(hardRequestNames.contains("arch"));
                assertEquals(jobFound.getHardRequestValue("arch").getValue(), "*");
            } finally {
                jgdi.enableQueues(new String[]{"*"}, false);
            }
        } finally {
            jgdi.close();
        }
    }
View Full Code Here

Examples of com.sun.grid.jgdi.JGDI.enableQueues()

            }
            for (i = 0; i < queues.length; i++) {
                logger.fine("Enable Queue: " + queues[i]);
            }
            try {
                jgdi.enableQueues(queues, false);
                for (ClusterQueueSummary cs : jgdi.getClusterQueueSummary(null)) {
                    for (int j = 0; j < queues.length; j++) {
                        if (cs.getName().equals(queues[j])) {
                            System.out.println("disabled queue count for queue " + cs.getName() + " is " + cs.getDisabledManual());
                        }
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.