Return-Path: X-Original-To: apmail-incubator-mesos-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-mesos-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C5B91D062 for ; Fri, 29 Jun 2012 00:45:21 +0000 (UTC) Received: (qmail 46978 invoked by uid 500); 29 Jun 2012 00:45:21 -0000 Delivered-To: apmail-incubator-mesos-dev-archive@incubator.apache.org Received: (qmail 46959 invoked by uid 500); 29 Jun 2012 00:45:21 -0000 Mailing-List: contact mesos-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: mesos-dev@incubator.apache.org Delivered-To: mailing list mesos-dev@incubator.apache.org Received: (qmail 46944 invoked by uid 99); 29 Jun 2012 00:45:21 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Jun 2012 00:45:21 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id CA8D71C0BC7; Fri, 29 Jun 2012 00:45:20 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============0097227252617096117==" MIME-Version: 1.0 Subject: Re: Review Request: Add APIs for event notification in cgroups. From: "Jie Yu" To: "Benjamin Hindman" , "Vinod Kone" Cc: "Jie Yu" , "mesos" Date: Fri, 29 Jun 2012 00:45:20 -0000 Message-ID: <20120629004520.10352.58127@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org Auto-Submitted: auto-generated Sender: "Jie Yu" X-ReviewGroup: mesos X-ReviewRequest-URL: https://reviews.apache.org/r/5395/ X-Sender: "Jie Yu" References: <20120628194033.10352.33158@reviews.apache.org> In-Reply-To: <20120628194033.10352.33158@reviews.apache.org> Reply-To: "Jie Yu" --===============0097227252617096117== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/5395/#review8734 ----------------------------------------------------------- src/linux/cgroups.cpp Done. src/linux/cgroups.cpp Done. src/linux/cgroups.cpp Done. src/linux/cgroups.cpp Done. src/linux/cgroups.cpp Done. src/linux/cgroups.cpp Done. src/linux/cgroups.cpp Done. - Jie Yu On June 28, 2012, 7:40 p.m., Jie Yu wrote: > = > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/5395/ > ----------------------------------------------------------- > = > (Updated June 28, 2012, 7:40 p.m.) > = > = > Review request for mesos, Benjamin Hindman and Vinod Kone. > = > = > Description > ------- > = > In cgroups, sometimes you want to be notified if some certain events happ= en. For example, users may want to be notified when an out-of-memory event = happens. > = > This patch introduce a function called "listenEvent" which returns an ins= tance of Future so that you can check the status of this future to see whet= her any event happens. > = > This interface is general to all the events in cgroups. > = > = > Diffs > ----- > = > src/linux/cgroups.hpp PRE-CREATION = > src/linux/cgroups.cpp PRE-CREATION = > src/tests/cgroups_tests.cpp PRE-CREATION = > = > Diff: https://reviews.apache.org/r/5395/diff/ > = > = > Testing > ------- > = > On Linux machines, make check. > = > = > Thanks, > = > Jie Yu > = > --===============0097227252617096117==--