public final class RecentJobEvent extends AbstractEvent implements ManagementEvent
RecentJobEvent provides a summary of a job which is either currently running or has been running recently.| Constructor and Description |
|---|
RecentJobEvent()
Constructor for serialization/deserialization.
|
RecentJobEvent(JobID jobID,
String jobName,
JobStatus jobStatus,
boolean isProfilingEnabled,
long submissionTimestamp,
long timestamp)
Constructs a new event.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
JobID |
getJobID()
Returns the ID of the new job.
|
String |
getJobName()
Returns the name of the new job.
|
JobStatus |
getJobStatus()
Returns the last known status of the job.
|
long |
getSubmissionTimestamp()
Returns the time stamp of the job submission.
|
int |
hashCode() |
boolean |
isProfilingAvailable()
Checks if profiling is enabled for the new job.
|
void |
read(DataInputView in) |
void |
write(DataOutputView out) |
getSequenceNumber, getTimestamp, timestampToStringpublic RecentJobEvent(JobID jobID, String jobName, JobStatus jobStatus, boolean isProfilingEnabled, long submissionTimestamp, long timestamp)
jobID - the ID of the new jobjobName - the name of the new jobjobStatus - the status of the jobisProfilingEnabled - true if profiling is enabled for this job, false otherwisesubmissionTimestamp - the time stamp of the job submissiontimestamp - the time stamp of the eventpublic RecentJobEvent()
public JobID getJobID()
public String getJobName()
null if the job has no namepublic boolean isProfilingAvailable()
true if profiling is enabled for this job, false otherwisepublic JobStatus getJobStatus()
public long getSubmissionTimestamp()
public void read(DataInputView in) throws IOException
read in interface IOReadableWritableread in class AbstractEventIOExceptionpublic void write(DataOutputView out) throws IOException
write in interface IOReadableWritablewrite in class AbstractEventIOExceptionpublic boolean equals(Object obj)
equals in class AbstractEventpublic int hashCode()
hashCode in class AbstractEventCopyright © 2014 The Apache Software Foundation. All rights reserved.