package org.jboss.management.j2ee.statistics;
import javax.management.j2ee.statistics.CountStatistic;
import javax.management.j2ee.statistics.EJBStats;
public abstract class EJBStatsImpl extends StatsBase
implements EJBStats
{
private static final long serialVersionUID = 4277191366915058098L;
public EJBStatsImpl()
{
this(new CountStatisticImpl("CreateCount", "1", "Number of creates"),
new CountStatisticImpl("RemoveCount", "1", "Number of removes"));
}
public EJBStatsImpl(CountStatistic createCount, CountStatistic removeCount)
{
addStatistic("CreateCount", createCount);
addStatistic("RemoveCount", removeCount);
}
public CountStatistic getCreateCount()
{
return (CountStatistic) getStatistic("CreateCount");
}
public CountStatistic getRemoveCount()
{
return (CountStatistic) getStatistic("RemoveCount");
}
}