|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.functest.rest.admin.CacheResource
public class CacheResource
Interacts with the CacheManager. Called from CacheRpc.
Constructor Summary | |
---|---|
CacheResource(com.atlassian.cache.CacheManager cacheManager,
CacheStatisticsManager cacheStatisticsManager,
CacheConfigManager cacheConfigManager)
|
Method Summary | |
---|---|
void |
flushAllCaches()
|
int |
getCacheMaxEntries(java.lang.String cacheName)
Returns the configured maximum number of elements in the given cache |
java.util.Collection<java.util.Hashtable> |
getCacheStatistics()
Returns all cache statistics. |
java.util.Hashtable |
getCacheStatistics(java.lang.String cacheName)
Returns the cache statistics for a particular named cache. |
java.util.Collection<java.lang.String> |
getCacheStatisticsCapabilities()
|
void |
putStringMappingInCache(java.lang.String cacheName,
java.lang.String key,
java.lang.String value)
Map a key to a value for a given cache. |
void |
setCacheMaxEntries(java.lang.String cacheName,
int maxNumElements)
(Re)configures the maximum number of elements in the given cache |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CacheResource(com.atlassian.cache.CacheManager cacheManager, CacheStatisticsManager cacheStatisticsManager, CacheConfigManager cacheConfigManager)
Method Detail |
---|
public void flushAllCaches()
public int getCacheMaxEntries(java.lang.String cacheName)
cacheName
- the key of the cache, rather than the "niceName"public void setCacheMaxEntries(java.lang.String cacheName, int maxNumElements)
cacheName
- the key of the cache, rather than the "niceName"maxNumElements
- the new size for the cachepublic void putStringMappingInCache(java.lang.String cacheName, java.lang.String key, java.lang.String value)
public java.util.Collection<java.util.Hashtable> getCacheStatistics()
public java.util.Hashtable getCacheStatistics(java.lang.String cacheName)
cacheName
- the key of the cache, rather than the "niceName"
public java.util.Collection<java.lang.String> getCacheStatisticsCapabilities()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |