package org.jboss.management.j2ee.statistics;
import javax.management.j2ee.statistics.RangeStatistic;
import javax.management.j2ee.statistics.StatefulSessionBeanStats;
public class StatefulSessionBeanStatsImpl extends EJBStatsImpl
implements StatefulSessionBeanStats
{
private static final long serialVersionUID = -6172970386064136821L;
private RangeStatisticImpl methodReadyCount;
private RangeStatisticImpl passiveCount;
public StatefulSessionBeanStatsImpl()
{
methodReadyCount = new RangeStatisticImpl("MethodReadyCount", "1",
"The count of beans in the method-ready state");
passiveCount = new RangeStatisticImpl("PassiveCount", "1",
"The count of beans in the passivated state");
addStatistic("MethodReadyCount", methodReadyCount);
addStatistic("PassiveCount", passiveCount);
}
public RangeStatistic getMethodReadyCount()
{
return methodReadyCount;
}
public RangeStatistic getPassiveCount()
{
return passiveCount;
}
}