Return-Path: X-Original-To: apmail-incubator-hama-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-hama-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 57E35C613 for ; Thu, 17 May 2012 14:30:54 +0000 (UTC) Received: (qmail 46143 invoked by uid 500); 17 May 2012 14:30:54 -0000 Delivered-To: apmail-incubator-hama-commits-archive@incubator.apache.org Received: (qmail 46101 invoked by uid 500); 17 May 2012 14:30:54 -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 46091 invoked by uid 99); 17 May 2012 14:30:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 May 2012 14:30:54 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.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, 17 May 2012 14:30:52 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id CC16C238896F; Thu, 17 May 2012 14:30:32 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1339614 - /incubator/hama/trunk/core/src/main/java/org/apache/hama/bsp/LocalBSPRunner.java Date: Thu, 17 May 2012 14:30:32 -0000 To: hama-commits@incubator.apache.org From: tommaso@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120517143032.CC16C238896F@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: tommaso Date: Thu May 17 14:30:32 2012 New Revision: 1339614 URL: http://svn.apache.org/viewvc?rev=1339614&view=rev Log: [HAMA-572] - fixing access level and adding final modifiers where applicable in LocalBSPRunner Modified: incubator/hama/trunk/core/src/main/java/org/apache/hama/bsp/LocalBSPRunner.java Modified: incubator/hama/trunk/core/src/main/java/org/apache/hama/bsp/LocalBSPRunner.java URL: http://svn.apache.org/viewvc/incubator/hama/trunk/core/src/main/java/org/apache/hama/bsp/LocalBSPRunner.java?rev=1339614&r1=1339613&r2=1339614&view=diff ============================================================================== --- incubator/hama/trunk/core/src/main/java/org/apache/hama/bsp/LocalBSPRunner.java (original) +++ incubator/hama/trunk/core/src/main/java/org/apache/hama/bsp/LocalBSPRunner.java Thu May 17 14:30:32 2012 @@ -61,29 +61,29 @@ import org.apache.hama.util.BSPNetUtils; * running BSP's. */ public class LocalBSPRunner implements JobSubmissionProtocol { - public static final Log LOG = LogFactory.getLog(LocalBSPRunner.class); + private static final Log LOG = LogFactory.getLog(LocalBSPRunner.class); private static final String IDENTIFIER = "localrunner"; private static String WORKING_DIR = "/tmp/hama-bsp/"; private volatile ThreadPoolExecutor threadPool; @SuppressWarnings("rawtypes") - protected static final LinkedList> futureList = new LinkedList>(); + private static final LinkedList> futureList = new LinkedList>(); - protected String jobFile; - protected String jobName; + private String jobFile; + private String jobName; - protected JobStatus currentJobStatus; + private JobStatus currentJobStatus; - protected Configuration conf; - protected FileSystem fs; + private final Configuration conf; + private FileSystem fs; private static volatile long superStepCount = 0L; private static String[] peerNames; private final Counters globalCounters = new Counters(); // this is used for not-input driven job - private int maxTasks; + private final int maxTasks; public LocalBSPRunner(Configuration conf) throws IOException { super(); @@ -201,7 +201,6 @@ public class LocalBSPRunner implements J @Override public void killJob(BSPJobID jobid) throws IOException { - return; } @Override @@ -214,11 +213,11 @@ public class LocalBSPRunner implements J @SuppressWarnings({ "rawtypes" }) static class BSPRunner implements Callable { - private Configuration conf; - private BSPJob job; - private int id; - private BSP bsp; - private RawSplit[] splits; + private final Configuration conf; + private final BSPJob job; + private final int id; + private final BSP bsp; + private final RawSplit[] splits; private BSPPeerImpl peer; public BSPRunner(Configuration conf, BSPJob job, int id, RawSplit[] splits) { @@ -293,7 +292,7 @@ public class LocalBSPRunner implements J // this thread observes the status of the runners. class ThreadObserver implements Runnable { - JobStatus status; + final JobStatus status; public ThreadObserver(JobStatus currentJobStatus) { this.status = currentJobStatus;