Package com.sun.faban.common

Examples of com.sun.faban.common.TextTable.format()


                    bfw_metrics.write(inputTime.format(timeInputBuffer).toString());
                    bfw_metrics.write(outputBuffer.toString());
                    bfw_metrics.write(outputTime.format(timeOutputBuffer).toString());

                   
                    bfw_metrics.write(inputPeak.format(peakInputBuffer).toString());
                   
                    bfw_metrics.write(outputPeak.format(peakOutputBuffer).toString());

                    bfw_metrics.write(jobTable.format(pageBuffer).toString());
View Full Code Here


                    bfw_metrics.write(heading.toString());
                    bfw_metrics.write(launched.toString());
                    bfw_metrics.write(mapLaunched.format(sbl).toString());
                    bfw_metrics.write(finished.toString());
                    bfw_metrics.write(mapFinished.format(sbf).toString());
                    bfw_metrics.write(jobTrackerTable.format(sb).toString());
                    bfw_metrics.close();
                    bfw_metrics = null;
                    logger.info("File written " + RunContext.getOutDir() + "hadoop_metrics_jobTrackerRecords." +host);
View Full Code Here

                    bfw_metrics.write(busysb.toString());
                    bfw_metrics.write(busy.format(sbb).toString());
                
                    bfw_metrics.write(successdb.toString());
                    bfw_metrics.write(success.format(sbs).toString());

                    bfw_metrics.write(shuffleInputTable.format(sb).toString());
                   
                    bfw_metrics.close();
                    bfw_metrics = null;
View Full Code Here

                    bfw_metrics.write(output_sb.toString());
                    bfw_metrics.write(output.format(sbo).toString());

                    bfw_metrics.write(success_sb.toString());
                    bfw_metrics.write(success.format(sbs).toString());


                    bfw_metrics.write(shufflePutputTable.format(sb).toString());
                    bfw_metrics.close();
                    bfw_metrics = null;
View Full Code Here

                if (passed)
                    table.setField(i, 6, "PASSED");
                else
                    table.setField(i, 6, "FAILED");
            }
            table.format(System.out);
        }

        int users = Integer.parseInt(getValue(doc, "users"));
        double rt = Double.parseDouble(getValue(doc, "rtXtps"));
        if (users * .975 > rt)
View Full Code Here

            for (int j = 0; j < txTypes; j++) {
                table.setField(i, j + 1,
                        String.format(dataFormat, rawGraph[j][i]/divider));
            }
        }
        table.format(b);
        b.append('\n');
    }

    @SuppressWarnings("boxing")
    private void printGraph(StringBuilder b, String label, double unit,
View Full Code Here

                    data = rawGraph[j][i] / (divider2 * divider[j][i]);
        }
                table.setField(i, j + 1, String.format(dataFormat, data));
            }
        }
        table.format(b);
        b.append('\n');
    }

    @SuppressWarnings("boxing")
    private void printHistogram(StringBuilder b, String label, double unit,
View Full Code Here

            // The data
            for (int j = 0; j < txTypes; j++) {
        table.setField(i, j + 1, String.valueOf(histogram[j][i]));
      }
        }
        table.format(b);
        b.append('\n');
    }

    static StringBuilder space(int space, StringBuilder buffer) {
        for (int i = 0; i < space; i++) {
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.