Package org.zeroturnaround.process
Class PidProcess
java.lang.Object
org.zeroturnaround.process.AbstractProcess
org.zeroturnaround.process.PollingProcess
org.zeroturnaround.process.PidProcess
- All Implemented Interfaces:
SystemProcess
- Direct Known Subclasses:
UnixProcess,WindowsProcess
Base implementation for processes that use
PID (Process ID) values.-
Field Summary
FieldsFields inherited from class org.zeroturnaround.process.AbstractProcess
log -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.zeroturnaround.process.PollingProcess
getIntervalForCheckingFinished, setIntervalForCheckingFinished, waitForMethods inherited from class org.zeroturnaround.process.AbstractProcess
destroy, destroyForcefully, destroyGracefully, toString, waitForMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.zeroturnaround.process.SystemProcess
isAlive
-
Field Details
-
pid
protected final int pidThe process ID.
-
-
Constructor Details
-
PidProcess
public PidProcess(int pid)
-
-
Method Details
-
getPid
public int getPid()- Returns:
- the process ID.
-
getDescription
- Specified by:
getDescriptionin classAbstractProcess- Returns:
- the description of the system process.
-