org.apache.servicemix.jbi.monitoring
Class EndpointStats

java.lang.Object
  extended by org.apache.servicemix.jbi.management.BaseLifeCycle
      extended by org.apache.servicemix.jbi.monitoring.EndpointStats
All Implemented Interfaces:
javax.jbi.management.LifeCycleMBean, MBeanInfoProvider, EndpointStatsMBean

public class EndpointStats
extends BaseLifeCycle
implements EndpointStatsMBean


Field Summary
 
Fields inherited from class org.apache.servicemix.jbi.management.BaseLifeCycle
currentState, INITIALIZED, listener
 
Fields inherited from interface javax.jbi.management.LifeCycleMBean
SHUTDOWN, STARTED, STOPPED, UNKNOWN
 
Constructor Summary
EndpointStats(AbstractServiceEndpoint endpoint, MessagingStats componentStats)
           
 
Method Summary
 MBeanAttributeInfo[] getAttributeInfos()
          Get an array of MBeanAttributeInfo
 String getDescription()
          Get the Description of the item
 long getInboundExchangeCount()
          Get the Inbound MessageExchange count
 double getInboundExchangeRate()
          Get the Inbound MessageExchange rate (number/sec)
 String getName()
          Get the name of the item
 MBeanOperationInfo[] getOperationInfos()
          Get an array of MBeanOperationInfo
 long getOutboundExchangeCount()
          Get the Outbound MessageExchange count
 double getOutboundExchangeRate()
          Get the Outbound MessageExchange rate (number/sec)
 String getSubType()
          Get the type of this mbean
 String getType()
          Get the type of the item
 void reset()
          Reset all stats counters
 
Methods inherited from class org.apache.servicemix.jbi.management.BaseLifeCycle
firePropertyChanged, getCurrentState, getObjectToManage, init, isInitialized, isShutDown, isStarted, isStopped, isUnknown, setCurrentState, setPropertyChangeListener, shutDown, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EndpointStats

public EndpointStats(AbstractServiceEndpoint endpoint,
                     MessagingStats componentStats)
Method Detail

getType

public String getType()
Get the type of the item

Specified by:
getType in interface MBeanInfoProvider
Overrides:
getType in class BaseLifeCycle
Returns:
the type

getSubType

public String getSubType()
Description copied from interface: MBeanInfoProvider
Get the type of this mbean

Specified by:
getSubType in interface MBeanInfoProvider
Overrides:
getSubType in class BaseLifeCycle
Returns:
the type

getName

public String getName()
Get the name of the item

Specified by:
getName in interface MBeanInfoProvider
Overrides:
getName in class BaseLifeCycle
Returns:
the name

getDescription

public String getDescription()
Get the Description of the item

Specified by:
getDescription in interface MBeanInfoProvider
Returns:
the description

getInboundExchangeCount

public long getInboundExchangeCount()
Description copied from interface: EndpointStatsMBean
Get the Inbound MessageExchange count

Specified by:
getInboundExchangeCount in interface EndpointStatsMBean
Returns:
inbound count

getInboundExchangeRate

public double getInboundExchangeRate()
Description copied from interface: EndpointStatsMBean
Get the Inbound MessageExchange rate (number/sec)

Specified by:
getInboundExchangeRate in interface EndpointStatsMBean
Returns:
the inbound exchange rate

getOutboundExchangeCount

public long getOutboundExchangeCount()
Description copied from interface: EndpointStatsMBean
Get the Outbound MessageExchange count

Specified by:
getOutboundExchangeCount in interface EndpointStatsMBean
Returns:
outbound count

getOutboundExchangeRate

public double getOutboundExchangeRate()
Description copied from interface: EndpointStatsMBean
Get the Outbound MessageExchange rate (number/sec)

Specified by:
getOutboundExchangeRate in interface EndpointStatsMBean
Returns:
the outbound exchange rate

reset

public void reset()
Reset all stats counters

Specified by:
reset in interface EndpointStatsMBean

getAttributeInfos

public MBeanAttributeInfo[] getAttributeInfos()
                                       throws JMException
Get an array of MBeanAttributeInfo

Specified by:
getAttributeInfos in interface MBeanInfoProvider
Overrides:
getAttributeInfos in class BaseLifeCycle
Returns:
array of AttributeInfos
Throws:
JMException

getOperationInfos

public MBeanOperationInfo[] getOperationInfos()
Get an array of MBeanOperationInfo

Specified by:
getOperationInfos in interface MBeanInfoProvider
Overrides:
getOperationInfos in class BaseLifeCycle
Returns:
array of OperationInfos


Copyright © 2005-2008 Apache Software Foundation. All Rights Reserved.