Module jls.lang.ProcessHandle
Represents a native process.
Class ProcessHandle
processHandle:getPid () | Returns the Process ID for this process. |
processHandle:isAlive () | Returns true if this process is alive. |
processHandle:destroy () | Destroys this process. |
processHandle:destroyForcibly () | Destroys this process. |
ProcessHandle.of (pid) | Returns a new ProcessHandle with the specified Process ID. |
Class ProcessHandle
A ProcessHandle class.
- processHandle:getPid ()
-
Returns the Process ID for this process.
Returns:
-
the Process ID for this process.
- processHandle:isAlive ()
- Returns true if this process is alive.
- processHandle:destroy ()
- Destroys this process.
- processHandle:destroyForcibly ()
- Destroys this process.
- ProcessHandle.of (pid)
-
Returns a new ProcessHandle with the specified Process ID.
Parameters:
- pid
Returns:
-
a new ProcessHandle with the specified Process ID.