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

EntityBeanStatsImpl

public class EntityBeanStatsImpl extends EJBStatsImpl implements javax.management.j2ee.statistics.EntityBeanStats
A Class for providing stats for Entity Container.
author
Mahesh Kannan

Fields Summary
protected com.sun.ejb.spi.stats.EntityBeanStatsProvider
entityDelegate
private com.sun.enterprise.admin.monitor.stats.MutableBoundedRangeStatisticImpl
pooledCountStat
private com.sun.enterprise.admin.monitor.stats.MutableBoundedRangeStatisticImpl
readyCountStat
Constructors Summary
public EntityBeanStatsImpl(com.sun.ejb.spi.stats.EntityBeanStatsProvider delegate)

	super(delegate, "javax.management.j2ee.statistics.EntityBeanStats");
	this.entityDelegate = delegate;

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

	pooledCountStat.setCount(entityDelegate.getPooledCount());
	return (RangeStatistic) pooledCountStat.modifiableView();
    
public javax.management.j2ee.statistics.RangeStatisticgetReadyCount()

	readyCountStat.setCount(entityDelegate.getReadyCount());
	return (RangeStatistic) readyCountStat.modifiableView();
    
private voidinitStats()

	pooledCountStat = new MutableBoundedRangeStatisticImpl(
	    new BoundedRangeStatisticImpl("PooledCount",
		"Count", 0, entityDelegate.getMaxPoolSize(),
		entityDelegate.getSteadyPoolSize()));
	readyCountStat = new MutableBoundedRangeStatisticImpl(
	    new BoundedRangeStatisticImpl("ReadyCount",
		"Count", 0, entityDelegate.getMaxCacheSize(), 0));