1 /* 2 * $Id: RouterStats.java 11234 2008-03-06 23:44:34Z tcarlson $ 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.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 /* 31 * (non-Javadoc) 32 * 33 * @see org.mule.management.mbeans.RouterStatsMBean#getCaughtMessages() 34 */ 35 public long getCaughtMessages() 36 { 37 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 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 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 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 return statistics.getRouted(); 78 } 79 80 }