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

StatefulSessionBeanStatsImpl

public class StatefulSessionBeanStatsImpl extends SessionBeanStatsImpl implements javax.management.j2ee.statistics.StatefulSessionBeanStats
A Class for providing stats for Stateful Container.
author
Mahesh Kannan

Fields Summary
protected com.sun.ejb.spi.stats.StatefulSessionBeanStatsProvider
sfsbDelegate
private com.sun.enterprise.admin.monitor.stats.MutableBoundedRangeStatisticImpl
passivateCountStat
Constructors Summary
public StatefulSessionBeanStatsImpl(com.sun.ejb.spi.stats.StatefulSessionBeanStatsProvider delegate)

	super(delegate, "javax.management.j2ee.statistics.StatefulSessionBeanStats");
	this.sfsbDelegate = delegate;

	initSessionStats();
    
Methods Summary
protected intgetMaxReadyCount()

	return sfsbDelegate.getMaxCacheSize();
    
protected intgetMinReadyCount()

	return 0;
    
public javax.management.j2ee.statistics.RangeStatisticgetPassiveCount()

	passivateCountStat.setCount(sfsbDelegate.getPassiveCount());
	return (RangeStatistic) passivateCountStat.modifiableView();
    
protected voidinitSessionStats()

	super.initSessionStats();
	passivateCountStat = new MutableBoundedRangeStatisticImpl(
	    new BoundedRangeStatisticImpl("PassiveCount"));