Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 10 for Shutdown (0.11 seconds)

  1. src/main/java/org/codelibs/fess/helper/SystemHelper.java

        protected String filterPathEncoding;
    
        /** An array of supported language codes. */
        protected String[] supportedLanguages;
    
        /** A list of shutdown hooks to be executed on system shutdown. */
        protected List<Runnable> shutdownHookList = new ArrayList<>();
    
        /** The previous state of the cluster. */
        protected AtomicInteger previousClusterState = new AtomicInteger(0);
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 28 06:59:19 GMT 2026
    - 43.2K bytes
    - Click Count (0)
  2. src/main/java/org/codelibs/fess/script/groovy/GroovyEngine.java

                throw (RuntimeException) e.getCause();
            }
        }
    
        /**
         * Closes all cached GroovyClassLoaders and clears the script cache.
         * Called by the DI container on shutdown.
         */
        @PreDestroy
        public void close() {
            scriptCache.invalidateAll();
            scriptCache.cleanUp();
        }
    
        /**
         * Returns the name identifier for this script engine.
    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)
  3. src/main/java/org/codelibs/fess/helper/CoordinatorHelper.java

        /**
         * Stops the poll loop and removes the heartbeat document on shutdown.
         */
        @PreDestroy
        public void destroy() {
            if (pollTask != null) {
                pollTask.cancel();
            }
            try {
                removeHeartbeat();
            } catch (final Exception e) {
                logger.debug("Failed to remove heartbeat on shutdown.", e);
            }
            if (logger.isInfoEnabled()) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 28 06:59:19 GMT 2026
    - 33.3K bytes
    - Click Count (0)
  4. src/main/java/org/codelibs/fess/exec/Crawler.java

            }
        }
    
        /**
         * Destroys the DI container and stops the timeout manager.
         * This method ensures proper cleanup of resources when the crawler shuts down.
         * It's called both during normal shutdown and in error conditions.
         */
        private static void destroyContainer() {
            if (running.getAndSet(false)) {
                TimeoutManager.getInstance().stop();
                if (logger.isDebugEnabled()) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 02:24:08 GMT 2026
    - 32.4K bytes
    - Click Count (0)
  5. src/test/java/org/codelibs/fess/helper/LogNotificationHelperTest.java

                        doneLatch.countDown();
                    }
                });
            }
    
            startLatch.countDown();
            assertTrue(doneLatch.await(30, TimeUnit.SECONDS));
            executor.shutdown();
    
            // Drain remaining
            totalDrained.addAndGet(helper.drainAll().size());
    
            // Total drained should be <= total offered (some may be dropped at capacity)
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 02:24:08 GMT 2026
    - 6.3K bytes
    - Click Count (0)
  6. fastapi/applications.py

                    """
                ),
            ] = None,
            on_shutdown: Annotated[
                Sequence[Callable[[], Any]] | None,
                Doc(
                    """
                    A list of shutdown event handler functions.
    
                    You should instead use the `lifespan` handlers.
    
                    Read more in the
                    [FastAPI docs for `lifespan`](https://fastapi.tiangolo.com/advanced/events/).
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Apr 01 16:16:24 GMT 2026
    - 178.6K bytes
    - Click Count (0)
  7. src/main/java/org/codelibs/fess/exec/ThumbnailGenerator.java

                while (count != 0) {
                    count = ComponentUtil.getThumbnailManager().generate(executorService, options.cleanup);
                    totalCount += count;
                }
                executorService.shutdown();
                executorService.awaitTermination(60, TimeUnit.SECONDS);
            } catch (final InterruptedException e) {
                if (logger.isDebugEnabled()) {
                    logger.debug("Interrupted.", e);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 02:24:08 GMT 2026
    - 10.4K bytes
    - Click Count (0)
  8. .teamcity/scripts/CheckBadMerge.java

            List<String> commits = readCommitsFromStdin();
    
            try {
                for (String commit : commits) {
                    checkCommit(commit);
                }
            } finally {
                THREAD_POOL.shutdown();
            }
        }
    
        private static List<String> readCommitsFromStdin() throws IOException {
            try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in, StandardCharsets.UTF_8))) {
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Mon Mar 30 16:25:09 GMT 2026
    - 9K bytes
    - Click Count (0)
  9. docs/en/docs/release-notes.md

    ## 0.93.0 (2023-03-07)
    
    ### Features
    
    * ✨ Add support for `lifespan` async context managers (superseding `startup` and `shutdown` events). Initial PR [#2944](https://github.com/tiangolo/fastapi/pull/2944) by [@uSpike](https://github.com/uSpike).
    
    Now, instead of using independent `startup` and `shutdown` events, you can define that logic in a single function with `yield` decorated with `@asynccontextmanager` (an async context manager).
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Apr 03 12:07:04 GMT 2026
    - 631K bytes
    - Click Count (0)
  10. RELEASE.md

        not reload checkpoints for evaluation.
    *   `RunConfig` now sets device_filters to restrict how workers and PS can
        communicate. This can speed up training and ensure clean shutdowns in some
        situations. But if you have jobs that require communication between workers,
        you will have to set custom session_options in your `RunConfig`.
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Mon Mar 30 18:31:38 GMT 2026
    - 746.5K bytes
    - Click Count (3)
Back to Top