Examples of QHostResult


Examples of com.sun.grid.jgdi.monitoring.QHostResult

        return ret;
    }

    public QHostResult execQHost(QHostOptions options) throws JGDIException {
        log.entering("JGDIJMXBase", "execQHost", options);
        QHostResult ret = getJGDI().execQHost(options);
        log.exiting("JGDIJMXBase", "execQHost", ret);
        return ret;
    }
View Full Code Here

Examples of com.sun.grid.jgdi.monitoring.QHostResult

            argList.add(arg);
        }
        try {
            QHostOptions options = parse(argList);
            if (options != null) {
                QHostResult res = jgdi.execQHost(options);
                if (options.showAsXML()) {
                    /*TODO LP: -xml is not implemented for object other that GEObjects
                    we could use a JAXB and some generator to get the schema for other objects*/
                    out.println("XML OUTPUT NOT IMPLEMENTED");
                } else {
View Full Code Here

Examples of com.sun.grid.jgdi.monitoring.QHostResult

           
            ResourceAttributeFilter resourceAttributeFilter = new ResourceAttributeFilter();
           
            qhostOptions.setResourceAttributeFilter(resourceAttributeFilter);
           
            QHostResult res = jgdi.execQHost(qhostOptions);
           
            printResult(res);
        } finally {
            jgdi.close();
        }
View Full Code Here

Examples of com.sun.grid.jgdi.monitoring.QHostResult

            qhostOptions.setIncludeQueue(true);
            for (ExecHost eh : ehList) {
                HostFilter hf = new HostFilter();
                hf.addHost(eh.getName());
                qhostOptions.setHostFilter(hf);
                QHostResult res = jgdi.execQHost(qhostOptions);
                printResult(res);
                HostInfo hi = res.getHostInfo(eh.getName());
                assertNotNull(hi);
                for (ClusterQueue cq : cqList) {
                    for (QueueInstance cqi : cq.getQinstancesList()) {
                        if (cqi.getQhostname().equals(eh.getName())) {
                            boolean foundq = false;
View Full Code Here

Examples of com.sun.grid.jgdi.monitoring.QHostResult

                for (String loadValueName : eh.getLoadKeys()) {
                    String loadValue = eh.getLoad(loadValueName);
                    ResourceAttributeFilter resourceAttributeFilter = new ResourceAttributeFilter();
                    resourceAttributeFilter.addValueName(loadValueName);
                    qhostOptions.setResourceAttributeFilter(resourceAttributeFilter);
                    QHostResult res = jgdi.execQHost(qhostOptions);
                    printResult(res);
                    HostInfo hi = res.getHostInfo(eh.getName());
                    assertNotNull(hi);
                    assertNotNull("Resource Value " + loadValueName + " not found", hi.getResourceValue("hl", loadValueName));
                }
            }
        } finally {
View Full Code Here

Examples of com.sun.grid.jgdi.monitoring.QHostResult

            List<ExecHost> ehList = jgdi.getRealExecHostList();
            for (ExecHost eh : ehList) {
                HostFilter hostFilter = new HostFilter();
                hostFilter.addHost(eh.getName());
                qhostOptions.setHostFilter(hostFilter);
                QHostResult res = jgdi.execQHost(qhostOptions);
                printResult(res);
                Set<String> hostNames = res.getHostNames();
                assertTrue("host " + eh.getName() + " not found", hostNames.contains(eh.getName()));
                assertTrue("host global not found", hostNames.contains("global"));
            }
        } finally {
            jgdi.close();
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.