[ 
https://issues.apache.org/jira/browse/HADOOP-1380?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12590476#action_12590476
 ] 

un_brice edited comment on HADOOP-1380 at 4/18/08 7:54 AM:
----------------------------------------------------------------

My second patch, and it's on a major issue ! \o/
It is a proposition for a class modeled after Runtime. It behaves as an object 
that would be created at VM start and could register new processes. Those 
processes will be destroyed with the VM.

Example:
SubProcessesManager spm = SubProcessesManager.getSubProcessesManager();
spm.manage(myProcess, "myProcessName");

The truth behind this interface is that a monitoring thread is created for each 
runing process. So there is no shared containers, no polling dameon, and every 
operation is in O(1).
On the other hand it is pretty verbose (changing it's name could help). And 
there is no way of getting the list of SubProcesses (appart using the fact that 
they are part of the thread list).
Comments are really welcome :-).

      was (Author: un_brice):
    My second patch, and it's on a major issue ! \o/
It is a proposition for a class modeled after Runtime. It behaves as an object 
that would be created at VM start and could register new processes, which will 
all be destroyed with the VM.

Example:
SubProcessesManager spm = SubProcessesManager.getSubProcessesManager();
spm.manage(myProcess, "myProcessName");

The truth behind this interface is that a monitoring thread is created for each 
runing process. So there is no shared containers, no dameon that would run 
every N seconds, and every operation is in O(1).
On the other hand it is pretty verbose (changing it's name could help). And 
there is no way of getting the list of SubProcesses (appart using the fact that 
they are part of the thread list).
Comments are really welcome :-).
  
> We should have a util.Subprocess class with utilities for starting 
> subprocesses
> -------------------------------------------------------------------------------
>
>                 Key: HADOOP-1380
>                 URL: https://issues.apache.org/jira/browse/HADOOP-1380
>             Project: Hadoop Core
>          Issue Type: New Feature
>          Components: util
>    Affects Versions: 0.12.3
>            Reporter: Owen O'Malley
>            Assignee: Owen O'Malley
>         Attachments: SubProcessesManager.patch
>
>
> I'd like a utility class for launching subprocesses. In particular, I want 
> there to be a list of launched subprocesses and when the jvm is shutdown, a 
> hook will destroy all of the subprocesses. Otherwise, when a task is killed, 
> the subprocesses continue on.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to