You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@reef.apache.org by "Yunseong Lee (JIRA)" <ji...@apache.org> on 2016/02/25 07:31:19 UTC
[jira] [Updated] (REEF-1020) Improve OSUtils to support Windows and
Mac
[ https://issues.apache.org/jira/browse/REEF-1020?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Yunseong Lee updated REEF-1020:
-------------------------------
Fix Version/s: 0.14
> Improve OSUtils to support Windows and Mac
> ------------------------------------------
>
> Key: REEF-1020
> URL: https://issues.apache.org/jira/browse/REEF-1020
> Project: REEF
> Issue Type: Improvement
> Components: REEF-Common
> Reporter: Dongjoon Hyun
> Assignee: Dongjoon Hyun
> Fix For: 0.14
>
>
> As of today, _OSUtils_ in reef-common module only supports *Linux* in the following functions.
> * `getPID()`
> * `kill()`
> This issue improves _OSUtils_ to support *Windows* and *Mac* by implementing the following items.
> * For `OSUtils.isLinux`, it returns *true* for both Linux and Mac. This enables `getPID()` and `kill()` on Mac.
> * For `OSUtils.getPID()`, it uses `powershell -Command wmic process where processid=$pid get parentprocessid` to get pid in Windows.
> * For `OSUtils.kill()`, it uses `taskkill /pid` for Windows.
> * Add OSUtilsTest.java
> Also, this issue fixes the followings.
> * Add *No-Op* `ActiveContextHandler` to EvaluatorFailureDuringAlarmDriver. `DefaultContextActiveHandler` suicides by closing itself.
> * `RunnableProcess` cleans up both linux and windows.
> * `RunnableProcess` catches `NumberFormatException` from `RunnableProcess.readPID()`.
> * Bind `PIDStoreStartHandler` to `LocalRuntimeConfiguration`.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)