Methods Summary |
---|
public javax.management.j2ee.statistics.CountStatistic | getCollectionCount()
long collCount = bean.getCollectionCount();
collectionCount.setCount (collCount);
return (CountStatistic)collectionCount.unmodifiableView ();
|
public javax.management.j2ee.statistics.CountStatistic | getCollectionTime()
long collTime = bean.getCollectionTime();
collectionTime.setCount (collTime);
return (CountStatistic)collectionTime.unmodifiableView ();
|
public javax.management.j2ee.statistics.Statistic | getStatistic(java.lang.String str)queries for a Statistic by name.
return baseStatsImpl.getStatistic(str);
|
public java.lang.String[] | getStatisticNames()returns an array of names of all the Statistics, that can be
retrieved from this implementation of Stats
return baseStatsImpl.getStatisticNames();
|
public javax.management.j2ee.statistics.Statistic[] | getStatistics()This method can be used to retrieve all the Statistics, exposed
by this implementation of Stats
return baseStatsImpl.getStatistics();
|
private void | initializeStatistics()
// Initialize the MutableCountStatistic for CollectionCount
CountStatistic c = new CountStatisticImpl(
localStrMgr.getString("monitor.stats.collection_cnt"),
StatisticImpl.DEFAULT_UNIT,
localStrMgr.getString("monitor.stats.collection_cnt_desc"));
collectionCount = new MutableCountStatisticImpl(c);
// Initialize the MutableCountStatistic for CollectionTime
c = new CountStatisticImpl(
localStrMgr.getString("monitor.stats.collection_time"),
localStrMgr.getString("monitor.stats.milli_sec_units"),
localStrMgr.getString("monitor.stats.collection_time_desc"));
collectionTime = new MutableCountStatisticImpl(c);
|