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 java.lang.Object
implements org.apache.hadoop.io.Writable

A JobProfile tracks job's status.


Constructor Summary
JobProfile()
          Construct an empty JobProfile.
JobProfile(java.lang.String user, BSPJobID jobid, java.lang.String jobFile, java.lang.String name)
          Construct a JobProfile the userid, jobid, job config-file, job-details url and job name.
 
Method Summary
 java.lang.String getJobFile()
          Get the configuration file for the job.
 BSPJobID getJobID()
          Get the job id.
 java.lang.String getJobName()
          Get the user-specified job name.
 java.lang.String getUser()
          Get the user id.
 void readFields(java.io.DataInput in)
           
 void write(java.io.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(java.lang.String user,
                  BSPJobID jobid,
                  java.lang.String jobFile,
                  java.lang.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 java.lang.String getUser()
Get the user id.


getJobID

public BSPJobID getJobID()
Get the job id.


getJobFile

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


getJobName

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


write

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

readFields

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


Copyright © 2008-2011 The Apache Software Foundation. All Rights Reserved.