org.apache.servicemix.jbi.monitoring
Class MessagingStats

java.lang.Object
  extended by org.apache.servicemix.jbi.monitoring.stats.StatisticImpl
      extended by org.apache.servicemix.jbi.monitoring.stats.StatsImpl
          extended by org.apache.servicemix.jbi.monitoring.MessagingStats
All Implemented Interfaces:
Statistic, Stats, Resettable

public class MessagingStats
extends StatsImpl

Basic J2EE stats for the messaging in the NMR

Version:
$Revision: 2153 $

Field Summary
protected  TimeStatisticImpl inboundExchangeRate
           
protected  CountStatisticImpl inboundExchanges
           
protected  TimeStatisticImpl outboundExchangeRate
           
protected  CountStatisticImpl outboundExchanges
           
 
Constructor Summary
MessagingStats(String name)
          Default Constructor
MessagingStats(String name, MessagingStats parent)
          Default Constructor
 
Method Summary
 void dump(IndentPrinter out)
          Dump out to an IndentPrinter
 TimeStatisticImpl getInboundExchangeRate()
           
 CountStatisticImpl getInboundExchanges()
           
 String getName()
           
 TimeStatisticImpl getOutboundExchangeRate()
           
 CountStatisticImpl getOutboundExchanges()
           
 void reset()
          reset the Stats
 String toString()
           
 
Methods inherited from class org.apache.servicemix.jbi.monitoring.stats.StatsImpl
addStatistic, getStatistic, getStatisticNames, getStatistics
 
Methods inherited from class org.apache.servicemix.jbi.monitoring.stats.StatisticImpl
appendFieldDescription, getDescription, getLastSampleTime, getStartTime, getUnit, updateSampleTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

inboundExchanges

protected CountStatisticImpl inboundExchanges

outboundExchanges

protected CountStatisticImpl outboundExchanges

inboundExchangeRate

protected TimeStatisticImpl inboundExchangeRate

outboundExchangeRate

protected TimeStatisticImpl outboundExchangeRate
Constructor Detail

MessagingStats

public MessagingStats(String name)
Default Constructor

Parameters:
name -

MessagingStats

public MessagingStats(String name,
                      MessagingStats parent)
Default Constructor

Parameters:
name -
Method Detail

getName

public String getName()
Specified by:
getName in interface Statistic
Overrides:
getName in class StatisticImpl
Returns:
Returns the name.

getInboundExchangeRate

public TimeStatisticImpl getInboundExchangeRate()
Returns:
Returns the inboundExchangeRate.

getInboundExchanges

public CountStatisticImpl getInboundExchanges()
Returns:
Returns the inboundExchanges.

getOutboundExchangeRate

public TimeStatisticImpl getOutboundExchangeRate()
Returns:
Returns the outboundExchangeRate.

getOutboundExchanges

public CountStatisticImpl getOutboundExchanges()
Returns:
Returns the outboundExchanges.

reset

public void reset()
reset the Stats

Specified by:
reset in interface Resettable
Overrides:
reset in class StatsImpl

toString

public String toString()
Overrides:
toString in class StatisticImpl
Returns:
pretty print

dump

public void dump(IndentPrinter out)
Dump out to an IndentPrinter

Parameters:
out -


Copyright © 2005-2010 The Apache Software Foundation. All Rights Reserved.