FileDocCategorySizeDatePackage
MessageDrivenBeanStatsImpl.javaAPI DocGlassfish v2 API3602Fri May 04 22:32:56 BST 2007com.sun.ejb.base.stats

MessageDrivenBeanStatsImpl

public class MessageDrivenBeanStatsImpl extends EJBStatsImpl implements javax.management.j2ee.statistics.MessageDrivenBeanStats
A Class for providing stats for MDB Container.
author
Mahesh Kannan

Fields Summary
private com.sun.ejb.spi.stats.MessageDrivenBeanStatsProvider
messageDelegate
private com.sun.enterprise.admin.monitor.stats.MutableCountStatisticImpl
messageCountStat
Constructors Summary
public MessageDrivenBeanStatsImpl(com.sun.ejb.spi.stats.MessageDrivenBeanStatsProvider delegate)

	super(delegate, "javax.management.j2ee.statistics.MessageDrivenBeanStats");
	this.messageDelegate = delegate;

	initStats();
    
Methods Summary
public javax.management.j2ee.statistics.CountStatisticgetMessageCount()

	messageCountStat.setCount(messageDelegate.getMessageCount());
	return (CountStatistic) messageCountStat.modifiableView();
    
private voidinitStats()

	messageCountStat = new MutableCountStatisticImpl(
	    new CountStatisticImpl("MessageCount"));