Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 52 for cleanly (1.84 sec)

  1. src/main/java/org/codelibs/fess/indexer/IndexUpdater.java

                }
            }
        }
    
        /**
         * Cleans up processed access results by updating their status in the data service.
         * This marks the access results as processed and clears the list.
         *
         * @param accessResultList the list of access results to clean up
         * @return the time taken for the cleanup operation in milliseconds, or -1 if no cleanup was needed
         */
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Fri Nov 28 16:29:12 UTC 2025
    - 32.9K bytes
    - Viewed (0)
  2. fess-crawler/src/main/java/org/codelibs/fess/crawler/Crawler.java

                }
            }
        }
    
        /**
         * Cleans up the crawled data for a given session.
         * Deletes URL queue data and access result data, and clears the URL filter.
         * @param sessionId The session ID to clean up.
         */
        public void cleanup(final String sessionId) {
            if (logger.isInfoEnabled()) {
                logger.info("Starting crawler cleanup: sessionId={}", sessionId);
            }
            try {
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Mon Nov 24 03:59:47 UTC 2025
    - 17K bytes
    - Viewed (0)
  3. CLAUDE.md

    // Iterate all
    ds.iterate(sessionId, accessResult -> {
        System.out.println(accessResult.getUrl());
        System.out.println(accessResult.getContent());
    });
    
    // Cleanup
    ds.delete(sessionId);
    ```
    
    ### Resource Cleanup Pattern
    
    ```java
    // Always use try-with-resources for ResponseData
    try (ResponseData responseData = client.execute(requestData)) {
        // Process
    }  // Temp files auto-deleted
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Fri Nov 28 17:31:34 UTC 2025
    - 10.7K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/suggest/SuggesterRefactoringTest.java

            } finally {
                // Cleanup
                try {
                    client.admin().indices().prepareDelete(suggester.getIndex() + "*").execute().actionGet();
                } catch (Exception cleanupError) {
                    // Ignore cleanup errors
                }
                suggester.shutdown();
            }
    
    Registered: Sat Dec 20 13:04:59 UTC 2025
    - Last Modified: Mon Nov 24 03:40:05 UTC 2025
    - 13.4K bytes
    - Viewed (0)
  5. CLAUDE.md

    }
    
    @AfterClass
    public static void afterClass() {
        runner.close();
        runner.clean();
    }
    ```
    
    ### Testing Best Practices
    
    - Minimize `Thread.sleep()` - use only when absolutely necessary
    - For timestamp tests: use minimal delays (50-100ms)
    - Clean only test-specific indices (not `_all` unless needed)
    - Use `runner.refresh()` after index operations
    Registered: Sat Dec 20 13:04:59 UTC 2025
    - Last Modified: Mon Nov 24 03:40:05 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/exec/ThumbnailGenerator.java

            protected int numOfThreads = 1;
    
            /**
             * Whether to run in cleanup mode to remove old thumbnails.
             */
            @Option(name = "-c", aliases = "--cleanup", usage = "Clean-Up mode")
            protected boolean cleanup;
    
            /**
             * Default constructor for command-line options.
             */
            protected Options() {
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Fri Nov 28 16:29:12 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/script/groovy/GroovyEngine.java

     * <p>Thread Safety: This class is thread-safe. Each evaluate() call creates
     * a new GroovyShell instance to ensure thread isolation.</p>
     *
     * <p>Resource Management: GroovyClassLoader instances are properly managed
     * and cleaned up after script evaluation to prevent memory leaks.</p>
     */
    public class GroovyEngine extends AbstractScriptEngine {
        private static final Logger logger = LogManager.getLogger(GroovyEngine.class);
    
        /**
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Fri Nov 28 16:29:12 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/job/GenerateThumbnailJob.java

            this.numOfThreads = numOfThreads;
            return this;
        }
    
        /**
         * Enables cleanup operations for this job.
         *
         * @return this job instance for method chaining
         */
        public GenerateThumbnailJob cleanup() {
            cleanup = true;
            return this;
        }
    
        @Override
        public String execute() {
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Fri Nov 28 16:29:12 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/thumbnail/ThumbnailManager.java

         *
         * @param executorService the executor service for parallel processing
         * @param cleanup whether to run in cleanup mode
         * @return the number of tasks processed
         */
        public int generate(final ExecutorService executorService, final boolean cleanup) {
            final FessConfig fessConfig = ComponentUtil.getFessConfig();
            final List<String> idList = new ArrayList<>();
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Fri Nov 28 16:29:12 UTC 2025
    - 27K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/helper/DataIndexHelper.java

         * monitors their progress, and handles cleanup operations.
         *
         * <p>The method:</p>
         * <ul>
         *   <li>Creates crawler threads for each data configuration</li>
         *   <li>Manages concurrent execution based on thread count limits</li>
         *   <li>Monitors thread completion and handles cleanup</li>
         *   <li>Records execution timing and statistics</li>
         * </ul>
         *
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Fri Nov 28 16:29:12 UTC 2025
    - 19K bytes
    - Viewed (0)
Back to top