|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.enterprise.universal.process.ProcessUtils
public final class ProcessUtils
Includes a somewhat kludgy way to get the pid for "me". Another casualty of the JDK catering to the LEAST common denominator. Some obscure OS might not have a pid! The name returned from the JMX method is like so: 12345@mycomputername where 12345 is the PID
| Method Summary | |
|---|---|
static File |
getExe(String name)
|
static int |
getPid()
Try and find the Process ID of "our" process. |
static Boolean |
isProcessRunning(int aPid)
If we can determine it -- find out if the process that owns the given process id is running. |
static String |
kill(int pid)
Kill the process with the given Process ID. |
static void |
main(String[] args)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void main(String[] args)
public static File getExe(String name)
public static final int getPid()
public static String kill(int pid)
pid -
public static final Boolean isProcessRunning(int aPid)
aPid -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||