Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 12 for clearCaches (0.06 seconds)

  1. impl/maven-core/src/main/java/org/apache/maven/configuration/internal/EnhancedCompositeBeanHelper.java

                field.setAccessible(true);
            }
            field.set(bean, value);
        }
    
        /**
         * Clear all caches. Useful for testing or memory management.
         */
        public static void clearCaches() {
            METHOD_CACHE.clear();
            FIELD_CACHE.clear();
        }
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Nov 12 14:59:46 GMT 2025
    - 12.3K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/fess/helper/PopularWordHelperTest.java

            assertNotNull(result);
            assertTrue(result.contains("test@seed#with$special%chars"));
        }
    
        @Test
        public void test_clearCache() {
            // Test that clearCache doesn't throw exception
            popularWordHelper.clearCache();
    
            // Verify cache is cleared (we can't directly test this without accessing the cache)
            // But we can test that it doesn't throw exceptions
            assertTrue(true);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 11.3K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/fess/script/groovy/GroovyEngine.java

                        return new CachedScript(scriptClass, classLoader);
                    } catch (final Exception e) {
                        try {
                            classLoader.clearCache();
                            classLoader.close();
                        } catch (final IOException closeEx) {
                            logger.warn("Failed to close GroovyClassLoader after compilation failure", closeEx);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 14:36:23 GMT 2026
    - 11.9K bytes
    - Click Count (0)
  4. src/test/java/org/codelibs/fess/ds/AbstractDataStoreTest.java

                    } catch (final Exception e) {
                        return null;
                    } finally {
                        final GroovyClassLoader loader = groovyShell.getClassLoader();
                        loader.clearCache();
                    }
                }
    
                @Override
                protected String getName() {
                    return Constants.DEFAULT_SCRIPT;
                }
            }.register();
        }
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 12.8K bytes
    - Click Count (1)
  5. src/main/java/org/codelibs/fess/job/SuggestJob.java

                    throw new JobProcessingException(out.toString());
                }
                ComponentUtil.getPopularWordHelper().clearCache();
            } catch (final JobProcessingException e) {
                throw e;
            } catch (final Exception e) {
                throw new JobProcessingException("SuggestCreator Process terminated.", e);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Nov 28 16:29:12 GMT 2025
    - 10.5K bytes
    - Click Count (0)
  6. src/main/java/org/codelibs/fess/job/GenerateThumbnailJob.java

                    throw new JobProcessingException(out.toString());
                }
                ComponentUtil.getPopularWordHelper().clearCache();
            } catch (final JobProcessingException e) {
                throw e;
            } catch (final Exception e) {
                throw new JobProcessingException("ThumbnailGenerator Process terminated.", e);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Nov 28 16:29:12 GMT 2025
    - 11.7K bytes
    - Click Count (0)
  7. src/test/java/jcifs/smb/CriticalPerformanceTest.java

            Mockito.when(mockConfig.getSessionLimit()).thenReturn(10);
    
            // Clear buffer cache for consistent test results
            BufferCache.clearCache();
        }
    
        /**
         * Test connection pool scalability with concurrent access
         */
        @Test
        public void testConnectionPoolConcurrentPerformance() throws Exception {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 15.3K bytes
    - Click Count (0)
  8. src/test/java/org/codelibs/fess/helper/SuggestHelperTest.java

            public boolean calibrateCpuLoad() {
                return true;
            }
        }
    
        private static class MockPopularWordHelper extends PopularWordHelper {
            @Override
            public void clearCache() {
                // Mock implementation
            }
        }
    
        private static class MockSuggester {
            private MockSuggestIndexer indexer = new MockSuggestIndexer();
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 16.3K bytes
    - Click Count (0)
  9. fess-crawler-opensearch/src/main/java/org/codelibs/fess/crawler/service/impl/OpenSearchUrlQueueService.java

                } catch (final Exception e) {
                    logger.warn("Failed to restore " + urlQueue, e);
                }
            }));
        }
    
        /**
         * Clears the cache.
         */
        public void clearCache() {
            sessionCache.clear();
        }
    
        /**
         * Updates the session ID for all URL queue entries.
         *
         * @param oldSessionId The old session ID.
    Created: Sun Apr 12 03:50:13 GMT 2026
    - Last Modified: Thu Nov 20 08:40:57 GMT 2025
    - 16.9K bytes
    - Click Count (1)
  10. src/main/java/org/codelibs/fess/helper/SuggestHelper.java

        }
    
        /**
         * Refreshes the suggest index.
         */
        public synchronized void refresh() {
            suggester.refresh();
            if (popularWordHelper != null) {
                popularWordHelper.clearCache();
            }
        }
    
        /**
         * Sets the interval for storing search logs.
         *
         * @param searchStoreInterval The search store interval in minutes.
         */
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Nov 28 16:29:12 GMT 2025
    - 22.3K bytes
    - Click Count (0)
Back to Top