1 /* 2 * $Id: RouterStats.java 7976 2007-08-21 14:26:13Z 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 * @author Guillaume Nodet 21 * @version $Revision: 7976 $ 22 */ 23 public class RouterStats implements RouterStatsMBean 24 { 25 26 private RouterStatistics statistics; 27 28 public RouterStats(RouterStatistics statistics) 29 { 30 this.statistics = statistics; 31 } 32 33 /* 34 * (non-Javadoc) 35 * 36 * @see org.mule.management.mbeans.RouterStatsMBean#getCaughtMessages() 37 */ 38 public long getCaughtMessages() 39 { 40 return statistics.getCaughtMessages(); 41 } 42 43 /* 44 * (non-Javadoc) 45 * 46 * @see org.mule.management.mbeans.RouterStatsMBean#getNotRouted() 47 */ 48 public long getNotRouted() 49 { 50 return statistics.getNotRouted(); 51 } 52 53 /* 54 * (non-Javadoc) 55 * 56 * @see org.mule.management.mbeans.RouterStatsMBean#getTotalReceived() 57 */ 58 public long getTotalReceived() 59 { 60 return statistics.getTotalReceived(); 61 } 62 63 /* 64 * (non-Javadoc) 65 * 66 * @see org.mule.management.mbeans.RouterStatsMBean#getTotalRouted() 67 */ 68 public long getTotalRouted() 69 { 70 return statistics.getTotalRouted(); 71 } 72 73 /* 74 * (non-Javadoc) 75 * 76 * @see org.mule.management.mbeans.RouterStatsMBean#getRouted() 77 */ 78 public Map getRouted() 79 { 80 return statistics.getRouted(); 81 } 82 83 }