Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for addShutdownListener (2.9 sec)

  1. src/main/java/org/codelibs/fess/job/JobExecutor.java

        }
    
        /**
         * Adds a shutdown listener to be notified when the executor is shutting down.
         *
         * @param listener the shutdown listener to add
         */
        public void addShutdownListener(final ShutdownListener listener) {
            shutdownListener = listener;
        }
    
        /**
         * Interface for listening to shutdown events.
         */
        public interface ShutdownListener {
            /**
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/job/PythonJob.java

                sessionId = RandomStringUtils.randomAlphabetic(15);
            }
            resultBuf.append("Session Id: ").append(sessionId).append("\n");
            if (jobExecutor != null) {
                jobExecutor.addShutdownListener(() -> ComponentUtil.getProcessHelper().destroyProcess(sessionId));
            }
    
            final TimeoutTask timeoutTask = createTimeoutTask();
            try {
                executePython();
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 8.2K bytes
    - Viewed (0)
Back to top