Fields Summary |
---|
private com.sun.enterprise.admin.monitor.stats.GenericStatsImpl | baseStatsImpl |
private static final String | STATS_INTERFACE_NAME |
private com.sun.enterprise.admin.monitor.stats.MutableCountStatistic | initHeapSize |
private com.sun.enterprise.admin.monitor.stats.MutableCountStatistic | usedHeapSize |
private com.sun.enterprise.admin.monitor.stats.MutableCountStatistic | maxHeapSize |
private com.sun.enterprise.admin.monitor.stats.MutableCountStatistic | commitHeapSize |
private com.sun.enterprise.admin.monitor.stats.MutableCountStatistic | initNonHeapSize |
private com.sun.enterprise.admin.monitor.stats.MutableCountStatistic | maxNonHeapSize |
private com.sun.enterprise.admin.monitor.stats.MutableCountStatistic | usedNonHeapSize |
private com.sun.enterprise.admin.monitor.stats.MutableCountStatistic | commitNonHeapSize |
private com.sun.enterprise.admin.monitor.stats.MutableCountStatistic | objPendingCount |
private MemoryUsage | heapUsage |
private MemoryUsage | nonheapUsage |
private MemoryMXBean | bean |
private static final String | BYTE_UNITS |
private static final com.sun.enterprise.util.i18n.StringManager | localStrMgr |
Methods Summary |
---|
public javax.management.j2ee.statistics.CountStatistic | getCommittedHeapSize()
commitHeapSize.setCount(heapUsage.getCommitted());
return (CountStatistic)commitHeapSize.unmodifiableView();
|
public javax.management.j2ee.statistics.CountStatistic | getCommittedNonHeapSize()
commitNonHeapSize.setCount(nonheapUsage.getCommitted());
return (CountStatistic)commitNonHeapSize.unmodifiableView();
|
public javax.management.j2ee.statistics.CountStatistic | getInitHeapSize()
initHeapSize.setCount(heapUsage.getInit());
return (CountStatistic)initHeapSize.unmodifiableView();
|
public javax.management.j2ee.statistics.CountStatistic | getInitNonHeapSize()
initNonHeapSize.setCount(nonheapUsage.getCommitted());
return (CountStatistic)initNonHeapSize.unmodifiableView();
|
public javax.management.j2ee.statistics.CountStatistic | getMaxHeapSize()
maxHeapSize.setCount(heapUsage.getMax());
return (CountStatistic)maxHeapSize.unmodifiableView();
|
public javax.management.j2ee.statistics.CountStatistic | getMaxNonHeapSize()
maxNonHeapSize.setCount(nonheapUsage.getInit());
return (CountStatistic)maxNonHeapSize.unmodifiableView();
|
public javax.management.j2ee.statistics.CountStatistic | getObjectPendingFinalizationCount()
objPendingCount.setCount(bean.getObjectPendingFinalizationCount());
return (CountStatistic)objPendingCount.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 | getUsedHeapSize()
usedHeapSize.setCount(heapUsage.getUsed());
return (CountStatistic)usedHeapSize.unmodifiableView();
|
public javax.management.j2ee.statistics.CountStatistic | getUsedNonHeapSize()
usedNonHeapSize.setCount(nonheapUsage.getUsed());
return (CountStatistic)usedNonHeapSize.unmodifiableView();
|
private void | initializeStatistics()
String bytes_str = localStrMgr.getString(BYTE_UNITS);
// Initialize the MutableCountStatistic for InitialHeapSize
CountStatistic c = new CountStatisticImpl(
localStrMgr.getString("monitor.stats.initial_heap_size"), bytes_str,
localStrMgr.getString("monitor.stats.initial_heap_size_desc"));
initHeapSize = new MutableCountStatisticImpl(c);
// Initialize the MutableCountStatistic for MaxHeapSize
c = new CountStatisticImpl(
localStrMgr.getString("monitor.stats.max_heap_size"), bytes_str,
localStrMgr.getString("monitor.stats.max_heap_size_desc"));
maxHeapSize = new MutableCountStatisticImpl(c);
// Initialize the MutableCountStatistic for UsedHeapSize
c = new CountStatisticImpl(
localStrMgr.getString("monitor.stats.used_heap_size"), bytes_str,
localStrMgr.getString("monitor.stats.used_heap_size_desc"));
usedHeapSize = new MutableCountStatisticImpl(c);
// Initialize the MutableCountStatistic for CommittedHeapSize
c = new CountStatisticImpl(
localStrMgr.getString("monitor.stats.committed_heap_size"), bytes_str,
localStrMgr.getString("monitor.stats.committed_heap_size_desc"));
commitHeapSize = new MutableCountStatisticImpl(c);
// Initialize the MutableCountStatistic for InitialNonHeapSize
c = new CountStatisticImpl(
localStrMgr.getString("monitor.stats.initial_non_heap_size"), bytes_str,
localStrMgr.getString("monitor.stats.initial_non_heap_size_desc"));
initNonHeapSize = new MutableCountStatisticImpl(c);
// Initialize the MutableCountStatistic for MaxNonHeapSize
c = new CountStatisticImpl(
localStrMgr.getString("monitor.stats.max_non_heap_size"),bytes_str,
localStrMgr.getString("monitor.stats.max_non_heap_size_desc"));
maxNonHeapSize = new MutableCountStatisticImpl(c);
// Initialize the MutableCountStatistic for UsedNonHeapSize
c = new CountStatisticImpl(
localStrMgr.getString("monitor.stats.used_non_heap_size") ,bytes_str,
localStrMgr.getString("monitor.stats.used_non_heap_size_desc"));
usedNonHeapSize = new MutableCountStatisticImpl(c);
// Initialize the MutableCountStatistic for CommittedNonHeapSize
c = new CountStatisticImpl(
localStrMgr.getString("monitor.stats.committed_non_heap_size"),
bytes_str,
localStrMgr.getString("monitor.stats.committed_non_heap_size_desc"));
commitNonHeapSize = new MutableCountStatisticImpl(c);
// Initialize the MutableCountStatistic for ObjectsPendingFinalization
c = new CountStatisticImpl(
localStrMgr.getString("monitor.stats.objs_pending_serialization"),
StatisticImpl.DEFAULT_UNIT,
localStrMgr.getString("monitor.stats.objs_pending_serialization_desc"));
objPendingCount = new MutableCountStatisticImpl(c);
|