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

SessionBeanStatsImpl

public abstract class SessionBeanStatsImpl extends EJBStatsImpl implements javax.management.j2ee.statistics.SessionBeanStats
A Class for providing stats for both Stateless and Stateful Containers.
author
Mahesh Kannan

Fields Summary
protected com.sun.ejb.spi.stats.SessionBeanStatsProvider
sessionDelegate
private com.sun.enterprise.admin.monitor.stats.MutableBoundedRangeStatisticImpl
methodReadyCountStat
Constructors Summary
public SessionBeanStatsImpl(com.sun.ejb.spi.stats.SessionBeanStatsProvider delegate, String intfName)

	super(delegate, intfName);
	this.sessionDelegate = delegate;
    
Methods Summary
protected abstract intgetMaxReadyCount()

public javax.management.j2ee.statistics.RangeStatisticgetMethodReadyCount()

	methodReadyCountStat.setCount(sessionDelegate.getMethodReadyCount());
	return (RangeStatistic) methodReadyCountStat.modifiableView();
    
protected abstract intgetMinReadyCount()

protected voidinitSessionStats()

	methodReadyCountStat = new MutableBoundedRangeStatisticImpl(
	    new BoundedRangeStatisticImpl("MethodReadyCount",
		"Count", 0, getMaxReadyCount(), getMinReadyCount()));