|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.mapred.CompletedJobStatusStore
public class CompletedJobStatusStore
Persists and retrieves the Job info of a job into/from DFS.
If the retain time is zero jobs are not persisted. A daemon thread cleans up job info files older than the retain time The retain time can be set with the 'persist.jobstatus.hours' configuration variable (it is in hours).
Field Summary | |
---|---|
static org.apache.commons.logging.Log |
LOG
|
Method Summary | |
---|---|
boolean |
isActive()
Indicates if job status persistency is active or not. |
Counters |
readCounters(String jobId)
This method retrieves Counters information from DFS stored using store method. |
JobProfile |
readJobProfile(String jobId)
This method retrieves JobProfile information from DFS stored using store method. |
JobStatus |
readJobStatus(String jobId)
This method retrieves JobStatus information from DFS stored using store method. |
TaskCompletionEvent[] |
readJobTaskCompletionEvents(String jobId,
int fromEventId,
int maxEvents)
This method retrieves TaskCompletionEvents information from DFS stored using store method. |
void |
run()
|
void |
store(org.apache.hadoop.mapred.JobInProgress job)
Persists a job in DFS. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final org.apache.commons.logging.Log LOG
Method Detail |
---|
public boolean isActive()
public void run()
run
in interface Runnable
public void store(org.apache.hadoop.mapred.JobInProgress job)
job
- the job about to be 'retired'public JobStatus readJobStatus(String jobId)
jobId
- the jobId for which jobStatus is queried
public JobProfile readJobProfile(String jobId)
jobId
- the jobId for which jobProfile is queried
public Counters readCounters(String jobId)
jobId
- the jobId for which Counters is queried
public TaskCompletionEvent[] readJobTaskCompletionEvents(String jobId, int fromEventId, int maxEvents)
jobId
- the jobId for which TaskCompletionEvents is queriedfromEventId
- events offsetmaxEvents
- max number of events
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |