Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 185 for destroy (0.04 sec)

  1. src/main/java/jcifs/util/SecureCredentialStorage.java

        }
    
        /**
         * Check if storage has been destroyed
         */
        private void checkNotDestroyed() {
            if (destroyed) {
                throw new IllegalStateException("SecureCredentialStorage has been destroyed");
            }
        }
    
        @Override
        public void destroy() throws DestroyFailedException {
            if (!destroyed) {
                boolean failedToDestroy = false;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. src/main/java/org/codelibs/fess/thumbnail/impl/CommandGenerator.java

            if (commandDestroyTimeoutStr != null) {
                commandDestroyTimeout = Long.parseLong(commandDestroyTimeoutStr);
            }
        }
    
        /**
         * Destroys the command generator and cleanup resources.
         */
        @Override
        public void destroy() {
            destoryTimer.cancel();
            destoryTimer = null;
        }
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Fri Jul 18 14:34:06 UTC 2025
    - 14.7K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/thumbnail/ThumbnailManagerTest.java

            }
    
            @Override
            public void destroy() {
                // Override to avoid null pointer issues with thread
                generating = false;
            }
        }
    
        @Override
        public void tearDown() throws Exception {
            if (thumbnailManager != null) {
                try {
                    thumbnailManager.destroy();
                } catch (Exception e) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 18.7K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/thumbnail/impl/EmptyGeneratorTest.java

            // Initialize without container
            emptyGenerator = new EmptyGenerator();
    
            // Test that destroy method can be called without error
            emptyGenerator.destroy();
            // Call destroy multiple times to ensure it's safe
            emptyGenerator.destroy();
            emptyGenerator.destroy();
        }
    
        public void test_isAvailable() {
            // Initialize without container
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 6.3K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/helper/ProcessHelper.java

        }
    
        /**
         * Internal method to destroy a specific JobProcess.
         * Handles cleanup of streams, threads, and process termination.
         *
         * @param sessionId unique identifier for the process session
         * @param jobProcess the JobProcess to destroy
         * @return exit code of the destroyed process, or -1 if the process was null or could not be destroyed
         */
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  8. src/test/java/jcifs/util/SecureCredentialStorageTest.java

            byte[] encrypted = storage.encryptCredentials(plaintext);
    
            assertFalse(storage.isDestroyed(), "Storage should not be destroyed initially");
    
            // Destroy the storage - may throw DestroyFailedException if SecretKey doesn't support destroy
            try {
                storage.destroy();
            } catch (DestroyFailedException e) {
                // This is acceptable - not all JVM implementations support destroying SecretKey
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/thumbnail/impl/BaseThumbnailGeneratorTest.java

            assertTrue(generator.isGenerateCalled());
        }
    
        public void test_destroy() {
            // Test destroy method is called correctly
            generator = new TestThumbnailGenerator();
    
            assertFalse(generator.isDestroyCalled());
            generator.destroy();
            assertTrue(generator.isDestroyCalled());
        }
    
        public void test_expandPath() {
            // Test expandPath method
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 6.1K bytes
    - Viewed (0)
  10. 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)
Back to top