Return-Path: Delivered-To: apmail-incubator-hama-commits-archive@minotaur.apache.org Received: (qmail 91799 invoked from network); 27 Jun 2010 07:23:32 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 27 Jun 2010 07:23:32 -0000 Received: (qmail 32049 invoked by uid 500); 27 Jun 2010 07:23:32 -0000 Delivered-To: apmail-incubator-hama-commits-archive@incubator.apache.org Received: (qmail 32017 invoked by uid 500); 27 Jun 2010 07:23:30 -0000 Mailing-List: contact hama-commits-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-commits@incubator.apache.org Received: (qmail 32009 invoked by uid 99); 27 Jun 2010 07:23:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 27 Jun 2010 07:23:29 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.130] (HELO eos.apache.org) (140.211.11.130) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 27 Jun 2010 07:23:27 +0000 Received: from eos.apache.org (localhost [127.0.0.1]) by eos.apache.org (Postfix) with ESMTP id 301DE17D1B for ; Sun, 27 Jun 2010 07:23:06 +0000 (GMT) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable From: Apache Wiki To: Apache Wiki Date: Sun, 27 Jun 2010 07:23:05 -0000 Message-ID: <20100627072305.11844.8161@eos.apache.org> Subject: =?utf-8?q?=5BHama_Wiki=5D_Trivial_Update_of_=22Architecture=22_by_Edward_?= =?utf-8?q?J=2E_Yoon?= X-Virus-Checked: Checked by ClamAV on apache.org Dear Wiki user, You have subscribed to a wiki page or wiki category on "Hama Wiki" for chan= ge notification. The "Architecture" page has been changed by Edward J. Yoon. http://wiki.apache.org/hama/Architecture?action=3Ddiff&rev1=3D127&rev2=3D128 -------------------------------------------------- {{{ public class BSPEaxmple { = - class MyBSP extends BSP { + public static class MyBSP extends BSP { - = - public MyBSP(Configuration conf) throws IOException { - super(conf); - // TODO Auto-generated constructor stub - } = @Override public void bsp(BSPPeer bspPeer) throws IOException, KeeperException, @@ -75, +70 @@ // Receive current messages bspPeer.getCurrentMessage(); } + = + @Override + public Configuration getConf() { + return conf; - = + } + = + @Override + public void setConf(Configuration conf) { + this.conf =3D conf; + } = + = } = // BSP job configuration = public void main(String[] args) throws Exception { - BSPJob bsp =3D new BSPJob(new HamaConfiguration()); + BSPJob bsp =3D new BSPJob(new HamaConfiguration(), BSPEaxmple.class); // Set the job name bsp.setJobName("My BSP Job"); bsp.setBspClass(MyBSP.class);