public class JobEvent extends AbstractEvent
| Constructor and Description |
|---|
JobEvent()
Constructs a new job event object.
|
JobEvent(long timestamp,
JobStatus currentJobStatus,
String optionalMessage)
Constructs a new job event object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
JobStatus |
getCurrentJobStatus()
Returns the current status of the job.
|
String |
getOptionalMessage()
Returns the optional message that is possibly attached to this event.
|
int |
hashCode() |
void |
read(DataInputView in) |
String |
toString() |
void |
write(DataOutputView out) |
getSequenceNumber, getTimestamp, getTimestampString, timestampToStringpublic JobEvent(long timestamp,
JobStatus currentJobStatus,
String optionalMessage)
timestamp - the timestamp of the eventcurrentJobStatus - the current status of the joboptionalMessage - an optional message that shall be attached to this event, possibly nullpublic JobEvent()
public JobStatus getCurrentJobStatus()
public String getOptionalMessage()
null.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 AbstractEventpublic String toString()
toString in class AbstractEventCopyright © 2015 The Apache Software Foundation. All rights reserved.