Methods Summary |
---|
public com.sun.enterprise.admin.monitor.stats.StringStatistic | getArch()
String arch = bean.getArch();
return new StringStatisticImpl(arch,
localStrMgr.getString("monitor.stats.arch_string"),
localStrMgr.getString("monitor.stats.string_units"),
localStrMgr.getString("monitor.stats.arch_of_os"),
initTime,
System.currentTimeMillis());
|
public javax.management.j2ee.statistics.CountStatistic | getAvailableProcessors()
long procs = bean.getAvailableProcessors();
availProcs.setCount (procs);
return (CountStatistic)availProcs.unmodifiableView ();
|
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_os"),
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 com.sun.enterprise.admin.monitor.stats.StringStatistic | getVersion()
String version = bean.getVersion();
return new StringStatisticImpl(version,
localStrMgr.getString("monitor.stats.vers_string"),
localStrMgr.getString("monitor.stats.string_units"),
localStrMgr.getString("monitor.stats.vers_of_os"),
initTime,
System.currentTimeMillis());
|
private void | initializeStatistics()
// Initialize the MutableCountStatistic for AvailableProcessors
CountStatistic c = new CountStatisticImpl(
localStrMgr.getString("monitor.stats.avail_procs"),
StatisticImpl.DEFAULT_UNIT,
localStrMgr.getString("monitor.stats.avail_procs_desc"));
availProcs = new MutableCountStatisticImpl(c);
|