1
2
3
4
5
6
7
8
9
10
11 package org.mule.module.management.mbean;
12
13 import org.mule.management.stats.RouterStatistics;
14
15 import java.util.Map;
16
17
18
19
20 public class RouterStats implements RouterStatsMBean
21 {
22
23 private RouterStatistics statistics;
24
25 public RouterStats(RouterStatistics statistics)
26 {
27 this.statistics = statistics;
28 }
29
30 public long getCaughtMessages()
31 {
32 return statistics.getCaughtMessages();
33 }
34
35 public long getNotRouted()
36 {
37 return statistics.getNotRouted();
38 }
39
40 public long getTotalReceived()
41 {
42 return statistics.getTotalReceived();
43 }
44
45 public long getTotalRouted()
46 {
47 return statistics.getTotalRouted();
48 }
49
50 public Map getRouted()
51 {
52 return statistics.getRouted();
53 }
54
55 }