From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20672 invoked by alias); 24 Jan 2008 14:52:56 -0000 Received: (qmail 20665 invoked by uid 22791); 24 Jan 2008 14:52:56 -0000 X-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_20,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 24 Jan 2008 14:52:38 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id m0OEqboA015573 for ; Thu, 24 Jan 2008 09:52:37 -0500 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [10.11.255.20]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m0OEqa7S015533; Thu, 24 Jan 2008 09:52:36 -0500 Received: from localhost.localdomain (sebastian-int.corp.redhat.com [172.16.52.221]) by pobox.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m0OEqZKK014753; Thu, 24 Jan 2008 09:52:36 -0500 Message-ID: <4798A624.4030605@redhat.com> Date: Thu, 24 Jan 2008 14:52:00 -0000 From: Andrew Cagney User-Agent: Thunderbird 2.0.0.9 (X11/20071115) MIME-Version: 1.0 To: Sami Wagiaalla , Phil Muldoon CC: frysk Subject: finishing Host.requestRefresh Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.58 on 172.16.52.254 X-IsSubscribed: yes Mailing-List: contact frysk-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: frysk-owner@sourceware.org X-SW-Source: 2008-q1/txt/msg00042.txt.bz2 Hi, I've been looking at Host.requestRefresh which was one of those "we need to re-think" interfaces. Looking at how it is used by the gnome code - to maintain a process list that is refreshed occasionally - I'd like to propose the following as the interface: the request: Host.requestRefresh(Set myCurrentProcessList, Set myCurrentDaemonList, HostRefreshBuilder builder) the response (builder): HostRefreshBuilder.build(Set addedProcesses, Set deletedProcesses, Set addedDaemons); -- if a daemon is deleted it is in deletedProcesses so deletedDaemons would be redundant :-) this way the gnome process pane is given all update information in a single call, letting it then locally, determine if/how to apply the updates. Andrew