Class CachePerformanceCollector
- java.lang.Object
-
- com.evolveum.midpoint.util.caching.CachePerformanceCollector
-
- All Implemented Interfaces:
DebugDumpable
public class CachePerformanceCollector extends Object implements DebugDumpable
Temporary implementation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CachePerformanceCollector.CacheData
-
Field Summary
Fields Modifier and Type Field Description static CachePerformanceCollector
INSTANCE
-
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
-
Constructor Summary
Constructors Constructor Description CachePerformanceCollector()
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDumpLazily, debugDumpLazily
-
-
-
-
Field Detail
-
INSTANCE
public static final CachePerformanceCollector INSTANCE
-
-
Method Detail
-
registerHit
public void registerHit(Class<?> cacheClass, Class<?> type, CacheConfiguration.StatisticsLevel statisticsLevel)
-
registerWeakHit
public void registerWeakHit(Class<?> cacheClass, Class<?> type, CacheConfiguration.StatisticsLevel statisticsLevel)
-
registerMiss
public void registerMiss(Class<?> cacheClass, Class<?> type, CacheConfiguration.StatisticsLevel statisticsLevel)
-
registerPass
public void registerPass(Class<?> cacheClass, Class<?> type, CacheConfiguration.StatisticsLevel statisticsLevel)
-
registerNotAvailable
public void registerNotAvailable(Class<?> cacheClass, Class<?> type, CacheConfiguration.StatisticsLevel statisticsLevel)
-
registerSkippedStaleData
@Experimental public void registerSkippedStaleData(Class<?> type)
-
registerOverSizedQuery
@Experimental public void registerOverSizedQuery(Class<?> type)
-
clear
public void clear()
-
debugDump
public String debugDump(int indent)
- Specified by:
debugDump
in interfaceDebugDumpable
-
getGlobalPerformanceMap
public Map<String,CachePerformanceCollector.CacheData> getGlobalPerformanceMap()
-
getThreadLocalPerformanceMap
public Map<String,CachePerformanceCollector.CacheData> getThreadLocalPerformanceMap()
-
startThreadLocalPerformanceInformationCollection
public void startThreadLocalPerformanceInformationCollection()
Starts gathering thread-local performance information, clearing existing (if any).
-
stopThreadLocalPerformanceInformationCollection
public void stopThreadLocalPerformanceInformationCollection()
Stops gathering thread-local performance information, clearing existing (if any).
-
isExtra
@Experimental public static boolean isExtra(String key)
-
-