Search in sources :

Example 6 with CacheConfiguration

use of com.evolveum.midpoint.util.caching.CacheConfiguration in project midpoint by Evolveum.

the class LocalRepoCacheCollection method enter.

public static void enter(CacheConfigurationManager mgr) {
    // let's compute configuration first -- an exception can be thrown there; so if it happens, none of the caches
    // will be entered into upon exit of this method
    CacheConfiguration objectCacheConfig = mgr.getConfiguration(LOCAL_REPO_OBJECT_CACHE);
    CacheConfiguration versionCacheConfig = mgr.getConfiguration(LOCAL_REPO_VERSION_CACHE);
    CacheConfiguration queryCacheConfig = mgr.getConfiguration(LOCAL_REPO_QUERY_CACHE);
    LocalObjectCache.enter(LOCAL_OBJECT_CACHE_INSTANCE, LocalObjectCache.class, objectCacheConfig, LOGGER);
    LocalVersionCache.enter(LOCAL_VERSION_CACHE_INSTANCE, LocalVersionCache.class, versionCacheConfig, LOGGER);
    LocalQueryCache.enter(LOCAL_QUERY_CACHE_INSTANCE, LocalQueryCache.class, queryCacheConfig, LOGGER);
}
Also used : CacheConfiguration(com.evolveum.midpoint.util.caching.CacheConfiguration)

Aggregations

CacheConfiguration (com.evolveum.midpoint.util.caching.CacheConfiguration)6 AbstractSearchExpressionEvaluatorCache (com.evolveum.midpoint.model.common.expression.evaluator.caching.AbstractSearchExpressionEvaluatorCache)1 CacheType (com.evolveum.midpoint.schema.cache.CacheType)1 StatisticsLevel (com.evolveum.midpoint.util.caching.CacheConfiguration.StatisticsLevel)1 CacheConfiguration.getStatisticsLevel (com.evolveum.midpoint.util.caching.CacheConfiguration.getStatisticsLevel)1 CachePerformanceCollector (com.evolveum.midpoint.util.caching.CachePerformanceCollector)1 SchemaException (com.evolveum.midpoint.util.exception.SchemaException)1 SystemException (com.evolveum.midpoint.util.exception.SystemException)1 ArrayList (java.util.ArrayList)1 NotNull (org.jetbrains.annotations.NotNull)1