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
21
22
23 public class SimplePrinter extends AbstractTablePrinter
24 {
25 public SimplePrinter(Writer out)
26 {
27 super(out);
28 }
29
30 public SimplePrinter(OutputStream out)
31 {
32 super(out);
33 }
34
35 public void print(Collection stats)
36 {
37 String[][] table = getTable(stats);
38 for (int i = 1; i < table.length; i++)
39 {
40 println();
41 println("---- Component Statistics ----");
42 for (int j = 0; j < table[0].length; j++)
43 {
44 println(table[0][j] + ": " + table[i][j]);
45 }
46 println("---- End Component Statistics ----");
47 }
48 }
49 }