Return-Path: X-Original-To: apmail-incubator-hama-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-hama-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 393669CCF for ; Fri, 3 Feb 2012 13:53:52 +0000 (UTC) Received: (qmail 31079 invoked by uid 500); 3 Feb 2012 13:53:52 -0000 Delivered-To: apmail-incubator-hama-dev-archive@incubator.apache.org Received: (qmail 31031 invoked by uid 500); 3 Feb 2012 13:53:51 -0000 Mailing-List: contact hama-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hama-dev@incubator.apache.org Delivered-To: mailing list hama-dev@incubator.apache.org Received: (qmail 31023 invoked by uid 99); 3 Feb 2012 13:53:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Feb 2012 13:53:51 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of tommaso.teofili@gmail.com designates 209.85.160.47 as permitted sender) Received: from [209.85.160.47] (HELO mail-pw0-f47.google.com) (209.85.160.47) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Feb 2012 13:53:46 +0000 Received: by pbbb4 with SMTP id b4so2596724pbb.6 for ; Fri, 03 Feb 2012 05:53:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=k71XKoXcioJ+svPNas0XII/U55JjleKDJb5cv0CPP+U=; b=YnQd76dYtwNC0S+kXVmoz9/iJSp1SvXsgv1FEK9wXZhBgurYbwTXeG5KxGuPl6A15M eL468szm35yNk28m/B3G/J2OB193urvxA4pN3vIbkvrNk0IPqJQ3hxWPUt2mnaXDAAgO /8V05upULmSb5mizK5v/p+cFxG09xu4OZwVro= Received: by 10.68.116.234 with SMTP id jz10mr17687107pbb.84.1328277206150; Fri, 03 Feb 2012 05:53:26 -0800 (PST) MIME-Version: 1.0 Received: by 10.142.154.9 with HTTP; Fri, 3 Feb 2012 05:52:46 -0800 (PST) In-Reply-To: References: From: Tommaso Teofili Date: Fri, 3 Feb 2012 14:52:46 +0100 Message-ID: Subject: Re: Messaging Interface To: hama-dev@incubator.apache.org Content-Type: multipart/alternative; boundary=e89a8ffba249092cf804b80fa373 --e89a8ffba249092cf804b80fa373 Content-Type: text/plain; charset=ISO-8859-1 +1, nice API improvement. Tommaso 2012/2/3 Thomas Jungblut > Yes, this sounds to me reasonable as well. > Other opinions? Otherwise I am filing a jira for that. > > 2012/2/3 Edward J. Yoon > > > I think, we may want to change like > Writable>. > > > > On Fri, Feb 3, 2012 at 9:45 AM, Edward J. Yoon > > wrote: > > > I prefer the Writable. > > > > > > On Thu, Feb 2, 2012 at 8:49 PM, Thomas Jungblut > > > wrote: > > >> Hi all, > > >> > > >> I refactored the messaging in 0.3.0 and changed this from an inteface > > to an > > >> abstract base class. > > >> Currently it is fine, but I feel that the user is too restricted in > > using > > >> messages. > > >> You have this strict structure of tag and data. I think we should > widen > > the > > >> messages to just Messagable . > > >> If we want to have the freedom to add additional things, we should > > extend > > >> Messagable from Writable and use this for it. > > >> > > >> So send may look like this: > > >> > > >> public final void send(String peerName, Messagable msg) > > >> > > >> > > >> and getCurrentMessage: > > >> > > >> public final Messagable getCurrentMessage() > > >> > > >> > > >> However, I am not really happy that we return Messagable (requires > > casting > > >> and stuff). > > >> For the usecases of specific tagging we can add the getTag() method to > > the > > >> Messagable interface. > > >> What type should this be then? I mean, String would be quite a large > > >> overhead. Integer might not be useful. > > >> > > >> Or should we widen this to Writable instead? So you can send things > > you've > > >> read from sequencefiles directly to other tasks. > > >> > > >> What do you think? I am still not aware of how it should look like. Or > > are > > >> you satisfied with the current messaging? > > >> > > >> -- > > >> Thomas Jungblut > > >> Berlin > > > > > > > > > > > > -- > > > Best Regards, Edward J. Yoon > > > @eddieyoon > > > > > > > > -- > > Best Regards, Edward J. Yoon > > @eddieyoon > > > > > > -- > Thomas Jungblut > Berlin > --e89a8ffba249092cf804b80fa373--