Examples of addCol()


Examples of com.sun.grid.jgdi.util.OutputTable.addCol()

        ret.addCol("arch", "ARCH", 13);
        ret.addCol("NumberOfProcessors", "NCPU", 4, OutputTable.Column.RIGHT);
        ret.addCol("loadAvg", "LOAD", 5, OutputTable.Column.RIGHT);
        ret.addCol("memTotal", "MEMTOT", 7, OutputTable.Column.RIGHT);
        ret.addCol("memUsed", "MEMUSE", 7, OutputTable.Column.RIGHT);
        ret.addCol("swapTotal", "SWAPTO", 7, OutputTable.Column.RIGHT);
        ret.addCol("swapUsed", "SWAPUS", 7, OutputTable.Column.RIGHT);

        return ret;
    }
View Full Code Here

Examples of com.sun.grid.jgdi.util.OutputTable.addCol()

        ret.addCol("NumberOfProcessors", "NCPU", 4, OutputTable.Column.RIGHT);
        ret.addCol("loadAvg", "LOAD", 5, OutputTable.Column.RIGHT);
        ret.addCol("memTotal", "MEMTOT", 7, OutputTable.Column.RIGHT);
        ret.addCol("memUsed", "MEMUSE", 7, OutputTable.Column.RIGHT);
        ret.addCol("swapTotal", "SWAPTO", 7, OutputTable.Column.RIGHT);
        ret.addCol("swapUsed", "SWAPUS", 7, OutputTable.Column.RIGHT);

        return ret;
    }

    private static OutputTable createHostQueueTable() throws IntrospectionException {
View Full Code Here

Examples of com.sun.grid.jgdi.util.OutputTable.addCol()

        return ret;
    }

    private static OutputTable createHostQueueTable() throws IntrospectionException {
        OutputTable ret = new OutputTable(QueueInfo.class);
        ret.addCol("qname", "qname", 20);
        ret.addCol("qType", "qtype", 5);

        Calc slotCalc = new Calc() {

            public Object getValue(Object obj) {
View Full Code Here

Examples of com.sun.grid.jgdi.util.OutputTable.addCol()

    }

    private static OutputTable createHostQueueTable() throws IntrospectionException {
        OutputTable ret = new OutputTable(QueueInfo.class);
        ret.addCol("qname", "qname", 20);
        ret.addCol("qType", "qtype", 5);

        Calc slotCalc = new Calc() {

            public Object getValue(Object obj) {
                StringBuilder ret = new StringBuilder();
View Full Code Here

Examples of com.sun.grid.jgdi.util.OutputTable.addCol()

                ret.append('/');
                ret.append(qi.getTotalSlots());
                return ret.toString();
            }
        };
        ret.addCol("usedSlots", "used/tot.", 9, slotCalc);
        ret.addCol("state", "state", 5);

        return ret;
    }
View Full Code Here

Examples of com.sun.grid.jgdi.util.OutputTable.addCol()

                ret.append(qi.getTotalSlots());
                return ret.toString();
            }
        };
        ret.addCol("usedSlots", "used/tot.", 9, slotCalc);
        ret.addCol("state", "state", 5);

        return ret;
    }

    private static OutputTable createHostJobTable(QHostOptions options) throws IntrospectionException {
View Full Code Here

Examples of com.sun.grid.jgdi.util.OutputTable.addCol()

    private static OutputTable createHostJobTable(QHostOptions options) throws IntrospectionException {

        OutputTable ret = new OutputTable(JobInfo.class);

        ret.addCol("id", "job-ID ", 7, OutputTable.Column.RIGHT);
        ret.addCol("priority", "prior", 7, OutputTable.POINT_FIVE_FORMAT);
        ret.addCol("name", "name", 10);
        ret.addCol("user", "user", 12);
        ret.addCol("state", "state", 5);
        Calc timeCalc = new Calc() {
View Full Code Here

Examples of com.sun.grid.jgdi.util.OutputTable.addCol()

    private static OutputTable createHostJobTable(QHostOptions options) throws IntrospectionException {

        OutputTable ret = new OutputTable(JobInfo.class);

        ret.addCol("id", "job-ID ", 7, OutputTable.Column.RIGHT);
        ret.addCol("priority", "prior", 7, OutputTable.POINT_FIVE_FORMAT);
        ret.addCol("name", "name", 10);
        ret.addCol("user", "user", 12);
        ret.addCol("state", "state", 5);
        Calc timeCalc = new Calc() {
View Full Code Here

Examples of com.sun.grid.jgdi.util.OutputTable.addCol()

        OutputTable ret = new OutputTable(JobInfo.class);

        ret.addCol("id", "job-ID ", 7, OutputTable.Column.RIGHT);
        ret.addCol("priority", "prior", 7, OutputTable.POINT_FIVE_FORMAT);
        ret.addCol("name", "name", 10);
        ret.addCol("user", "user", 12);
        ret.addCol("state", "state", 5);
        Calc timeCalc = new Calc() {

            public Object getValue(Object obj) {
View Full Code Here

Examples of com.sun.grid.jgdi.util.OutputTable.addCol()

        OutputTable ret = new OutputTable(JobInfo.class);

        ret.addCol("id", "job-ID ", 7, OutputTable.Column.RIGHT);
        ret.addCol("priority", "prior", 7, OutputTable.POINT_FIVE_FORMAT);
        ret.addCol("name", "name", 10);
        ret.addCol("user", "user", 12);
        ret.addCol("state", "state", 5);
        Calc timeCalc = new Calc() {

            public Object getValue(Object obj) {
                JobInfo ji = (JobInfo) obj;
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.