Package org.codelibs.fess.thumbnail.impl
Class CommandGenerator.ProcessDestroyer
java.lang.Object
java.util.TimerTask
org.codelibs.fess.thumbnail.impl.CommandGenerator.ProcessDestroyer
- All Implemented Interfaces:
Runnable
- Enclosing class:
CommandGenerator
Timer task for destroying processes that exceed their timeout.
Handles graceful and forceful termination of thumbnail generation processes.
-
Constructor Summary
ConstructorsConstructorDescriptionProcessDestroyer(Process p, InputStreamThread ist, long timeout) Constructor for ProcessDestroyer. -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks if the destroyer has been executed.voidrun()Runs the process destroyer task to terminate the process.Methods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
-
Constructor Details
-
ProcessDestroyer
Constructor for ProcessDestroyer.- Parameters:
p- The process to monitor.ist- The input stream thread.timeout- The destruction timeout.
-
-
Method Details