View Javadoc
1   /*
2    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
3    * The software in this package is published under the terms of the CPAL v1.0
4    * license, a copy of which has been included with this distribution in the
5    * LICENSE.txt file.
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   * <code>RouterStats</code> TODO
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  }