All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.danielflower.apprunner.runners.Killer Maven / Gradle / Ivy

package com.danielflower.apprunner.runners;

import org.apache.commons.exec.ExecuteWatchdog;

public class Killer extends ExecuteWatchdog {
    private Process process;

    public Killer(long timeout) {
        super(timeout);
    }

    @Override
    public synchronized void start(Process processToMonitor) {
        this.process = processToMonitor;
        super.start(processToMonitor);
    }

    @Override
    public synchronized void destroyProcess() {
        process.destroyForcibly();
        super.destroyProcess();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy