hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brice Arnould (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HADOOP-1380) We should have a util.Subprocess class with utilities for starting subprocesses
Date Fri, 18 Apr 2008 14:54:22 GMT

     [ https://issues.apache.org/jira/browse/HADOOP-1380?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Brice Arnould updated HADOOP-1380:
----------------------------------

    Attachment: SubProcessesManager.patch

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.


Mime
View raw message