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