@AMXMetadata(type="file-cache-mon", group="monitoring") @ManagedObject @Description(value="File Cache Statistics") public class FileCacheStatsProvider extends Object implements StatsProvider
Modifier and Type | Field and Description |
---|---|
protected org.glassfish.external.statistics.impl.CountStatisticImpl |
contentHitsCount |
protected org.glassfish.external.statistics.impl.CountStatisticImpl |
contentMissesCount |
protected org.glassfish.grizzly.http.server.filecache.FileCache |
fileCache |
protected AtomicLong |
heapSize |
protected org.glassfish.external.statistics.impl.CountStatisticImpl |
hitsCount |
protected org.glassfish.external.statistics.impl.CountStatisticImpl |
infoHitsCount |
protected org.glassfish.external.statistics.impl.CountStatisticImpl |
infoMissesCount |
protected AtomicLong |
mappedMemorySize |
protected AtomicLong |
maxHeapSize |
protected AtomicLong |
maxMappedMemorySize |
protected org.glassfish.external.statistics.impl.CountStatisticImpl |
missesCount |
protected org.glassfish.external.statistics.impl.CountStatisticImpl |
openCacheEntriesCount |
Constructor and Description |
---|
FileCacheStatsProvider(String name) |
Modifier and Type | Method and Description |
---|---|
void |
addHeapSizeEvent(String fileCacheName,
long size) |
void |
addMappedMemorySizeEvent(String fileCacheName,
long size) |
void |
countContentHitEvent(String fileCacheName) |
void |
countContentMissEvent(String fileCacheName) |
void |
countHitEvent(String fileCacheName) |
void |
countInfoHitEvent(String fileCacheName) |
void |
countInfoMissEvent(String fileCacheName) |
void |
countMissEvent(String fileCacheName) |
void |
decOpenCacheEntriesEvent(String fileCacheName) |
org.glassfish.external.statistics.CountStatistic |
getContentHitsCount() |
org.glassfish.external.statistics.CountStatistic |
getContentMissesCount() |
org.glassfish.external.statistics.CountStatistic |
getHeapSize() |
org.glassfish.external.statistics.CountStatistic |
getHitsCount() |
org.glassfish.external.statistics.CountStatistic |
getInfoHitsCount() |
org.glassfish.external.statistics.CountStatistic |
getInfoMissesCount() |
org.glassfish.external.statistics.CountStatistic |
getMappedMemorySize() |
org.glassfish.external.statistics.CountStatistic |
getMaxHeapSize() |
org.glassfish.external.statistics.CountStatistic |
getMaxMappedMemorySize() |
org.glassfish.external.statistics.CountStatistic |
getMissesCount() |
org.glassfish.external.statistics.CountStatistic |
getOpenCacheEntriesCount() |
Object |
getStatsObject()
Get object, from which StatsProvider can get statistics directly
without listening emitting events.
|
void |
incOpenCacheEntriesEvent(String fileCacheName) |
void |
setStatsObject(Object object)
Set object, from which StatsProvider can get statistics directly
without listening emitting events.
|
void |
subHeapSizeEvent(String fileCacheName,
long size) |
void |
subMappedMemorySizeEvent(String fileCacheName,
long size) |
protected final org.glassfish.external.statistics.impl.CountStatisticImpl hitsCount
protected final org.glassfish.external.statistics.impl.CountStatisticImpl missesCount
protected final org.glassfish.external.statistics.impl.CountStatisticImpl infoHitsCount
protected final org.glassfish.external.statistics.impl.CountStatisticImpl infoMissesCount
protected final org.glassfish.external.statistics.impl.CountStatisticImpl contentHitsCount
protected final org.glassfish.external.statistics.impl.CountStatisticImpl contentMissesCount
protected final org.glassfish.external.statistics.impl.CountStatisticImpl openCacheEntriesCount
protected final AtomicLong heapSize
protected final AtomicLong mappedMemorySize
protected final AtomicLong maxHeapSize
protected final AtomicLong maxMappedMemorySize
protected volatile org.glassfish.grizzly.http.server.filecache.FileCache fileCache
public FileCacheStatsProvider(String name)
public Object getStatsObject()
StatsProvider
getStatsObject
in interface StatsProvider
public void setStatsObject(Object object)
StatsProvider
setStatsObject
in interface StatsProvider
object
- statistics@ManagedAttribute(id="hits") @Description(value="Number of cache lookup hits") public org.glassfish.external.statistics.CountStatistic getHitsCount()
@ManagedAttribute(id="misses") @Description(value="Number of cache lookup misses") public org.glassfish.external.statistics.CountStatistic getMissesCount()
@ManagedAttribute(id="infohits") @Description(value="Number of hits on cached file info") public org.glassfish.external.statistics.CountStatistic getInfoHitsCount()
@ManagedAttribute(id="infomisses") @Description(value="Number of misses on cached file info") public org.glassfish.external.statistics.CountStatistic getInfoMissesCount()
@ManagedAttribute(id="contenthits") @Description(value="Number of hits on cached file content") public org.glassfish.external.statistics.CountStatistic getContentHitsCount()
@ManagedAttribute(id="contentmisses") @Description(value="Number of misses on cached file content") public org.glassfish.external.statistics.CountStatistic getContentMissesCount()
@ManagedAttribute(id="opencacheentries") @Description(value="Number of current open cache entries") public org.glassfish.external.statistics.CountStatistic getOpenCacheEntriesCount()
@ManagedAttribute(id="heapsize") @Description(value="Current cache size in bytes") public org.glassfish.external.statistics.CountStatistic getHeapSize()
@ManagedAttribute(id="maxheapsize") @Description(value="Maximum heap space used for cache") public org.glassfish.external.statistics.CountStatistic getMaxHeapSize()
@ManagedAttribute(id="mappedmemorysize") @Description(value="Size of mapped memory used for caching") public org.glassfish.external.statistics.CountStatistic getMappedMemorySize()
@ManagedAttribute(id="maxmappedmemorysize") @Description(value="Maximum memory map size used for caching") public org.glassfish.external.statistics.CountStatistic getMaxMappedMemorySize()
public void countHitEvent(String fileCacheName)
public void countMissEvent(String fileCacheName)
public void countInfoHitEvent(String fileCacheName)
public void countInfoMissEvent(String fileCacheName)
public void countContentHitEvent(String fileCacheName)
public void countContentMissEvent(String fileCacheName)
public void incOpenCacheEntriesEvent(String fileCacheName)
public void decOpenCacheEntriesEvent(String fileCacheName)
public void addHeapSizeEvent(String fileCacheName, long size)
public void subHeapSizeEvent(String fileCacheName, long size)
public void addMappedMemorySizeEvent(String fileCacheName, long size)
public void subMappedMemorySizeEvent(String fileCacheName, long size)
Copyright © 2019. All rights reserved.