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

EJBStatsImpl

public abstract class EJBStatsImpl extends StatsImpl implements javax.management.j2ee.statistics.EJBStats
A Class for providing stats for EJB Container All S1AS(EJB)Containers act as the provider
author
Mahesh Kannan

Fields Summary
protected com.sun.ejb.spi.stats.EJBStatsProvider
delegate
private com.sun.enterprise.admin.monitor.stats.MutableCountStatisticImpl
createStat
private com.sun.enterprise.admin.monitor.stats.MutableCountStatisticImpl
removeStat
Constructors Summary
public EJBStatsImpl(com.sun.ejb.spi.stats.EJBStatsProvider delegate, String intfName)

	this.delegate = delegate;
	super.initialize(intfName);

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

	createStat.setCount(delegate.getCreateCount());
	return (CountStatistic) createStat.modifiableView();
    
public javax.management.j2ee.statistics.CountStatisticgetRemoveCount()

	removeStat.setCount(delegate.getRemoveCount());
	return (CountStatistic) removeStat.modifiableView();
    
private voidinitStats()

	createStat = new MutableCountStatisticImpl(
		new CountStatisticImpl("CreateCount"));
	removeStat = new MutableCountStatisticImpl(
	    new CountStatisticImpl("RemoveCount"));