org.apache.hadoop.mapreduce.server.tasktracker.userlogs
Class JobCompletedEvent
java.lang.Object
org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent
org.apache.hadoop.mapreduce.server.tasktracker.userlogs.JobCompletedEvent
public class JobCompletedEvent
- extends UserLogEvent
This is an UserLogEvent
sent when the job completes
Constructor Summary |
JobCompletedEvent(JobID jobid,
long jobCompletionTime,
int retainHours)
Create the event for job completion. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JobCompletedEvent
public JobCompletedEvent(JobID jobid,
long jobCompletionTime,
int retainHours)
- Create the event for job completion.
- Parameters:
jobid
- The completed JobID
.jobCompletionTime
- The job completion time.retainHours
- The number of hours for which the job logs should be retained
getJobID
public JobID getJobID()
- Get the job id.
- Returns:
- object of
JobID
getJobCompletionTime
public long getJobCompletionTime()
- Get the job completion time-stamp in milli-seconds.
- Returns:
- job completion time.
getRetainHours
public int getRetainHours()
- Get the number of hours for which job logs should be retained.
- Returns:
- retainHours
Copyright © 2009 The Apache Software Foundation