Methods Summary |
---|
public javax.management.j2ee.statistics.CountStatistic | getLoadedClassCount()
long classCount = bean.getLoadedClassCount();
loadedClassCount.setCount (classCount);
return (CountStatistic)loadedClassCount.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();
|
public javax.management.j2ee.statistics.CountStatistic | getTotalLoadedClassCount()
long classCount = bean.getTotalLoadedClassCount();
totalLoadedClassCount.setCount (classCount);
return (CountStatistic)totalLoadedClassCount.unmodifiableView ();
|
public javax.management.j2ee.statistics.CountStatistic | getUnloadedClassCount()
long classCount = bean.getUnloadedClassCount();
unloadedClassCount.setCount (classCount);
return (CountStatistic)unloadedClassCount.unmodifiableView ();
|
private void | initializeStatistics()
// Initialize the MutableCountStatistic for TotalLoadedClassCount
CountStatistic c = new CountStatisticImpl(
localStrMgr.getString("monitor.stats.total_classes_load"),
StatisticImpl.DEFAULT_UNIT,
localStrMgr.getString("monitor.stats.total_classes_load_desc"));
totalLoadedClassCount = new MutableCountStatisticImpl(c);
// Initialize the MutableCountStatistic for LoadedClassCount
c = new CountStatisticImpl(
localStrMgr.getString("monitor.stats.classes_loaded"),
StatisticImpl.DEFAULT_UNIT,
localStrMgr.getString("monitor.stats.classes_loaded_desc"));
loadedClassCount = new MutableCountStatisticImpl(c);
// Initialize the MutableCountStatistic for UnLoadedClassCount
c = new CountStatisticImpl(
localStrMgr.getString("monitor.stats.classes_unloaded"),
StatisticImpl.DEFAULT_UNIT,
localStrMgr.getString("monitor.stats.classes_unloaded_desc"));
unloadedClassCount = new MutableCountStatisticImpl(c);
|