org.apache.servicemix.jbi.monitoring
Class ComponentStats

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

public class ComponentStats
extends BaseLifeCycle
implements ComponentStatsMBean

Defines basic statistics on the Component


Field Summary
static String STATS_FILE
           
 
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
ComponentStats(ComponentMBeanImpl component)
          Constructor
 
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)
 int getInboundQueueSize()
           
 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
 

Field Detail

STATS_FILE

public static final String STATS_FILE
See Also:
Constant Field Values
Constructor Detail

ComponentStats

public ComponentStats(ComponentMBeanImpl component)
Constructor

Parameters:
lcc -
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()
Get the Inbound MessageExchange count

Specified by:
getInboundExchangeCount in interface ComponentStatsMBean
Returns:
inbound count

getInboundExchangeRate

public double getInboundExchangeRate()
Get the Inbound MessageExchange rate (number/sec)

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

getOutboundExchangeCount

public long getOutboundExchangeCount()
Get the Outbound MessageExchange count

Specified by:
getOutboundExchangeCount in interface ComponentStatsMBean
Returns:
outbound count

getOutboundExchangeRate

public double getOutboundExchangeRate()
Get the Outbound MessageExchange rate (number/sec)

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

getInboundQueueSize

public int getInboundQueueSize()
Specified by:
getInboundQueueSize in interface ComponentStatsMBean
Returns:
size of the inbound Queue

reset

public void reset()
Reset all stats counters

Specified by:
reset in interface ComponentStatsMBean

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.