/forgerock/opendj-b2.6/tests/unit-tests-testng/src/server/org/opends/server/extensions/ |
H A D | CommonEntryCacheTestCase.java | 48 * A common set of test cases for all entry cache implementations. 49 * @param <C> The type of entry cache configuration. 63 * Maximum number of entries the cache can hold. 89 protected EntryCache<C> cache; field in class:CommonEntryCacheTestCase 94 * Entry cache configuration instance. 108 assertNull(cache.toVerboseString(), 109 "Expected empty cache. " + "Cache contents:" + ServerConstants.EOL + 110 cache.toVerboseString()); 115 assertFalse(cache.containsEntry(testEntriesList.get(0).getDN()), 117 " in the cache [all...] |
H A D | FileSystemEntryCacheTestCase.java | 55 * A set of test cases for FileSystem entry cache implementation. 62 * Configuration entry for this cache. 72 * Utility method to restore default cache configuration. 77 // Finalize this cache so it can be reconfigured. 78 super.cache.finalizeEntryCache(); 80 // Configure this cache back to defaults. 84 // Initialize the cache. 85 super.cache = new FileSystemEntryCache(); 86 super.cache.initializeEntryCache(configuration); 88 // Make sure the cache i [all...] |
/forgerock/opendj2/tests/unit-tests-testng/src/server/org/opends/server/extensions/ |
H A D | CommonEntryCacheTestCase.java | 47 * A common set of test cases for all entry cache implementations. 48 * @param <C> The type of entry cache configuration. 62 * Maximum number of entries the cache can hold. 88 protected EntryCache<C> cache; field in class:CommonEntryCacheTestCase 93 * Entry cache configuration instance. 107 assertNull(cache.toVerboseString(), 108 "Expected empty cache. " + "Cache contents:" + ServerConstants.EOL + 109 cache.toVerboseString()); 114 assertFalse(cache.containsEntry(testEntriesList.get(0).getDN()), 116 " in the cache [all...] |
H A D | FileSystemEntryCacheTestCase.java | 54 * A set of test cases for FileSystem entry cache implementation. 61 * Configuration entry for this cache. 71 * Utility method to restore default cache configuration. 76 // Finalize this cache so it can be reconfigured. 77 super.cache.finalizeEntryCache(); 79 // Configure this cache back to defaults. 83 // Initialize the cache. 84 super.cache = new FileSystemEntryCache(); 85 super.cache.initializeEntryCache(configuration); 87 // Make sure the cache i [all...] |
/forgerock/opendj2.6.2/tests/unit-tests-testng/src/server/org/opends/server/extensions/ |
H A D | CommonEntryCacheTestCase.java | 48 * A common set of test cases for all entry cache implementations. 49 * @param <C> The type of entry cache configuration. 63 * Maximum number of entries the cache can hold. 89 protected EntryCache<C> cache; field in class:CommonEntryCacheTestCase 94 * Entry cache configuration instance. 108 assertNull(cache.toVerboseString(), 109 "Expected empty cache. " + "Cache contents:" + ServerConstants.EOL + 110 cache.toVerboseString()); 115 assertFalse(cache.containsEntry(testEntriesList.get(0).getDN()), 117 " in the cache [all...] |
H A D | FileSystemEntryCacheTestCase.java | 55 * A set of test cases for FileSystem entry cache implementation. 62 * Configuration entry for this cache. 72 * Utility method to restore default cache configuration. 77 // Finalize this cache so it can be reconfigured. 78 super.cache.finalizeEntryCache(); 80 // Configure this cache back to defaults. 84 // Initialize the cache. 85 super.cache = new FileSystemEntryCache(); 86 super.cache.initializeEntryCache(configuration); 88 // Make sure the cache i [all...] |
/forgerock/opendj2-hg/tests/unit-tests-testng/src/server/org/opends/server/extensions/ |
H A D | CommonEntryCacheTestCase.java | 47 * A common set of test cases for all entry cache implementations. 48 * @param <C> The type of entry cache configuration. 62 * Maximum number of entries the cache can hold. 88 protected EntryCache<C> cache; field in class:CommonEntryCacheTestCase 93 * Entry cache configuration instance. 107 assertNull(cache.toVerboseString(), 108 "Expected empty cache. " + "Cache contents:" + ServerConstants.EOL + 109 cache.toVerboseString()); 114 assertFalse(cache.containsEntry(testEntriesList.get(0).getDN()), 116 " in the cache [all...] |
H A D | FileSystemEntryCacheTestCase.java | 54 * A set of test cases for FileSystem entry cache implementation. 61 * Configuration entry for this cache. 71 * Utility method to restore default cache configuration. 76 // Finalize this cache so it can be reconfigured. 77 super.cache.finalizeEntryCache(); 79 // Configure this cache back to defaults. 83 // Initialize the cache. 84 super.cache = new FileSystemEntryCache(); 85 super.cache.initializeEntryCache(configuration); 87 // Make sure the cache i [all...] |
/forgerock/opendj2-jel-hg/tests/unit-tests-testng/src/server/org/opends/server/extensions/ |
H A D | CommonEntryCacheTestCase.java | 48 * A common set of test cases for all entry cache implementations. 49 * @param <C> The type of entry cache configuration. 63 * Maximum number of entries the cache can hold. 89 protected EntryCache<C> cache; field in class:CommonEntryCacheTestCase 94 * Entry cache configuration instance. 108 assertNull(cache.toVerboseString(), 109 "Expected empty cache. " + "Cache contents:" + ServerConstants.EOL + 110 cache.toVerboseString()); 115 assertFalse(cache.containsEntry(testEntriesList.get(0).getDN()), 117 " in the cache [all...] |
H A D | FileSystemEntryCacheTestCase.java | 55 * A set of test cases for FileSystem entry cache implementation. 62 * Configuration entry for this cache. 72 * Utility method to restore default cache configuration. 77 // Finalize this cache so it can be reconfigured. 78 super.cache.finalizeEntryCache(); 80 // Configure this cache back to defaults. 84 // Initialize the cache. 85 super.cache = new FileSystemEntryCache(); 86 super.cache.initializeEntryCache(configuration); 88 // Make sure the cache i [all...] |
/forgerock/opendj-v3/opendj-server-legacy/src/test/java/org/opends/server/extensions/ |
H A D | CommonEntryCacheTestCase.java | 43 * A common set of test cases for all entry cache implementations. 44 * @param <C> The type of entry cache configuration. 58 * Maximum number of entries the cache can hold. 84 protected EntryCache<C> cache; field in class:CommonEntryCacheTestCase 89 * Entry cache configuration instance. 103 assertNull(cache.toVerboseString(), 104 "Expected empty cache. " + "Cache contents:" + ServerConstants.EOL + 105 cache.toVerboseString()); 110 assertFalse(cache.containsEntry(testEntriesList.get(0).getName()), 112 " in the cache [all...] |
/forgerock/openam-v13/openam-shared/src/test/java/org/forgerock/openam/utils/collections/ |
H A D | LeastRecentlyUsedTest.java | 28 final LeastRecentlyUsed<Integer, Integer> cache = new LeastRecentlyUsed<Integer, Integer>(1); 29 cache.put(1, 2); 30 cache.put(3, 4); 31 assertThat(cache.size()).isEqualTo(1); 37 final LeastRecentlyUsed<String, String> cache = new LeastRecentlyUsed<String, String>(max); 39 cache.put(UUID.randomUUID().toString(), UUID.randomUUID().toString()); 41 assertThat(cache.size()).isEqualTo(max); 46 final LeastRecentlyUsed<Integer, Integer> cache = new LeastRecentlyUsed<Integer, Integer>(1); 47 cache.put(1, 2); 48 cache [all...] |
/forgerock/openam/openam-shared/src/test/java/org/forgerock/openam/utils/collections/ |
H A D | LeastRecentlyUsedTest.java | 28 final LeastRecentlyUsed<Integer, Integer> cache = new LeastRecentlyUsed<Integer, Integer>(1); 29 cache.put(1, 2); 30 cache.put(3, 4); 31 assertThat(cache.size()).isEqualTo(1); 37 final LeastRecentlyUsed<String, String> cache = new LeastRecentlyUsed<String, String>(max); 39 cache.put(UUID.randomUUID().toString(), UUID.randomUUID().toString()); 41 assertThat(cache.size()).isEqualTo(max); 46 final LeastRecentlyUsed<Integer, Integer> cache = new LeastRecentlyUsed<Integer, Integer>(1); 47 cache.put(1, 2); 48 cache [all...] |
/forgerock/jee-agents-v3.5/jee-agents-sdk/src/main/java/com/sun/identity/agents/filter/ |
H A D | AmSSOCache.java | 51 IAmSSOCache cache = AmFilterManager.getAmSSOCache(); 52 return cache.getSSOTokenForUser(context); 62 IAmSSOCache cache = AmFilterManager.getAmSSOCache(); 63 return cache.getSSOTokenForUser(request);
|
/forgerock/openam-v13/openam-radius/openam-radius-server/src/test/java/org/forgerock/openam/radius/server/spi/handlers/amhandler/ |
H A D | ContextHolderCacheTest.java | 40 final ContextHolderCache cache = new ContextHolderCache(cacheSize); 42 final ContextHolder cachedContext = cache.createCachedContextHolder(); 58 final ContextHolderCache cache = new ContextHolderCache(cacheSize); 59 final ContextHolder cachedContext = cache.createCachedContextHolder(); 62 final ContextHolder cachedEntry = cache.get(cachedContext.getCacheKey()); 77 final ContextHolderCache cache = new ContextHolderCache(cacheSize); 78 final ContextHolder cachedContext = cache.createCachedContextHolder(); 79 final int afterInsertSize = cache.size(); 82 cache.remove(cachedContext.getCacheKey()); 84 assertThat(cache [all...] |
/forgerock/openam/openam-radius/openam-radius-server/src/test/java/org/forgerock/openam/radius/server/spi/handlers/amhandler/ |
H A D | ContextHolderCacheTest.java | 40 final ContextHolderCache cache = new ContextHolderCache(cacheSize); 42 final ContextHolder cachedContext = cache.createCachedContextHolder(); 58 final ContextHolderCache cache = new ContextHolderCache(cacheSize); 59 final ContextHolder cachedContext = cache.createCachedContextHolder(); 62 final ContextHolder cachedEntry = cache.get(cachedContext.getCacheKey()); 77 final ContextHolderCache cache = new ContextHolderCache(cacheSize); 78 final ContextHolder cachedContext = cache.createCachedContextHolder(); 79 final int afterInsertSize = cache.size(); 82 cache.remove(cachedContext.getCacheKey()); 84 assertThat(cache [all...] |
/forgerock/openam-v13/openam-core/src/test/java/com/iplanet/dpro/session/service/ |
H A D | InternalSessionCacheTest.java | 32 private InternalSessionCache cache; field in class:InternalSessionCacheTest 42 cache = new InternalSessionCache(mockConfig); 47 cache.put(session); 48 assertThat(cache.getBySessionID(sessionId)).isEqualTo(session); 55 cache.put(session); 56 assertThat(cache.getByRestrictedID(restrictedID)).isEqualTo(session); 63 cache.put(session); 64 assertThat(cache.getByHandle(handle)).isEqualTo(session); 69 cache.put(session); 70 cache [all...] |
/forgerock/openam-v13/openam-core/src/test/java/org/forgerock/openam/session/stateless/cache/ |
H A D | StatelessJWTCacheTest.java | 16 package org.forgerock.openam.session.stateless.cache; 40 private StatelessJWTCache cache; field in class:StatelessJWTCacheTest 73 cache = new StatelessJWTCache(mockConfig, mockListeners); 74 assertThat(cache.contains((String)null)).isFalse(); 79 cache = new StatelessJWTCache(mockConfig, mockListeners); 80 assertThat(cache.contains((SessionInfo)null)).isFalse(); 87 cache = new StatelessJWTCache(mockConfig, mockListeners); 91 cache.cache(mockInfo, jwt); 93 assertThat(cache [all...] |
/forgerock/openam/openam-core/src/test/java/org/forgerock/openam/session/stateless/cache/ |
H A D | StatelessJWTCacheTest.java | 16 package org.forgerock.openam.session.stateless.cache; 40 private StatelessJWTCache cache; field in class:StatelessJWTCacheTest 73 cache = new StatelessJWTCache(mockConfig, mockListeners); 74 assertThat(cache.contains((String)null)).isFalse(); 79 cache = new StatelessJWTCache(mockConfig, mockListeners); 80 assertThat(cache.contains((SessionInfo)null)).isFalse(); 87 cache = new StatelessJWTCache(mockConfig, mockListeners); 91 cache.cache(mockInfo, jwt); 93 assertThat(cache [all...] |
/forgerock/openam-v13/openam-console/src/main/java/com/sun/identity/console/base/model/ |
H A D | AMResBundleCacher.java | 37 * Utility to cache resource bundle object. It leverage on 49 AMResourceBundleCache cache = AMResourceBundleCache.getInstance(); 50 ResourceBundle rb = cache.getResBundle(name, locale); 53 rb = cache.getResBundle(AMAdminConstants.DEFAULT_RB, locale);
|
/forgerock/openam/openam-console/src/main/java/com/sun/identity/console/base/model/ |
H A D | AMResBundleCacher.java | 37 * Utility to cache resource bundle object. It leverage on 49 AMResourceBundleCache cache = AMResourceBundleCache.getInstance(); 50 ResourceBundle rb = cache.getResBundle(name, locale); 53 rb = cache.getResBundle(AMAdminConstants.DEFAULT_RB, locale);
|
/forgerock/openam-v13/openam-radius/openam-radius-server/src/main/java/org/forgerock/openam/radius/server/spi/handlers/amhandler/ |
H A D | ContextHolderCache.java | 34 * A thread safe cache for ContextHolder objects. 44 * This class is really a synchronization wrapper around a LeastRecentlyUsed cache. It also prevents inappropriate 45 * access to the cache methods (hence the use of encapsulation rather than inheritance). 47 private LeastRecentlyUsed<String, ContextHolder> cache; field in class:ContextHolderCache 50 * The determination of cache size is also encapsulated so that the cache behaviour can be more easily tested, but 51 * also so the strategy for deciding cache size can be simply modified. 63 cache = new LeastRecentlyUsed<String, ContextHolder>(contextCacheSize.getDesiredCacheSize()); 72 * @return the cached value associated with the specified key, or null if no cache entry is held with the key. 75 return cache [all...] |
/forgerock/openam/openam-radius/openam-radius-server/src/main/java/org/forgerock/openam/radius/server/spi/handlers/amhandler/ |
H A D | ContextHolderCache.java | 34 * A thread safe cache for ContextHolder objects. 44 * This class is really a synchronization wrapper around a LeastRecentlyUsed cache. It also prevents inappropriate 45 * access to the cache methods (hence the use of encapsulation rather than inheritance). 47 private LeastRecentlyUsed<String, ContextHolder> cache; field in class:ContextHolderCache 50 * The determination of cache size is also encapsulated so that the cache behaviour can be more easily tested, but 51 * also so the strategy for deciding cache size can be simply modified. 63 cache = new LeastRecentlyUsed<String, ContextHolder>(contextCacheSize.getDesiredCacheSize()); 72 * @return the cached value associated with the specified key, or null if no cache entry is held with the key. 75 return cache [all...] |
/forgerock/openam-v13/openam-slf4j/src/main/java/org/forgerock/openam/slf4j/ |
H A D | AMLoggerFactory.java | 21 import org.forgerock.guava.common.cache.CacheBuilder; 22 import org.forgerock.guava.common.cache.CacheLoader; 23 import org.forgerock.guava.common.cache.LoadingCache; 29 private static final LoadingCache<String, Debug> cache = CacheBuilder.newBuilder() field in class:AMLoggerFactory 38 return new AMDebugLogger(cache.getUnchecked(s));
|
/forgerock/web-agents-v4/source/ |
H A D | cache.c | 23 * Session and Policy response attribute cache 27 * Policy Change event cache 31 * PDP cache: 38 AM_CACHE_SESSION = 0x1, /* cache entry type - session data */ 39 AM_CACHE_PDP = 0x2, /* cache entry type - pdp data */ 40 AM_CACHE_POLICY = 0x4, /* cache entry type - policy response */ 92 static am_shm_t *cache = NULL; variable 95 * Get a copy of the shared memory area handle pointed to by "cache". 98 return cache; 103 if (cache ! [all...] |