|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.util.ProcessTree
public class ProcessTree
Process tree related operations
| Nested Class Summary | |
|---|---|
static class |
ProcessTree.Signal
The constants for the signals. |
| Field Summary | |
|---|---|
static boolean |
isSetsidAvailable
|
| Constructor Summary | |
|---|---|
ProcessTree()
|
|
| Method Summary | |
|---|---|
static boolean |
isAlive(String pid)
Is the process with PID pid still alive? This method assumes that isAlive is called on a pid that was alive not too long ago, and hence assumes no chance of pid-wrapping-around. |
static boolean |
isProcessGroupAlive(String pgrpId)
Is the process group with still alive? This method assumes that isAlive is called on a pid that was alive not too long ago, and hence assumes no chance of pid-wrapping-around. |
static void |
killProcess(String pid,
ProcessTree.Signal signal)
Sends signal to process, forcefully terminating the process. |
static void |
killProcessGroup(String pgrpId,
ProcessTree.Signal signal)
Sends signal to all process belonging to same process group, forcefully terminating the process group. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final boolean isSetsidAvailable
| Constructor Detail |
|---|
public ProcessTree()
| Method Detail |
|---|
public static void killProcess(String pid,
ProcessTree.Signal signal)
pid - process idsignal - the signal number to send
public static void killProcessGroup(String pgrpId,
ProcessTree.Signal signal)
pgrpId - process group idsignal - the signal number to sendpublic static boolean isAlive(String pid)
pid - pid of the process to check.
public static boolean isProcessGroupAlive(String pgrpId)
pgrpId - process group id
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||