Return-Path: Delivered-To: apmail-incubator-hama-commits-archive@minotaur.apache.org Received: (qmail 43157 invoked from network); 3 Jun 2010 08:21:24 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 3 Jun 2010 08:21:24 -0000 Received: (qmail 36368 invoked by uid 500); 3 Jun 2010 08:21:24 -0000 Delivered-To: apmail-incubator-hama-commits-archive@incubator.apache.org Received: (qmail 36331 invoked by uid 500); 3 Jun 2010 08:21:23 -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 36321 invoked by uid 99); 3 Jun 2010 08:21:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Jun 2010 08:21:22 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Jun 2010 08:21:20 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id DA7C82388993; Thu, 3 Jun 2010 08:20:58 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r950911 - in /incubator/hama/trunk/src: java/org/apache/hama/bsp/BSPInterface.java test/org/apache/hama/bsp/UserInterface.java Date: Thu, 03 Jun 2010 08:20:58 -0000 To: hama-commits@incubator.apache.org From: edwardyoon@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20100603082058.DA7C82388993@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: edwardyoon Date: Thu Jun 3 08:20:58 2010 New Revision: 950911 URL: http://svn.apache.org/viewvc?rev=950911&view=rev Log: Trivial change of parameter name Modified: incubator/hama/trunk/src/java/org/apache/hama/bsp/BSPInterface.java incubator/hama/trunk/src/test/org/apache/hama/bsp/UserInterface.java Modified: incubator/hama/trunk/src/java/org/apache/hama/bsp/BSPInterface.java URL: http://svn.apache.org/viewvc/incubator/hama/trunk/src/java/org/apache/hama/bsp/BSPInterface.java?rev=950911&r1=950910&r2=950911&view=diff ============================================================================== --- incubator/hama/trunk/src/java/org/apache/hama/bsp/BSPInterface.java (original) +++ incubator/hama/trunk/src/java/org/apache/hama/bsp/BSPInterface.java Thu Jun 3 08:20:58 2010 @@ -33,12 +33,12 @@ public interface BSPInterface { * Applications can use the {@link org.apache.hama.bsp.BSPPeer} to handle the * communication and synchronization between processors. * - * @param peer + * @param bspPeer * @throws IOException * @throws KeeperException * @throws InterruptedException */ - public void bsp(BSPPeer peer) throws IOException, KeeperException, + public void bsp(BSPPeer bspPeer) throws IOException, KeeperException, InterruptedException; } Modified: incubator/hama/trunk/src/test/org/apache/hama/bsp/UserInterface.java URL: http://svn.apache.org/viewvc/incubator/hama/trunk/src/test/org/apache/hama/bsp/UserInterface.java?rev=950911&r1=950910&r2=950911&view=diff ============================================================================== --- incubator/hama/trunk/src/test/org/apache/hama/bsp/UserInterface.java (original) +++ incubator/hama/trunk/src/test/org/apache/hama/bsp/UserInterface.java Thu Jun 3 08:20:58 2010 @@ -47,7 +47,7 @@ public class UserInterface extends HamaC super(conf); } - public void bsp(BSPPeer peer) throws IOException, KeeperException, + public void bsp(BSPPeer bspPeer) throws IOException, KeeperException, InterruptedException { int in = 0, out = 0; for (int i = 0; i < iterations; i++) { @@ -63,17 +63,17 @@ public class UserInterface extends HamaC byte[] myData = Bytes.toBytes(4.0 * (double) in / (double) iterations); BSPMessage estimate = new BSPMessage(tagName, myData); - peer.send(new InetSocketAddress("localhost", 30000), estimate); - peer.sync(); + bspPeer.send(new InetSocketAddress("localhost", 30000), estimate); + bspPeer.sync(); double pi = 0.0; BSPMessage received; - while ((received = peer.getCurrentMessage()) != null) { + while ((received = bspPeer.getCurrentMessage()) != null) { pi = (pi + Bytes.toDouble(received.getData())) / 2; } if (pi != 0.0) - System.out.println(peer.getServerName() + ": " + pi); + System.out.println(bspPeer.getServerName() + ": " + pi); } }