public class Jps extends Object
Modifier and Type | Method and Description |
---|---|
static List<Integer> |
getPid(String mainClassName)
return the platform-specific process-id of a JVM
|
static Map<Integer,String> |
getProcessTable() |
static boolean |
isPid(int apid)
Is this pid owned by a process?
|
static void |
main(String[] args) |
public static void main(String[] args)
public static List<Integer> getPid(String mainClassName)
mainClassName
- The main class - this is how we identify the right JVM.
You can pass in a fully-qualified name or just the classname.
E.g. com.sun.enterprise.glassfish.bootstrap.ASMain and ASMain work the same.public static final boolean isPid(int apid)
apid
- the pid of interestCopyright © 2019. All rights reserved.