01: /*
02: * $Id: RouterStats.java 11234 2008-03-06 23:44:34Z tcarlson $
03: * --------------------------------------------------------------------------------------
04: * Copyright (c) MuleSource, Inc. All rights reserved. http://www.mulesource.com
05: *
06: * The software in this package is published under the terms of the CPAL v1.0
07: * license, a copy of which has been included with this distribution in the
08: * LICENSE.txt file.
09: */
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: * <code>RouterStats</code> TODO
19: */
20: public class RouterStats implements RouterStatsMBean {
21:
22: private RouterStatistics statistics;
23:
24: public RouterStats(RouterStatistics statistics) {
25: this .statistics = statistics;
26: }
27:
28: /*
29: * (non-Javadoc)
30: *
31: * @see org.mule.management.mbeans.RouterStatsMBean#getCaughtMessages()
32: */
33: public long getCaughtMessages() {
34: return statistics.getCaughtMessages();
35: }
36:
37: /*
38: * (non-Javadoc)
39: *
40: * @see org.mule.management.mbeans.RouterStatsMBean#getNotRouted()
41: */
42: public long getNotRouted() {
43: return statistics.getNotRouted();
44: }
45:
46: /*
47: * (non-Javadoc)
48: *
49: * @see org.mule.management.mbeans.RouterStatsMBean#getTotalReceived()
50: */
51: public long getTotalReceived() {
52: return statistics.getTotalReceived();
53: }
54:
55: /*
56: * (non-Javadoc)
57: *
58: * @see org.mule.management.mbeans.RouterStatsMBean#getTotalRouted()
59: */
60: public long getTotalRouted() {
61: return statistics.getTotalRouted();
62: }
63:
64: /*
65: * (non-Javadoc)
66: *
67: * @see org.mule.management.mbeans.RouterStatsMBean#getRouted()
68: */
69: public Map getRouted() {
70: return statistics.getRouted();
71: }
72:
73: }
|