1
2
3
4
5
6
7
8
9
10
11 package org.mule.management.stats.printers;
12
13 import java.io.OutputStream;
14 import java.io.Writer;
15 import java.util.Collection;
16
17
18
19
20 public class SimplePrinter extends AbstractTablePrinter
21 {
22 public SimplePrinter(Writer out)
23 {
24 super(out);
25 }
26
27 public SimplePrinter(OutputStream out)
28 {
29 super(out);
30 }
31
32 public void print(Collection stats)
33 {
34 String[][] table = getTable(stats);
35 for (int i = 1; i < table.length; i++)
36 {
37 println();
38 println("---- Component Statistics ----");
39 for (int j = 0; j < table[0].length; j++)
40 {
41 println(table[0][j] + ": " + table[i][j]);
42 }
43 println("---- End Component Statistics ----");
44 }
45 }
46 }