|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.enterprise.universal.process.Jps
public class Jps
Run a native process with jps -- get the pid for a running JVM note: dropping in an implementation for jps is not hard.
| Method Summary | |
|---|---|
static int |
getPid(java.lang.String mainClassName)
return the platform-specific process-id of a JVM |
static java.util.Map<java.lang.String,java.lang.Integer> |
getProcessTable()
|
static boolean |
isPid(int apid)
Is this pid owned by a process? |
static void |
main(java.lang.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(java.lang.String[] args)
public static final java.util.Map<java.lang.String,java.lang.Integer> getProcessTable()
public static final int getPid(java.lang.String mainClassName)
mainClassName - The main class - this is how we identify the right JVM
public static final boolean isPid(int apid)
apid - the pid of interest
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||