org.apache.hama.bsp
Class JobProfile

java.lang.Object
  extended by org.apache.hama.bsp.JobProfile
All Implemented Interfaces:
org.apache.hadoop.io.Writable

public class JobProfile
extends Object
implements org.apache.hadoop.io.Writable

A JobProfile tracks job's status.


Constructor Summary
JobProfile()
          Construct an empty JobProfile.
JobProfile(String user, BSPJobID jobid, String jobFile, String name)
          Construct a JobProfile the userid, jobid, job config-file, job-details url and job name.
 
Method Summary
 String getJobFile()
          Get the configuration file for the job.
 BSPJobID getJobID()
          Get the job id.
 String getJobName()
          Get the user-specified job name.
 String getUser()
          Get the user id.
 void readFields(DataInput in)
           
 void write(DataOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JobProfile

public JobProfile()
Construct an empty JobProfile.


JobProfile

public JobProfile(String user,
                  BSPJobID jobid,
                  String jobFile,
                  String name)
Construct a JobProfile the userid, jobid, job config-file, job-details url and job name.

Parameters:
user - userid of the person who submitted the job.
jobid - id of the job.
jobFile - job configuration file.
name - user-specified job name.
Method Detail

getUser

public String getUser()
Get the user id.


getJobID

public BSPJobID getJobID()
Get the job id.


getJobFile

public String getJobFile()
Get the configuration file for the job.


getJobName

public String getJobName()
Get the user-specified job name.


write

public void write(DataOutput out)
           throws IOException
Specified by:
write in interface org.apache.hadoop.io.Writable
Throws:
IOException

readFields

public void readFields(DataInput in)
                throws IOException
Specified by:
readFields in interface org.apache.hadoop.io.Writable
Throws:
IOException


Copyright © 2011 The Apache Software Foundation