Class ProcessKiller

java.lang.Object
java.lang.Thread
ws.schild.jave.process.ProcessKiller
All Implemented Interfaces:
Runnable

public class ProcessKiller extends Thread
A package-private utility to add a shutdown hook to kill ongoing encoding processes at the jvm shutdown.
Author:
Carlo Pelliccia
  • Constructor Details

    • ProcessKiller

      public ProcessKiller(Process process)
      Builds the killer.
      Parameters:
      process - The process to kill.
  • Method Details

    • run

      public void run()
      It kills the supplied process.
      Specified by:
      run in interface Runnable
      Overrides:
      run in class Thread