@ManagedObject @Description(value="Static file caching implementation. There will be one FileCache instance per NetworkListener.") public class FileCache extends JmxObject
| Constructor and Description |
|---|
FileCache(FileCache fileCache)
Constructs a new JMX managed FileCache for the specified
FileCache instance. |
| Modifier and Type | Method and Description |
|---|---|
int |
getCachedEntryCount() |
int |
getCacheErrorCount() |
long |
getCacheHitCount() |
long |
getCacheMissCount() |
long |
getHeapMemoryInBytes() |
String |
getJmxName() |
long |
getMappedMemorytInBytes() |
int |
getMaxCacheEntries() |
long |
getMaxEntrySize() |
long |
getMaxLargeFileCacheSize() |
long |
getMaxSmallFileCacheSize() |
long |
getMinEntrySize() |
int |
getSecondsMaxAge() |
boolean |
isFileCacheEnabled() |
protected void |
onDeregister(GrizzlyJmxManager mom)
|
protected void |
onRegister(GrizzlyJmxManager mom,
org.glassfish.gmbal.GmbalMBean bean)
|
public String getJmxName()
getJmxName in class JmxObjectprotected void onRegister(GrizzlyJmxManager mom, org.glassfish.gmbal.GmbalMBean bean)
When invoked, this method will add a FileCacheProbe to track
statistics.
onRegister in class JmxObjectprotected void onDeregister(GrizzlyJmxManager mom)
When invoked, this method will remove the FileCacheProbe added
by the onRegister(org.glassfish.grizzly.monitoring.jmx.GrizzlyJmxManager, org.glassfish.gmbal.GmbalMBean)
call.
onDeregister in class JmxObject@ManagedAttribute(id="file-cache-enabled") @Description(value="Indicates whether or not the file cache is enabled.") public boolean isFileCacheEnabled()
FileCache.isEnabled()@ManagedAttribute(id="max-age-seconds") @Description(value="The maximum age, in seconds, a resource may be cached.") public int getSecondsMaxAge()
FileCache.getSecondsMaxAge()@ManagedAttribute(id="max-number-of-cache-entries") @Description(value="The maxumim number of entries that may exist in the cache.") public int getMaxCacheEntries()
FileCache.getMaxCacheEntries()@ManagedAttribute(id="min-entry-size") @Description(value="The maximum size, in bytes, a file must be in order to be cached in the heap cache.") public long getMinEntrySize()
FileCache.getMinEntrySize()@ManagedAttribute(id="max-entry-size") @Description(value="The maximum size, in bytes, a resource may be before it can no longer be considered cachable.") public long getMaxEntrySize()
FileCache.getMaxEntrySize()@ManagedAttribute(id="memory-mapped-file-cache-size") @Description(value="The maximum size, in bytes, of the memory mapped cache for large files.") public long getMaxLargeFileCacheSize()
FileCache.getMaxLargeFileCacheSize()@ManagedAttribute(id="heap-file-cache-size") @Description(value="The maximum size, in bytes, of the heap cache for files below the water mark set by min-entry-size.") public long getMaxSmallFileCacheSize()
FileCache.getMaxSmallFileCacheSize()@ManagedAttribute(id="cached-entries-count") @Description(value="The current cached entry count.") public int getCachedEntryCount()
@ManagedAttribute(id="cache-hit-count") @Description(value="The total number of cache hits.") public long getCacheHitCount()
@ManagedAttribute(id="cache-miss-count") @Description(value="The total number of cache misses.") public long getCacheMissCount()
@ManagedAttribute(id="cache-error-count") @Description(value="The total number of cache errors.") public int getCacheErrorCount()
@ManagedAttribute(id="heap-cache-size-in-bytes") @Description(value="The current size, in bytes, of the heap memory cache.") public long getHeapMemoryInBytes()
@ManagedAttribute(id="mapped-memory-cache-size-in-bytes") @Description(value="The current size, in bytes, of the mapped memory cache.") public long getMappedMemorytInBytes()
Copyright © 2013 Oracle Corporation. All Rights Reserved.