org.jboss.ejb3.metrics.deployer
Class BasicMessageDrivenMetrics

java.lang.Object
  extended by org.jboss.ejb3.metrics.deployer.ManagedMetricsWrapperBase
      extended by org.jboss.ejb3.metrics.deployer.BasicMessageDrivenMetrics
All Implemented Interfaces:
org.jboss.ejb3.ContainerDelegateWrapperMBean, org.jboss.ejb3.mdb.MessagingDelegateWrapperMBean

public class BasicMessageDrivenMetrics
extends ManagedMetricsWrapperBase
implements org.jboss.ejb3.mdb.MessagingDelegateWrapperMBean

BasicMessageDrivenMetrics Implementation of a MDB metrics collector. Additionally exposed as a management object.


Constructor Summary
BasicMessageDrivenMetrics(org.jboss.ejb3.mdb.MessagingContainer mdb)
          Constructor
 
Method Summary
 org.jboss.ejb3.statistics.InvocationStatistics getInvokeStats()
           
 int getKeepAliveMillis()
           
 int getMaxMessages()
           
 int getMaxPoolSize()
           
 int getMinPoolSize()
           
 java.lang.String getName()
           
 javax.ejb.TimerService getTimerService(java.lang.Object key)
           
 boolean isDeliveryActive()
           
 void resetInvocationStats()
           
 void startDelivery()
           
 void stopDelivery()
           
 
Methods inherited from class org.jboss.ejb3.metrics.deployer.ManagedMetricsWrapperBase
getInvocationStats, getInvocationStatsLastResetTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicMessageDrivenMetrics

public BasicMessageDrivenMetrics(org.jboss.ejb3.mdb.MessagingContainer mdb)
                          throws java.lang.IllegalArgumentException
Constructor

Parameters:
slsb - The underlying container
Throws:
java.lang.IllegalArgumentException - If the underlying container is not supplied
Method Detail

getName

public java.lang.String getName()

getKeepAliveMillis

public int getKeepAliveMillis()
Specified by:
getKeepAliveMillis in interface org.jboss.ejb3.mdb.MessagingDelegateWrapperMBean

getMaxMessages

public int getMaxMessages()
Specified by:
getMaxMessages in interface org.jboss.ejb3.mdb.MessagingDelegateWrapperMBean

getMaxPoolSize

public int getMaxPoolSize()
Specified by:
getMaxPoolSize in interface org.jboss.ejb3.mdb.MessagingDelegateWrapperMBean

getMinPoolSize

public int getMinPoolSize()
Specified by:
getMinPoolSize in interface org.jboss.ejb3.mdb.MessagingDelegateWrapperMBean

isDeliveryActive

public boolean isDeliveryActive()
Specified by:
isDeliveryActive in interface org.jboss.ejb3.mdb.MessagingDelegateWrapperMBean

startDelivery

public void startDelivery()
Specified by:
startDelivery in interface org.jboss.ejb3.mdb.MessagingDelegateWrapperMBean

stopDelivery

public void stopDelivery()
Specified by:
stopDelivery in interface org.jboss.ejb3.mdb.MessagingDelegateWrapperMBean

getInvokeStats

public org.jboss.ejb3.statistics.InvocationStatistics getInvokeStats()
Specified by:
getInvokeStats in interface org.jboss.ejb3.ContainerDelegateWrapperMBean

resetInvocationStats

public void resetInvocationStats()
Overrides:
resetInvocationStats in class ManagedMetricsWrapperBase
See Also:
InvocationStatistics.resetStats()

getTimerService

public javax.ejb.TimerService getTimerService(java.lang.Object key)
Specified by:
getTimerService in interface org.jboss.ejb3.ContainerDelegateWrapperMBean