Re: Process trees and termination

2014-06-26 Thread Stuart Marks
On 6/26/14 7:23 AM, roger riggs wrote: On 6/26/2014 4:55 AM, Peter Levart wrote: - Will there be a guarantee that ProcessHandle objects returned from factory methods: [...] representing those processes that were started by ProcessBuilder API are actually the same Process objects that were return

Re: Process trees and termination

2014-06-26 Thread roger riggs
Hi Paul, Whether an interface or class, it is desirable that Process have the new capabilities of iterating over children and destroying the tree and other possible additions retrieving information about the process like the process name, start time, etc. If Process had a ProcessHandle then th

Re: Process trees and termination

2014-06-26 Thread roger riggs
Hi Peter, Thanks for the comments... On 6/26/2014 4:55 AM, Peter Levart wrote: On 06/26/2014 12:05 AM, David M. Lloyd wrote: On 06/25/2014 04:52 PM, roger riggs wrote: Hi, The next step for JEP 102, Process API Updates is to provide an API to enumerate the hierarchy of processes and to be ab

Re: Process trees and termination

2014-06-26 Thread roger riggs
Hi David, On 6/25/2014 6:05 PM, David M. Lloyd wrote: On 06/25/2014 04:52 PM, roger riggs wrote: Hi, The next step for JEP 102, Process API Updates is to provide an API to enumerate the hierarchy of processes and to be able to terminate a process tree. This draft javadoc

Re: Process trees and termination

2014-06-26 Thread Paul Benedict
I have a question on the way this is modeled. By introducing a superclass, Process becomes a type of ProcessHandle. That doesn't seem right to me. I expect a Process to have a handle (not be one). Also I think these operations may make more sense as an interface. Cheers, Paul On Wed, Jun 25, 20

Re: Process trees and termination

2014-06-26 Thread Peter Levart
On 06/26/2014 12:05 AM, David M. Lloyd wrote: On 06/25/2014 04:52 PM, roger riggs wrote: Hi, The next step for JEP 102, Process API Updates is to provide an API to enumerate the hierarchy of processes and to be able to terminate a process tree. This draft javadoc

Re: Process trees and termination

2014-06-25 Thread David M. Lloyd
On 06/25/2014 04:52 PM, roger riggs wrote: Hi, The next step for JEP 102, Process API Updates is to provide an API to enumerate the hierarchy of processes and to be able to terminate a process tree. This draft javadoc update [1] includes: - ProcessHandle cl

Process trees and termination

2014-06-25 Thread roger riggs
Hi, The next step for JEP 102, Process API Updates is to provide an API to enumerate the hierarchy of processes and to be able to terminate a process tree. This draft javadoc update [1] includes: - ProcessHandle class to provide handles to processes, their