|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectp2pMapReduce.mapreduceModule.JobStatus
public class JobStatus
Describes the current status of a job.
Nested Class Summary | |
---|---|
static class |
JobStatus.State
Current state of the job |
Constructor Summary | |
---|---|
JobStatus()
|
|
JobStatus(JobID jobid,
float setupProgress,
float mapProgress,
float reduceProgress,
float cleanupProgress,
JobStatus.State runState,
java.lang.String user,
java.lang.String jobName,
java.lang.String jobFile,
java.lang.String trackingUrl)
Create a job status object for a given jobid. |
Method Summary | |
---|---|
java.lang.Object |
clone()
|
float |
getCleanupProgress()
|
long |
getFinishTime()
Get the finish time of the job. |
java.lang.String |
getHistoryFile()
|
java.lang.String |
getJobFile()
Get the configuration file for the job. |
JobID |
getJobID()
|
java.lang.String |
getJobName()
Get the user-specified job name. |
float |
getMapProgress()
|
float |
getReduceProgress()
|
java.lang.String |
getSchedulingInfo()
Gets the Scheduling information associated to a particular Job. |
float |
getSetupProgress()
|
long |
getStartTime()
|
JobStatus.State |
getState()
|
java.lang.String |
getTrackingUrl()
Get the link to the web-ui for details of the job. |
java.lang.String |
getUsername()
|
boolean |
isJobComplete()
Returns true if the status is for a completed job. |
boolean |
isRetired()
Check whether the job has retired. |
protected void |
setCleanupProgress(float p)
Sets the cleanup progress of this job |
protected void |
setFinishTime(long finishTime)
Set the finish time of the job |
protected void |
setHistoryFile(java.lang.String historyFile)
Set the job history file url for a completed job |
void |
setMapProgress(float p)
Sets the map progress of this job |
void |
setReduceProgress(float p)
Sets the reduce progress of this Job |
protected void |
setRetired()
Set the job retire flag to true. |
protected void |
setSchedulingInfo(java.lang.String schedulingInfo)
Used to set the scheduling information associated to a particular Job. |
protected void |
setSetupProgress(float p)
Sets the setup progress of this job |
protected void |
setStartTime(long startTime)
Set the start time of the job |
protected void |
setState(JobStatus.State state)
Change the current run state of the job. |
protected void |
setTrackingUrl(java.lang.String trackingUrl)
Set the link to the web-ui for details of the job. |
protected void |
setUsername(java.lang.String userName)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JobStatus()
public JobStatus(JobID jobid, float setupProgress, float mapProgress, float reduceProgress, float cleanupProgress, JobStatus.State runState, java.lang.String user, java.lang.String jobName, java.lang.String jobFile, java.lang.String trackingUrl)
jobid
- The jobid of the jobsetupProgress
- The progress made on the setupmapProgress
- The progress made on the mapsreduceProgress
- The progress made on the reducescleanupProgress
- The progress made on the cleanuprunState
- The current state of the jobjp
- Priority of the job.user
- userid of the person who submitted the job.jobName
- user-specified job name.jobFile
- job configuration file.trackingUrl
- link to the web-ui for details of the job.Method Detail |
---|
public void setMapProgress(float p)
p
- The value of map progress to set toprotected void setCleanupProgress(float p)
p
- The value of cleanup progress to set toprotected void setSetupProgress(float p)
p
- The value of setup progress to set topublic void setReduceProgress(float p)
p
- The value of reduce progress to set toprotected void setFinishTime(long finishTime)
finishTime
- The finishTime of the jobprotected void setHistoryFile(java.lang.String historyFile)
protected void setTrackingUrl(java.lang.String trackingUrl)
protected void setRetired()
protected void setState(JobStatus.State state)
protected void setStartTime(long startTime)
startTime
- The startTime of the jobprotected void setUsername(java.lang.String userName)
userName
- The username of the jobprotected void setSchedulingInfo(java.lang.String schedulingInfo)
schedulingInfo
- Scheduling information of the jobpublic float getMapProgress()
public float getCleanupProgress()
public float getSetupProgress()
public float getReduceProgress()
public JobStatus.State getState()
public long getStartTime()
public java.lang.Object clone()
clone
in class java.lang.Object
public JobID getJobID()
public java.lang.String getUsername()
public java.lang.String getSchedulingInfo()
public boolean isJobComplete()
public java.lang.String getJobName()
public java.lang.String getJobFile()
public java.lang.String getTrackingUrl()
public long getFinishTime()
public boolean isRetired()
public java.lang.String getHistoryFile()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |