
org.zeroturnaround.process.PidProcess Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zt-process-killer Show documentation
Show all versions of zt-process-killer Show documentation
A library for stopping external processes from Java.
package org.zeroturnaround.process;
/**
* Base implementation for processes that use PID
(Process ID) values.
*/
public abstract class PidProcess extends PollingProcess {
/**
* The process ID.
*/
protected final int pid;
public PidProcess(int pid) {
this.pid = pid;
}
/**
* @return the process ID.
*/
public int getPid() {
return pid;
}
@Override
public String getDescription() {
return Integer.toString(pid);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy