Java 类java.lang.ProcessHandle 实例源码

项目:hibernate-demos    文件:ProcessIdProvider.java   
public ProcessIdDescriptor getPid() {
    long pid = ProcessHandle.current().getPid();
    return new ProcessIdDescriptor( pid, "ProcessHandle" );
}