|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.cache.GoogleCacheInstruments
@Immutable public class GoogleCacheInstruments
Registers cache metrics in Instrumentation
.
Constructor Summary | |
---|---|
GoogleCacheInstruments(String name)
Creates a new GoogleCacheInstruments with the given name. |
Method Summary | |
---|---|
GoogleCacheInstruments |
addCache(com.google.common.cache.Cache cache)
Adds cache to the list of caches to expose in JIRA instrumentation. |
String |
getName()
|
GoogleCacheInstruments |
install()
Installs one instrument for each of the following statistics for all caches that are monitored by this GoogleCacheInstruments instance: size hitCount missCount loadSuccessCount loadExceptionCount totalLoadTime evictionCount |
GoogleCacheInstruments |
removeCache(com.google.common.cache.Cache cache)
Removes cache from the list of caches to expose in JIRA instrumentation. |
GoogleCacheInstruments |
uninstall()
Currently does nothing because JIRA does not support uninstalling instruments. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GoogleCacheInstruments(String name)
name
- the name under which the counters will appear in JIRA instrumentationMethod Detail |
---|
public String getName()
public GoogleCacheInstruments addCache(com.google.common.cache.Cache cache)
cache
to the list of caches to expose in JIRA instrumentation.
cache
- a Cache
public GoogleCacheInstruments removeCache(com.google.common.cache.Cache cache)
cache
from the list of caches to expose in JIRA instrumentation.
cache
- a Cache
public GoogleCacheInstruments install()
public GoogleCacheInstruments uninstall()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |