public class ProxyCacheAdmin extends AbstractManagedObject implements ProxyCacheMXBean
Modifier and Type | Method and Description |
---|---|
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.
|
double |
getCacheableRate()
Returns the cacheable rate
|
CacheItem[] |
getCachedEntries(int max)
Return most used cached connections.
|
long |
getHitCountTotal()
Returns the proxy cache hit count.
|
long |
getInvocationHitCountTotal()
Returns the invocation hit count
|
long |
getInvocationMissCountTotal()
Returns the invocation miss count
|
long |
getMissCountTotal()
Returns the proxy cache miss count.
|
double |
getMissRate()
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.
|
addObjectNameProperties, getObjectName, registerSelf, toString, unregisterSelf
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getObjectName
public java.lang.String getName()
AbstractManagedObject
getName
in interface ManagedObjectMXBean
getName
in class AbstractManagedObject
public java.lang.String getType()
AbstractManagedObject
getType
in interface ManagedObjectMXBean
getType
in class AbstractManagedObject
public long getHitCountTotal()
getHitCountTotal
in interface ProxyCacheMXBean
public long getMissCountTotal()
getMissCountTotal
in interface ProxyCacheMXBean
public double getMissRate()
ProxyCacheMXBean
getMissRate
in interface ProxyCacheMXBean
public long getInvocationHitCountTotal()
ProxyCacheMXBean
getInvocationHitCountTotal
in interface ProxyCacheMXBean
public long getInvocationMissCountTotal()
ProxyCacheMXBean
getInvocationMissCountTotal
in interface ProxyCacheMXBean
public double getCacheableRate()
ProxyCacheMXBean
getCacheableRate
in interface ProxyCacheMXBean
public void clearCache()
clearCache
in interface ProxyCacheMXBean
public void clearCacheByPattern(java.lang.String hostRegexp, java.lang.String urlRegexp)
clearCacheByPattern
in interface ProxyCacheMXBean
hostRegexp
- the regexp to match the host. Null matches all.urlRegexp
- the regexp to match the url. Null matches all.public void clearExpires()
clearExpires
in interface ProxyCacheMXBean
public CacheItem[] getCacheableEntries(int max)
ProxyCacheMXBean
getCacheableEntries
in interface ProxyCacheMXBean
public CacheItem[] getUncacheableEntries(int max)
ProxyCacheMXBean
getUncacheableEntries
in interface ProxyCacheMXBean
public CacheItem[] getCachedEntries(int max)
ProxyCacheMXBean
getCachedEntries
in interface ProxyCacheMXBean
public CacheItem[] getUncachedEntries(int max)
ProxyCacheMXBean
getUncachedEntries
in interface ProxyCacheMXBean