Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for destroy (0.03 sec)

  1. fess-crawler/src/main/java/org/codelibs/fess/crawler/pool/CrawlerPooledObjectFactory.java

        }
    
        /**
         * Destroys a pooled object and notifies the destroy listener if set.
         * @param p The pooled object to destroy
         * @throws Exception if destruction fails
         */
        @Override
        public void destroyObject(final PooledObject<T> p) throws Exception {
            if (onDestroyListener != null) {
                onDestroyListener.onDestroy(p);
            }
        }
    
        /**
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 3.9K bytes
    - Viewed (0)
  2. fess-crawler/src/test/java/org/codelibs/fess/crawler/pool/CrawlerPooledObjectFactoryTest.java

            private final int id;
            private boolean destroyed = false;
    
            public TestComponent() {
                this.id = instanceCounter.incrementAndGet();
            }
    
            public int getId() {
                return id;
            }
    
            public boolean isDestroyed() {
                return destroyed;
            }
    
            public void destroy() {
                this.destroyed = true;
            }
    
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Wed Sep 03 14:42:53 UTC 2025
    - 19.3K bytes
    - Viewed (0)
  3. fess-crawler-lasta/src/main/java/org/codelibs/fess/crawler/container/LastaCrawlerContainer.java

        }
    
        @Override
        public boolean available() {
            return SingletonLaContainerFactory.hasContainer();
        }
    
        @Override
        public void destroy() {
            SingletonLaContainerFactory.destroy();
        }
    
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 1.4K bytes
    - Viewed (0)
  4. fess-crawler/src/main/java/org/codelibs/fess/crawler/container/CrawlerContainer.java

         */
        boolean available();
    
        /**
         * Cleans up resources and performs any necessary finalization tasks
         * before the object is destroyed. This method should be called to
         * ensure that all resources are properly released.
         */
        void destroy();
    
        /**
         * Initializes the CrawlerContainer by setting the system property
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sat Mar 15 06:52:00 UTC 2025
    - 2.6K bytes
    - Viewed (0)
  5. fess-crawler/src/main/java/org/codelibs/fess/crawler/container/StandardCrawlerContainer.java

            protected T instance;
    
            /**
             * The destroyer function to be called when the component is destroyed.
             */
            protected Consumer<T> destroyer;
    
            /**
             * Creates a new ComponentHolder with the specified instance and destroyer.
             * @param instance the component instance to hold
             * @param destroyer the destroyer function for cleanup (can be null)
             */
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 14.3K bytes
    - Viewed (0)
  6. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/JodExtractor.java

                logger.debug(officeManager.getClass().getSimpleName() + " is started.");
            }
        }
    
        /**
         * Destroys the extractor by stopping the office manager.
         *
         * @throws CrawlerSystemException if the office manager fails to stop
         */
        @PreDestroy
        public void destroy() {
            try {
                officeManager.stop();
            } catch (final OfficeException e) {
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  7. fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/ApiExtractorTest.java

            extractor.setUrl("http://127.0.0.1:" + port + "/");
            extractor.init();
        }
    
        @Override
        protected void tearDown() throws Exception {
            server.stop();
            extractor.destroy();
    
            super.tearDown();
        }
    
        public void test_getText() throws Exception {
            final String testStr = "testdata";
            final String content = ATTR_NAME + "," + testStr;
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sat Mar 15 06:52:00 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  8. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/CommandExtractor.java

                        mt.interrupt();
                    } catch (final Exception e) {}
                }
                if (currentProcess != null) {
                    try {
                        currentProcess.destroy();
                    } catch (final Exception e) {}
                }
                currentProcess = null;
    
            }
        }
    
        /**
         * @param command2
         * @param params
         * @return
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 16K bytes
    - Viewed (0)
  9. fess-crawler-opensearch/src/main/java/org/codelibs/fess/crawler/client/FesenClient.java

                    retryCount++;
                }
            }
        }
    
        /**
         * Destroys the client and closes connections.
         */
        @PreDestroy
        public void destroy() {
            if (client != null) {
                try {
                    client.close();
                } catch (final OpenSearchException e) {
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Aug 31 05:32:52 UTC 2025
    - 25.3K bytes
    - Viewed (0)
  10. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/ApiExtractor.java

                    }
                }
            }
    
            httpClient = closeableHttpClient;
        }
    
        /**
         * Destroys the HTTP client.
         */
        @PreDestroy
        public void destroy() {
            if (httpClient != null) {
                try {
                    httpClient.close();
                } catch (final IOException e) {
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Thu Aug 07 02:55:08 UTC 2025
    - 12.2K bytes
    - Viewed (0)
Back to top