Hi,

The recommendations have been applied to the javadoc and the sandbox JDK-8046092-branch.

    http://cr.openjdk.java.net/~rriggs/ph-apidraft/

Some operations on a Process take an extra dereference due to the delegation to ProcessHandle.
For example, getting the cputime or startTime of the process:
    Process p = ...
    Duration d = p.toHandle().info().totalCpuDuration();
    Instant start = p.toHandle().info().startInstant();

As do the listing of children; convenience methods could be introduced with the UOE possibility
but that is a risk only for externally defined Process subtypes.
Developers working with Processes should not have to deal with ProcessHandle
to get information about the processes they spawn.

Comments appreciated, Roger

Reply via email to