Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for addShutdownHook (0.05 sec)

  1. src/main/java/jcifs/context/AbstractCIFSContext.java

        private boolean closed;
    
        /**
         * Default constructor that registers a shutdown hook for cleanup
         */
        public AbstractCIFSContext() {
            Runtime.getRuntime().addShutdownHook(this);
        }
    
        /**
         * @param creds the credentials to use
         * @return a wrapped context with the given credentials
         */
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 4K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/exec/ThumbnailGenerator.java

                            logger.debug("Destroying LaContainer..");
                        }
                        destroyContainer();
                    }
                };
                Runtime.getRuntime().addShutdownHook(shutdownCallback);
    
                systemMonitorTask = TimeoutManager.getInstance()
                        .addTimeoutTarget(new SystemMonitorTarget(), ComponentUtil.getFessConfig().getThumbnailSystemMonitorIntervalAsInteger(),
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/exec/SuggestCreator.java

                            logger.debug("Destroying LaContainer..");
                        }
                        destroyContainer();
                    }
                };
                Runtime.getRuntime().addShutdownHook(shutdownCallback);
    
                systemMonitorTask = TimeoutManager.getInstance()
                        .addTimeoutTarget(new SystemMonitorTarget(), ComponentUtil.getFessConfig().getSuggestSystemMonitorIntervalAsInteger(),
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 11K bytes
    - Viewed (0)
  4. src/main/java/jcifs/util/ResourceManager.java

                return t;
            };
            cleanupExecutor = Executors.newSingleThreadScheduledExecutor(threadFactory);
    
            // Add shutdown hook for cleanup
            Runtime.getRuntime().addShutdownHook(new Thread(this::shutdown, "ResourceManager-Shutdown"));
    
            startCleanupTask();
        }
    
        /**
         * Get the singleton instance
         *
         * @return ResourceManager instance
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 16.2K bytes
    - Viewed (0)
  5. src/main/java/jcifs/audit/SecurityAuditLogger.java

                eventTimings.put(type, new AtomicLong(0));
            }
    
            // Start async logging processor
            startAsyncProcessor();
    
            // Register shutdown hook
            Runtime.getRuntime().addShutdownHook(new Thread(this::shutdown));
        }
    
        private void startAsyncProcessor() {
            logExecutor.submit(() -> {
                while (!shutdown) {
                    try {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 26.6K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/exec/Crawler.java

                    @Override
                    public void run() {
                        destroyContainer();
                    }
    
                };
                Runtime.getRuntime().addShutdownHook(shutdownCallback);
    
                commandThread = new Thread(() -> {
                    try (BufferedReader reader = new BufferedReader(new InputStreamReader(System.in))) {
                        String command;
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 31K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/helper/SystemHelper.java

                return langItems;
            }
        }
    
        /**
         * Adds a shutdown hook.
         *
         * @param hook The shutdown hook to add.
         */
        public void addShutdownHook(final Runnable hook) {
            shutdownHookList.add(hook);
        }
    
        /**
         * Gets the hostname of the local machine.
         *
         * @return The hostname.
         */
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sun Aug 31 08:19:00 UTC 2025
    - 36.6K bytes
    - Viewed (0)
Back to top