|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.grizzly.monitoring.jmx.JmxObject
org.glassfish.grizzly.http.server.filecache.jmx.FileCache
@ManagedObject @Description(value="Static file caching implementation. There will be one FileCache instance per NetworkListener.") public class FileCache
This class provides a JMX view of the current operating state of the FileCache.
| Constructor Summary | |
|---|---|
FileCache(FileCache fileCache)
Constructs a new JMX managed FileCache for the specified FileCache instance. |
|
| Method Summary | |
|---|---|
int |
getCachedEntryCount()
|
int |
getCacheErrorCount()
|
long |
getCacheHitCount()
|
long |
getCacheMissCount()
|
long |
getHeapMemoryInBytes()
|
java.lang.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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileCache(FileCache fileCache)
FileCache instance.
fileCache - the FileCache
to manage.| Method Detail |
|---|
public java.lang.String getJmxName()
getJmxName in class JmxObject
protected 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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||