Fields Summary |
---|
private static final Logger | logger |
private com.sun.enterprise.admin.monitor.stats.GenericStatsImpl | baseStatsImpl |
private ObjectName | fileCacheName |
private MBeanServer | server |
private com.sun.enterprise.admin.monitor.stats.MutableCountStatistic | flagEnabled |
private com.sun.enterprise.admin.monitor.stats.MutableCountStatistic | secondsMaxAge |
private com.sun.enterprise.admin.monitor.stats.MutableCountStatistic | countEntries |
private com.sun.enterprise.admin.monitor.stats.MutableCountStatistic | maxEntries |
private com.sun.enterprise.admin.monitor.stats.MutableCountStatistic | countOpenEntries |
private com.sun.enterprise.admin.monitor.stats.MutableCountStatistic | maxOpenEntries |
private com.sun.enterprise.admin.monitor.stats.MutableCountStatistic | sizeHeapCache |
private com.sun.enterprise.admin.monitor.stats.MutableCountStatistic | maxHeapCacheSize |
private com.sun.enterprise.admin.monitor.stats.MutableCountStatistic | sizeMmapCache |
private com.sun.enterprise.admin.monitor.stats.MutableCountStatistic | maxMmapCacheSize |
private com.sun.enterprise.admin.monitor.stats.MutableCountStatistic | countHits |
private com.sun.enterprise.admin.monitor.stats.MutableCountStatistic | countMisses |
private com.sun.enterprise.admin.monitor.stats.MutableCountStatistic | countInfoHits |
private com.sun.enterprise.admin.monitor.stats.MutableCountStatistic | countInfoMisses |
private com.sun.enterprise.admin.monitor.stats.MutableCountStatistic | countContentHits |
private com.sun.enterprise.admin.monitor.stats.MutableCountStatistic | countContentMisses |
Methods Summary |
---|
private final int | getAggregateInt(java.lang.String attribute)Get Aggregated int statistics.
return StatsUtil.getAggregateStatistic(server,fileCacheName,attribute);
|
private final long | getAggregateLong(java.lang.String attribute)Get Aggregated long statistics.
return StatsUtil.
getAggregateLongStatistic(server,fileCacheName,attribute);
|
public javax.management.j2ee.statistics.CountStatistic | getCountContentHits()Return the Number of hits on cached file content
countContentHits.setCount(getAggregateLong("countContentHits"));
return (CountStatistic)countContentHits.unmodifiableView();
|
public javax.management.j2ee.statistics.CountStatistic | getCountContentMisses()Return the Number of misses on cached file content
countContentMisses.setCount(getAggregateLong("countContentMisses"));
return (CountStatistic)countContentMisses.unmodifiableView();
|
public javax.management.j2ee.statistics.CountStatistic | getCountEntries()Return the number of current cache entries.
countEntries.setCount(getAggregateLong("countEntries"));
return (CountStatistic)countEntries.unmodifiableView();
|
public javax.management.j2ee.statistics.CountStatistic | getCountHits()Return he Number of cache lookup hits
countHits.setCount(getAggregateLong("countHits"));
return (CountStatistic)countHits.unmodifiableView();
|
public javax.management.j2ee.statistics.CountStatistic | getCountInfoHits()Return the Number of hits on cached file info
countInfoHits.setCount(getAggregateLong("countInfoHits"));
return (CountStatistic)countInfoHits.unmodifiableView();
|
public javax.management.j2ee.statistics.CountStatistic | getCountInfoMisses()The Number of misses on cached file info
countInfoMisses.setCount(getAggregateLong("countInfoMisses"));
return (CountStatistic)countInfoMisses.unmodifiableView();
|
public javax.management.j2ee.statistics.CountStatistic | getCountMisses()Return the Number of cache lookup misses
countMisses.setCount(getAggregateLong("countMisses"));
return (CountStatistic)countMisses.unmodifiableView();
|
public javax.management.j2ee.statistics.CountStatistic | getCountOpenEntries()Return the number of current open cache entries
countOpenEntries.setCount(getAggregateLong("countOpenEntries"));
return (CountStatistic)countOpenEntries.unmodifiableView();
|
public javax.management.j2ee.statistics.CountStatistic | getFlagEnabled()Returns flag indicating whether file cache has been enabled
flagEnabled.setCount(
StatsUtil.getMaxStatistic(server, fileCacheName,"flagEnabled"));
return (CountStatistic)flagEnabled.unmodifiableView();
|
public javax.management.j2ee.statistics.CountStatistic | getMaxEntries()Return the maximum number of cache entries
maxEntries.setCount(
StatsUtil.getMaxStatistic(server, fileCacheName,"maxEntries"));
return (CountStatistic)maxEntries.unmodifiableView();
|
public javax.management.j2ee.statistics.CountStatistic | getMaxHeapCacheSize()Return he Maximum heap space used for cache
maxHeapCacheSize.setCount(
StatsUtil.getMaxLongStatistic(server,
fileCacheName,"maxHeapCacheSize"));
return (CountStatistic)maxHeapCacheSize.unmodifiableView();
|
public javax.management.j2ee.statistics.CountStatistic | getMaxMmapCacheSize()Return the Maximum Memory Map size to be used for caching
maxMmapCacheSize.setCount(
StatsUtil.getMaxLongStatistic(server,
fileCacheName,"maxMmapCacheSize"));
return (CountStatistic)maxMmapCacheSize.unmodifiableView();
|
public javax.management.j2ee.statistics.CountStatistic | getMaxOpenEntries()The Maximum number of open cache entries
maxOpenEntries.setCount(
StatsUtil.getMaxStatistic(server, fileCacheName,"maxOpenEntries"));
return (CountStatistic)maxOpenEntries.unmodifiableView();
|
public javax.management.j2ee.statistics.CountStatistic | getSecondsMaxAge()Return the maximum age of a valid cache entry
secondsMaxAge.setCount(
StatsUtil.getMaxStatistic(server, fileCacheName,"secondsMaxAge"));
return (CountStatistic)secondsMaxAge.unmodifiableView();
|
public javax.management.j2ee.statistics.CountStatistic | getSizeHeapCache()The Heap space used for cache
sizeHeapCache.setCount(
StatsUtil.getMaxLongStatistic(server,
fileCacheName,"sizeHeapCache"));
return (CountStatistic)sizeHeapCache.unmodifiableView();
|
public javax.management.j2ee.statistics.CountStatistic | getSizeMmapCache()Return he size of Mapped memory used for caching
sizeMmapCache.setCount(
StatsUtil.getMaxLongStatistic(server,
fileCacheName,"sizeMmapCache"));
return (CountStatistic)sizeMmapCache.unmodifiableView();
|
public javax.management.j2ee.statistics.Statistic | getStatistic(java.lang.String str)
return baseStatsImpl.getStatistic( str );
|
public java.lang.String[] | getStatisticNames()
return baseStatsImpl.getStatisticNames();
|
public javax.management.j2ee.statistics.Statistic[] | getStatistics()This is an implementation of the mandatory JSR77 Stats
interface method.
Here we simply delegate it to the GenericStatsImpl object
that we have
return baseStatsImpl.getStatistics();
|
private void | initializeStatistics()This method initialize statistics.
CountStatistic cs = null;
//enabled?
cs = new CountStatisticImpl("FlagEnabled");
flagEnabled = new MutableCountStatisticImpl( cs );
//seconds Max Age
cs = new CountStatisticImpl("SecondsMaxAge");
secondsMaxAge = new MutableCountStatisticImpl( cs );
//count entries
cs = new CountStatisticImpl("CountEntries");
countEntries = new MutableCountStatisticImpl( cs );
//maxEntries
cs = new CountStatisticImpl("MaxEntries");
maxEntries = new MutableCountStatisticImpl( cs );
//Open Entries
cs = new CountStatisticImpl("CountOpenEntries");
countOpenEntries = new MutableCountStatisticImpl( cs );
//Max Open Entries
cs = new CountStatisticImpl("MaxOpenEntries");
maxOpenEntries = new MutableCountStatisticImpl( cs );
// heap cache size
cs = new CountStatisticImpl("SizeHeapCache");
sizeHeapCache = new MutableCountStatisticImpl( cs );
//max heap cache size
cs = new CountStatisticImpl("MaxHeapCacheSize");
maxHeapCacheSize = new MutableCountStatisticImpl( cs );
//Mmap cache size
cs = new CountStatisticImpl("SizeMmapCache");
sizeMmapCache = new MutableCountStatisticImpl( cs );
//Max Mmap cache size
cs = new CountStatisticImpl("MaxMmapCacheSize");
maxMmapCacheSize = new MutableCountStatisticImpl( cs );
//count hits
cs = new CountStatisticImpl("CountHits");
countHits = new MutableCountStatisticImpl( cs );
//count Misses
cs = new CountStatisticImpl("CountMisses");
countMisses = new MutableCountStatisticImpl( cs );
//count Info Hits
cs = new CountStatisticImpl("CountInfoHits");
countInfoHits = new MutableCountStatisticImpl( cs );
//count Info Misses
cs = new CountStatisticImpl("CountInfoMisses");
countInfoMisses = new MutableCountStatisticImpl( cs );
//content hits
cs = new CountStatisticImpl("CountContentHits");
countContentHits = new MutableCountStatisticImpl( cs );
//content misses
cs = new CountStatisticImpl("CountContentMisses");
countContentMisses = new MutableCountStatisticImpl( cs );
|