View Javadoc

1   /*
2    * $Id: RouterStats.java 19191 2010-08-25 21:05:23Z tcarlson $
3    * --------------------------------------------------------------------------------------
4    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.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.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  
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  }