public class VertexEvent extends AbstractEvent
| Constructor and Description |
|---|
VertexEvent()
Constructs a new vertex event object.
|
VertexEvent(long timestamp,
JobVertexID jobVertexID,
String jobVertexName,
int totalNumberOfSubtasks,
int indexOfSubtask,
ExecutionState currentExecutionState,
String description)
Constructs a new vertex event object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
ExecutionState |
getCurrentExecutionState()
Returns the current execution state of the subtask this event
belongs to.
|
String |
getDescription()
Returns an optional description which may be attached to this event.
|
int |
getIndexOfSubtask()
Returns the index of the subtask that this event belongs to.
|
JobVertexID |
getJobVertexID()
Returns the ID of the job vertex this event belongs to.
|
String |
getJobVertexName()
Returns the name of the job vertex this event belongs to.
|
int |
getTotalNumberOfSubtasks()
Returns the number of subtasks the corresponding vertex has been
split into at runtime.
|
int |
hashCode() |
void |
read(DataInputView in) |
String |
toString() |
void |
write(DataOutputView out) |
getSequenceNumber, getTimestamp, timestampToStringpublic VertexEvent(long timestamp,
JobVertexID jobVertexID,
String jobVertexName,
int totalNumberOfSubtasks,
int indexOfSubtask,
ExecutionState currentExecutionState,
String description)
timestamp - the timestamp of the eventjobVertexID - the ID of the job vertex this event belongs tojobVertexName - the name of the job vertex this event belongs tototalNumberOfSubtasks - the number of subtasks the corresponding vertex has been split into at runtimeindexOfSubtask - the index of the subtask that this event belongs tocurrentExecutionState - the current execution state of the subtask this event belongs todescription - an optional descriptionpublic VertexEvent()
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 JobVertexID getJobVertexID()
public String getJobVertexName()
nullpublic int getTotalNumberOfSubtasks()
public int getIndexOfSubtask()
public ExecutionState getCurrentExecutionState()
public String getDescription()
null.public boolean equals(Object obj)
equals in class AbstractEventpublic int hashCode()
hashCode in class AbstractEventCopyright © 2014 The Apache Software Foundation. All rights reserved.