public class JvmPidDiscoverer extends Object implements PidDiscoverer
| Modifier and Type | Method and Description | 
|---|---|
long | 
getPid()
Returns the PID as a best guess. 
 | 
static JvmPidDiscoverer | 
instance()  | 
public static JvmPidDiscoverer instance()
public long getPid()
TODO: switch to ProcessHandle.current().getPid() for java9 potentially
getPid in interface PidDiscovererRuntimeException - if the pid cannot be determinedCopyright © 2011–2018. All rights reserved.