com.caucho.management.server
Interface ProxyCacheMXBean

All Superinterfaces:
ManagedObjectMXBean
All Known Implementing Classes:
ProxyCacheAdmin

public interface ProxyCacheMXBean
extends ManagedObjectMXBean

Management interface for the proxy cache.

 resin:type=ProxyCache
 


Method Summary
 void clearCache()
          Clears the cache.
 void clearCacheByPattern(java.lang.String hostRegexp, java.lang.String urlRegexp)
          Clears the cache by regexp patterns.
 void clearExpires()
          Clears the expires timers for the cache.
 CacheItem[] getCacheableEntries(int max)
          Return most used cacheable connections.
 CacheItem[] getCachedEntries(int max)
          Return most used cached connections.
 long getHitCountTotal()
          Returns the proxy cache hit count.
 long getMissCountTotal()
          Returns the proxy cache miss count.
 CacheItem[] getUncacheableEntries(int max)
          Return most used uncacheable connections.
 CacheItem[] getUncachedEntries(int max)
          Return most used uncached connections.
 
Methods inherited from interface com.caucho.management.server.ManagedObjectMXBean
getName, getObjectName, getType
 

Method Detail

getHitCountTotal

long getHitCountTotal()
Returns the proxy cache hit count.


getMissCountTotal

long getMissCountTotal()
Returns the proxy cache miss count.


getCacheableEntries

CacheItem[] getCacheableEntries(int max)
Return most used cacheable connections.


getUncacheableEntries

CacheItem[] getUncacheableEntries(int max)
Return most used uncacheable connections.


getCachedEntries

CacheItem[] getCachedEntries(int max)
Return most used cached connections.


getUncachedEntries

CacheItem[] getUncachedEntries(int max)
Return most used uncached connections.


clearCache

void clearCache()
Clears the cache.


clearCacheByPattern

void clearCacheByPattern(java.lang.String hostRegexp,
                         java.lang.String urlRegexp)
Clears the cache by regexp patterns.

Parameters:
hostRegexp - the regexp to match the host. Null matches all.
urlRegexp - the regexp to match the url. Null matches all.

clearExpires

void clearExpires()
Clears the expires timers for the cache.