Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
RouterStats |
|
| 1.0;1 |
1 | /* | |
2 | * $Id: RouterStats.java 7963 2007-08-21 08:53:15Z dirk.olmes $ | |
3 | * -------------------------------------------------------------------------------------- | |
4 | * Copyright (c) MuleSource, Inc. All rights reserved. http://www.mulesource.com | |
5 | * | |
6 | * The software in this package is published under the terms of the CPAL v1.0 | |
7 | * license, a copy of which has been included with this distribution in the | |
8 | * LICENSE.txt file. | |
9 | */ | |
10 | ||
11 | package org.mule.management.mbeans; | |
12 | ||
13 | import org.mule.management.stats.RouterStatistics; | |
14 | ||
15 | import java.util.Map; | |
16 | ||
17 | /** | |
18 | * <code>RouterStats</code> TODO | |
19 | */ | |
20 | public class RouterStats implements RouterStatsMBean | |
21 | { | |
22 | ||
23 | private RouterStatistics statistics; | |
24 | ||
25 | public RouterStats(RouterStatistics statistics) | |
26 | 8 | { |
27 | 8 | this.statistics = statistics; |
28 | 8 | } |
29 | ||
30 | /* | |
31 | * (non-Javadoc) | |
32 | * | |
33 | * @see org.mule.management.mbeans.RouterStatsMBean#getCaughtMessages() | |
34 | */ | |
35 | public long getCaughtMessages() | |
36 | { | |
37 | 0 | return statistics.getCaughtMessages(); |
38 | } | |
39 | ||
40 | /* | |
41 | * (non-Javadoc) | |
42 | * | |
43 | * @see org.mule.management.mbeans.RouterStatsMBean#getNotRouted() | |
44 | */ | |
45 | public long getNotRouted() | |
46 | { | |
47 | 0 | return statistics.getNotRouted(); |
48 | } | |
49 | ||
50 | /* | |
51 | * (non-Javadoc) | |
52 | * | |
53 | * @see org.mule.management.mbeans.RouterStatsMBean#getTotalReceived() | |
54 | */ | |
55 | public long getTotalReceived() | |
56 | { | |
57 | 0 | return statistics.getTotalReceived(); |
58 | } | |
59 | ||
60 | /* | |
61 | * (non-Javadoc) | |
62 | * | |
63 | * @see org.mule.management.mbeans.RouterStatsMBean#getTotalRouted() | |
64 | */ | |
65 | public long getTotalRouted() | |
66 | { | |
67 | 0 | return statistics.getTotalRouted(); |
68 | } | |
69 | ||
70 | /* | |
71 | * (non-Javadoc) | |
72 | * | |
73 | * @see org.mule.management.mbeans.RouterStatsMBean#getRouted() | |
74 | */ | |
75 | public Map getRouted() | |
76 | { | |
77 | 0 | return statistics.getRouted(); |
78 | } | |
79 | ||
80 | } |