| java.lang.Object tide.execute.JProcess
JProcess | public class JProcess (Code) | | Wraps potentially processes with JVM instrumentation availability.
JVM6 or JVM5 started with -Dcom.sun.management.jmxremote, allows
connection (localhost without password) with jconsole.
A JProcess may also wrap a normal process, without pid (no connect possible)...
be careful, if user name contains "_" char, pid cannot be listed.
|
externalNotTide | public boolean externalNotTide(Code) | | |
guessedJMXMode | public boolean guessedJMXMode(Code) | | |
getAllRunningJavaProcesses | public static List<JProcess> getAllRunningJavaProcesses(File jps)(Code) | | Invokes jps and return the actual running java processes with their pid and main class
always complete. on errors, return an empty list !
|
recognizeRunningProcess | public static JProcess recognizeRunningProcess(Process proc, String javaName, boolean jmxMode, List<JProcess> processesBefore, File jpsTool)(Code) | | TODO: also look at arguments, not only at javaName
always completes, also on errors.
If not found with jps Returns a dummy JProcess with associated process and name.
|
|
|