Author: cutting Date: Tue Dec 12 13:46:49 2006 New Revision: 486339 URL: http://svn.apache.org/viewvc?view=rev&rev=486339 Log: HADOOP-618. Make JobSubmissionProtocol public. Contributed by Arun.
Modified: lucene/hadoop/trunk/CHANGES.txt lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/JobProfile.java lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/JobSubmissionProtocol.java Modified: lucene/hadoop/trunk/CHANGES.txt URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/CHANGES.txt?view=diff&rev=486339&r1=486338&r2=486339 ============================================================================== --- lucene/hadoop/trunk/CHANGES.txt (original) +++ lucene/hadoop/trunk/CHANGES.txt Tue Dec 12 13:46:49 2006 @@ -63,6 +63,9 @@ 18. HADOOP-806. Include link to datanodes on front page of namenode web interface. (Raghu Angadi via cutting) +19. HADOOP-618. Make JobSubmissionProtocol public. + (Arun C Murthy via cutting) + Release 0.9.1 - 2006-12-06 Modified: lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/JobProfile.java URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/JobProfile.java?view=diff&rev=486339&r1=486338&r2=486339 ============================================================================== --- lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/JobProfile.java (original) +++ lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/JobProfile.java Tue Dec 12 13:46:49 2006 @@ -28,7 +28,7 @@ * * @author Mike Cafarella **************************************************/ -class JobProfile implements Writable { +public class JobProfile implements Writable { static { // register a ctor WritableFactories.setFactory @@ -45,11 +45,20 @@ String name; /** + * Construct an empty [EMAIL PROTECTED] JobProfile}. */ public JobProfile() { } /** + * Construct a [EMAIL PROTECTED] JobProfile} the userid, jobid, + * job config-file, job-details url and job name. + * + * @param user userid of the person who submitted the job. + * @param jobid id of the job. + * @param jobFile job configuration file. + * @param url link to the web-ui for details of the job. + * @param name user-specified job name. */ public JobProfile(String user, String jobid, String jobFile, String url, String name) { @@ -68,19 +77,21 @@ } /** + * Get the job id. */ public String getJobId() { return jobid; } /** + * Get the configuration file for the job. */ public String getJobFile() { return jobFile; } - /** + * Get the link to the web-ui for details of the job. */ public URL getURL() { try { Modified: lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/JobSubmissionProtocol.java URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/JobSubmissionProtocol.java?view=diff&rev=486339&r1=486338&r2=486339 ============================================================================== --- lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/JobSubmissionProtocol.java (original) +++ lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/JobSubmissionProtocol.java Tue Dec 12 13:46:49 2006 @@ -27,7 +27,7 @@ * JobClient can use these methods to submit a Job for execution, and learn about * the current system status. */ -interface JobSubmissionProtocol extends VersionedProtocol { +public interface JobSubmissionProtocol extends VersionedProtocol { public static final long versionID = 1L; /** * Submit a Job for execution. Returns the latest profile for @@ -57,9 +57,13 @@ public JobStatus getJobStatus(String jobid) throws IOException; /** - * Grab a bunch of info on the tasks that make up the job + * Grab a bunch of info on the map tasks that make up the job */ public TaskReport[] getMapTaskReports(String jobid) throws IOException; + + /** + * Grab a bunch of info on the reduce tasks that make up the job + */ public TaskReport[] getReduceTaskReports(String jobid) throws IOException; /**