com.caucho.server.cache
Class ProxyCacheAdmin

java.lang.Object
  extended by com.caucho.management.server.AbstractManagedObject
      extended by com.caucho.server.cache.ProxyCacheAdmin
All Implemented Interfaces:
ManagedObjectMXBean, ProxyCacheMXBean

public class ProxyCacheAdmin
extends AbstractManagedObject
implements ProxyCacheMXBean


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 cache expires.
 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.
 java.lang.String getName()
          The JMX name property of the mbean.
 java.lang.String getType()
          The JMX type of this MBean, defaults to the prefix of the FooMXBean..
 CacheItem[] getUncacheableEntries(int max)
          Return most used uncacheable connections.
 CacheItem[] getUncachedEntries(int max)
          Return most used uncached connections.
 
Methods inherited from class com.caucho.management.server.AbstractManagedObject
addObjectNameProperties, getObjectName, registerSelf, toString, unregisterSelf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.caucho.management.server.ManagedObjectMXBean
getObjectName
 

Method Detail

getName

public java.lang.String getName()
Description copied from class: AbstractManagedObject
The JMX name property of the mbean.

Specified by:
getName in interface ManagedObjectMXBean
Specified by:
getName in class AbstractManagedObject

getType

public java.lang.String getType()
Description copied from class: AbstractManagedObject
The JMX type of this MBean, defaults to the prefix of the FooMXBean..

Specified by:
getType in interface ManagedObjectMXBean
Overrides:
getType in class AbstractManagedObject

getHitCountTotal

public long getHitCountTotal()
Returns the proxy cache hit count.

Specified by:
getHitCountTotal in interface ProxyCacheMXBean

getMissCountTotal

public long getMissCountTotal()
Returns the proxy cache miss count.

Specified by:
getMissCountTotal in interface ProxyCacheMXBean

clearCache

public void clearCache()
Clears the cache.

Specified by:
clearCache in interface ProxyCacheMXBean

clearCacheByPattern

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

Specified by:
clearCacheByPattern in interface ProxyCacheMXBean
Parameters:
hostRegexp - the regexp to match the host. Null matches all.
urlRegexp - the regexp to match the url. Null matches all.

clearExpires

public void clearExpires()
Clears the cache expires.

Specified by:
clearExpires in interface ProxyCacheMXBean

getCacheableEntries

public CacheItem[] getCacheableEntries(int max)
Description copied from interface: ProxyCacheMXBean
Return most used cacheable connections.

Specified by:
getCacheableEntries in interface ProxyCacheMXBean

getUncacheableEntries

public CacheItem[] getUncacheableEntries(int max)
Description copied from interface: ProxyCacheMXBean
Return most used uncacheable connections.

Specified by:
getUncacheableEntries in interface ProxyCacheMXBean

getCachedEntries

public CacheItem[] getCachedEntries(int max)
Description copied from interface: ProxyCacheMXBean
Return most used cached connections.

Specified by:
getCachedEntries in interface ProxyCacheMXBean

getUncachedEntries

public CacheItem[] getUncachedEntries(int max)
Description copied from interface: ProxyCacheMXBean
Return most used uncached connections.

Specified by:
getUncachedEntries in interface ProxyCacheMXBean