Class CommandGenerator.ProcessDestroyer

java.lang.Object
java.util.TimerTask
org.codelibs.fess.thumbnail.impl.CommandGenerator.ProcessDestroyer
All Implemented Interfaces:
Runnable
Enclosing class:
CommandGenerator

protected static class CommandGenerator.ProcessDestroyer extends TimerTask
Timer task for destroying processes that exceed their timeout. Handles graceful and forceful termination of thumbnail generation processes.
  • Constructor Details

    • ProcessDestroyer

      public ProcessDestroyer(Process p, InputStreamThread ist, long timeout)
      Constructor for ProcessDestroyer.
      Parameters:
      p - The process to monitor.
      ist - The input stream thread.
      timeout - The destruction timeout.
  • Method Details

    • run

      public void run()
      Runs the process destroyer task to terminate the process.
      Specified by:
      run in interface Runnable
      Specified by:
      run in class TimerTask
    • isExecuted

      public boolean isExecuted()
      Checks if the destroyer has been executed.
      Returns:
      True if executed, false otherwise.