Package com.sun.grid.jgdi.util

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


            table.addCol("state", "state", 6, new StatCalc());
            // TODO retrieve values from first task
            table.addCol("cpuUsage", "cpu", 8, fixedValue);
            table.addCol("memUsage", "mem", 7, OutputTable.Column.RIGHT, fixedValue);
            table.addCol("ioUsage", "io", 7, OutputTable.Column.RIGHT, fixedValue);
            table.addCol("stat", "stat", 5, fixedValue);
            table.addCol("failed", "failed", 7, fixedValue);
        }
        return table;
    }
View Full Code Here


            // TODO retrieve values from first task
            table.addCol("cpuUsage", "cpu", 8, fixedValue);
            table.addCol("memUsage", "mem", 7, OutputTable.Column.RIGHT, fixedValue);
            table.addCol("ioUsage", "io", 7, OutputTable.Column.RIGHT, fixedValue);
            table.addCol("stat", "stat", 5, fixedValue);
            table.addCol("failed", "failed", 7, fixedValue);
        }
        return table;
    }

    private static class StatCalc implements Calc {
View Full Code Here

    private static OutputTable createQueueInstanceSummaryTable() throws IntrospectionException {

        OutputTable ret = new OutputTable(QueueInstanceSummary.class);

        ret.addCol("name", "queuename", 30);
        ret.addCol("queueType", "qtype", 5);

        Calc slotCalc = new Calc() {

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

    private static OutputTable createQueueInstanceSummaryTable() throws IntrospectionException {

        OutputTable ret = new OutputTable(QueueInstanceSummary.class);

        ret.addCol("name", "queuename", 30);
        ret.addCol("queueType", "qtype", 5);

        Calc slotCalc = new Calc() {

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

                ret.append(qi.getTotalSlots());
                return ret.toString();
            }
        };

        ret.addCol("totalSlots", "resv/used/tot.", 14, slotCalc);

        Calc loadAvgCalc = new Calc() {

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

                    return "-NA-";
                }
            }
        };

        ret.addCol("load_avg", "load_avg", 8, new DecimalFormat("####0.00"), loadAvgCalc);
        ret.addCol("arch", "arch", 13);
        ret.addCol("state", "states", 6);

        return ret;
    }
View Full Code Here

                }
            }
        };

        ret.addCol("load_avg", "load_avg", 8, new DecimalFormat("####0.00"), loadAvgCalc);
        ret.addCol("arch", "arch", 13);
        ret.addCol("state", "states", 6);

        return ret;
    }
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.