hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cutt...@apache.org
Subject svn commit: r506750 - in /lucene/hadoop/trunk: CHANGES.txt src/java/org/apache/hadoop/mapred/Reporter.java
Date Mon, 12 Feb 2007 23:44:25 GMT
Author: cutting
Date: Mon Feb 12 15:44:24 2007
New Revision: 506750

URL: http://svn.apache.org/viewvc?view=rev&rev=506750
Log:
HADOOP-1010.  Add Reporter.NULL.  Contributed by Runping.

Modified:
    lucene/hadoop/trunk/CHANGES.txt
    lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/Reporter.java

Modified: lucene/hadoop/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/CHANGES.txt?view=diff&rev=506750&r1=506749&r2=506750
==============================================================================
--- lucene/hadoop/trunk/CHANGES.txt (original)
+++ lucene/hadoop/trunk/CHANGES.txt Mon Feb 12 15:44:24 2007
@@ -39,6 +39,9 @@
     value of zero mean no timeout.  Also change contrib/streaming to
     disable task timeouts.  (Arun C Murthy via cutting)
 
+12. HADOOP-1010.  Add Reporter.NULL, a Reporter implementation that
+    does nothing.  (Runping Qi via cutting)
+
 
 Release 0.11.1 - 2007-02-09
 

Modified: lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/Reporter.java
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/Reporter.java?view=diff&rev=506750&r1=506749&r2=506750
==============================================================================
--- lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/Reporter.java (original)
+++ lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/Reporter.java Mon Feb 12 15:44:24
2007
@@ -23,9 +23,23 @@
 
 /** Passed to application code to permit alteration of status. */
 public interface Reporter extends Progressable {
-  /** Alter the application's status description.
-   *
-   * @param status a brief description of the current status
+  
+  /**
+   * A constant of Reporter type that does nothing.
+   */
+  public static final Reporter NULL = new Reporter() {
+    public void setStatus(String s) {
+    }
+
+    public void progress() throws IOException {
+    }
+  };
+
+  /**
+   * Alter the application's status description.
+   * 
+   * @param status
+   *          a brief description of the current status
    */
   void setStatus(String status) throws IOException;
 }



Mime
View raw message