Search Options

Results per page
Sort
Preferred Languages
Advance

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

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

        public abstract Object execute(String scriptType, String script);
    
        public void shutdown() {
            shutdownListener.onShutdown();
        }
    
        public void addShutdownListener(final ShutdownListener listener) {
            shutdownListener = listener;
        }
    
        public interface ShutdownListener {
            void onShutdown();
        }
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 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: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 5.9K bytes
    - Viewed (0)
Back to top