Methods Summary |
---|
public com.sun.enterprise.admin.monitor.stats.StringStatistic | getName()
String name = bean.getName();
return new StringStatisticImpl(name,
localStrMgr.getString("monitor.stats.name_string"),
localStrMgr.getString("monitor.stats.string_units"),
localStrMgr.getString("monitor.stats.name_of_jit_compiler"),
initTime,
System.currentTimeMillis());
|
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 | getTotalCompilationTime()
long cTime = bean.getTotalCompilationTime();
compileTime.setCount (cTime);
return (CountStatistic)compileTime.unmodifiableView ();
|
private void | initializeStatistics()
// Initialize the MutableCountStatistic for TotalCompilationTime
CountStatistic c = new CountStatisticImpl(
localStrMgr.getString("monitor.stats.total_compilation_time"),
localStrMgr.getString("monitor.stats.milli_sec_units"),
localStrMgr.getString("monitor.stats.total_compilation_time_desc"));
compileTime = new MutableCountStatisticImpl(c);
|