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

org.zeroturnaround.process.PidProcess Maven / Gradle / Ivy

There is a newer version: 1.11
Show newest version
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