org.zeroturnaround.process
Class PidProcess

java.lang.Object
  extended by org.zeroturnaround.process.AbstractProcess
      extended by org.zeroturnaround.process.PollingProcess
          extended by org.zeroturnaround.process.PidProcess
All Implemented Interfaces:
SystemProcess
Direct Known Subclasses:
UnixProcess, WindowsProcess

public abstract class PidProcess
extends PollingProcess

Base killer implementation for PID (Process ID) values.


Field Summary
protected  int pid
          The process ID.
 
Fields inherited from class org.zeroturnaround.process.AbstractProcess
log
 
Constructor Summary
PidProcess(int pid)
           
 
Method Summary
 String getDescription()
          Returns the description of the system process represented.
 int getPid()
          Returns the process ID.
 
Methods inherited from class org.zeroturnaround.process.PollingProcess
getIntervalForCheckingFinished, setIntervalForCheckingFinished, waitFor
 
Methods inherited from class org.zeroturnaround.process.AbstractProcess
destroy, destroyForcefully, destroyGracefully, toString, waitFor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.zeroturnaround.process.SystemProcess
isAlive
 

Field Detail

pid

protected final int pid
The process ID.

Constructor Detail

PidProcess

public PidProcess(int pid)
Method Detail

getPid

public int getPid()
Returns the process ID.

Returns:
the process ID.

getDescription

public String getDescription()
Description copied from class: AbstractProcess
Returns the description of the system process represented.

Specified by:
getDescription in class AbstractProcess
Returns:
the description of the system process represented.


Copyright © 2015 ZeroTurnaround. All rights reserved.