| Modifier and Type | Class and Description |
|---|---|
| private class | FileCache.
JMX statistic gathering |
| Modifier and Type | Field and Description |
|---|---|
| private final AtomicInteger | cachedEntryCount
The current |
| private final AtomicInteger | cacheErrorCount
The number of cache errors. |
| private final AtomicLong | cacheHitCount
The number of cache hits. |
| private final AtomicLong | cacheMissCount
The number of cache misses. |
| private final FileCache | fileCache
The |
| private final FileCache. | fileCacheProbe
The |
| Access | Constructor and Description |
|---|---|
| public | FileCache(FileCache
the fileCache)org.
to manage.Constructs a new JMX managed FileCache for the specified
|
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public int | |
| public long | |
| public long | |
| public long | |
| public String | |
| public long | |
| public int | |
| public long | |
| public long | |
| public long | |
| public long | |
| public int | |
| public boolean | |
| protected void | onDeregister(GrizzlyJmxManager mom)
Implements abstract org. Method will be called right after this JmxObject is unregistered by the JMX manager. |
| protected void | onRegister(GrizzlyJmxManager mom, GmbalMBean bean)
Implements abstract org. Method will be called right after this JmxObject is registered by the JMX manager. |
| cachedEntryCount | back to summary |
|---|---|
| private final AtomicInteger cachedEntryCount The current | |
| cacheErrorCount | back to summary |
|---|---|
| private final AtomicInteger cacheErrorCount The number of cache errors. | |
| cacheHitCount | back to summary |
|---|---|
| private final AtomicLong cacheHitCount The number of cache hits. | |
| cacheMissCount | back to summary |
|---|---|
| private final AtomicLong cacheMissCount The number of cache misses. | |
| fileCache | back to summary |
|---|---|
| private final FileCache fileCache The | |
| fileCacheProbe | back to summary |
|---|---|
| private final FileCache. The | |
| FileCache | back to summary |
|---|---|
| public FileCache(FileCache fileCache) Constructs a new JMX managed FileCache for the specified
| |
| getCachedEntryCount | back to summary |
|---|---|
public int getCachedEntryCount()
| |
| getCacheErrorCount | back to summary |
|---|---|
public int getCacheErrorCount()
| |
| getCacheHitCount | back to summary |
|---|---|
public long getCacheHitCount()
| |
| getCacheMissCount | back to summary |
|---|---|
public long getCacheMissCount()
| |
| getHeapMemoryInBytes | back to summary |
|---|---|
public long getHeapMemoryInBytes()
| |
| getJmxName | back to summary |
|---|---|
| public String getJmxName() Implements abstract org.
| |
| getMappedMemorytInBytes | back to summary |
|---|---|
public long getMappedMemorytInBytes()
| |
| getMaxCacheEntries | back to summary |
|---|---|
public int getMaxCacheEntries()
| |
| getMaxEntrySize | back to summary |
|---|---|
public long getMaxEntrySize()
| |
| getMaxLargeFileCacheSize | back to summary |
|---|---|
public long getMaxLargeFileCacheSize()
| |
| getMaxSmallFileCacheSize | back to summary |
|---|---|
public long getMaxSmallFileCacheSize()
| |
| getMinEntrySize | back to summary |
|---|---|
public long getMinEntrySize()
| |
| getSecondsMaxAge | back to summary |
|---|---|
public int getSecondsMaxAge()
| |
| isFileCacheEnabled | back to summary |
|---|---|
public boolean isFileCacheEnabled()
| |
| onDeregister | back to summary |
|---|---|
| protected void onDeregister(GrizzlyJmxManager mom) Implements abstract org. Doc from org. Method will be called right after this JmxObject is unregistered by the JMX manager.
When invoked, this method will remove the
| |
| onRegister | back to summary |
|---|---|
| protected void onRegister(GrizzlyJmxManager mom, GmbalMBean bean) Implements abstract org. Doc from org. Method will be called right after this JmxObject is registered by the JMX manager.
When invoked, this method will add a
| |
FileCacheProbe.
| Access | Constructor and Description |
|---|---|
| private |
| JMXFileCacheProbe | back to summary |
|---|---|
| private JMXFileCacheProbe() | |
| onEntryAddedEvent | back to summary |
|---|---|
| public void onEntryAddedEvent(FileCache fileCache, FileCacheEntry entry) Implements org. Doc from org. Method will be called, when file cache entry gets added.
| |
| onEntryHitEvent | back to summary |
|---|---|
| public void onEntryHitEvent(FileCache fileCache, FileCacheEntry entry) Implements org. Doc from org. Method will be called, when file cache entry gets hit.
| |
| onEntryMissedEvent | back to summary |
|---|---|
| public void onEntryMissedEvent(FileCache fileCache, String host, String requestURI) Implements org. Doc from org. Method will be called, when file cache entry is missed for some resource.
| |
| onEntryRemovedEvent | back to summary |
|---|---|
| public void onEntryRemovedEvent(FileCache fileCache, FileCacheEntry entry) Implements org. Doc from org. Method will be called, when file cache entry gets removed.
| |
| onErrorEvent | back to summary |
|---|---|
| public void onErrorEvent(FileCache fileCache, Throwable error) Implements org. Doc from org. Method will be called, when error occurs on the
| |