public class TaskFinishedEvent extends Object implements HistoryEvent
| Constructor and Description |
|---|
TaskFinishedEvent() |
TaskFinishedEvent(org.apache.tez.dag.records.TezTaskID taskID,
String vertexName,
long startTime,
long finishTime,
org.apache.tez.dag.records.TezTaskAttemptID successfulAttemptID,
TaskState state,
String diagnostics,
org.apache.tez.common.counters.TezCounters counters,
int failedAttempts) |
| Modifier and Type | Method and Description |
|---|---|
void |
fromProto(RecoveryProtos.TaskFinishedProto proto) |
void |
fromProtoStream(com.google.protobuf.CodedInputStream inputStream) |
String |
getDiagnostics() |
HistoryEventType |
getEventType() |
long |
getFinishTime() |
int |
getNumFailedAttempts() |
long |
getStartTime() |
TaskState |
getState() |
org.apache.tez.dag.records.TezTaskAttemptID |
getSuccessfulAttemptID() |
org.apache.tez.dag.records.TezTaskID |
getTaskID() |
org.apache.tez.common.counters.TezCounters |
getTezCounters() |
boolean |
isHistoryEvent() |
boolean |
isRecoveryEvent() |
RecoveryProtos.TaskFinishedProto |
toProto() |
void |
toProtoStream(com.google.protobuf.CodedOutputStream outputStream) |
String |
toString() |
public TaskFinishedEvent(org.apache.tez.dag.records.TezTaskID taskID,
String vertexName,
long startTime,
long finishTime,
org.apache.tez.dag.records.TezTaskAttemptID successfulAttemptID,
TaskState state,
String diagnostics,
org.apache.tez.common.counters.TezCounters counters,
int failedAttempts)
public TaskFinishedEvent()
public HistoryEventType getEventType()
getEventType in interface HistoryEventpublic boolean isRecoveryEvent()
isRecoveryEvent in interface HistoryEventpublic boolean isHistoryEvent()
isHistoryEvent in interface HistoryEventpublic RecoveryProtos.TaskFinishedProto toProto()
public void fromProto(RecoveryProtos.TaskFinishedProto proto)
public void toProtoStream(com.google.protobuf.CodedOutputStream outputStream)
throws IOException
toProtoStream in interface HistoryEventIOExceptionpublic void fromProtoStream(com.google.protobuf.CodedInputStream inputStream)
throws IOException
fromProtoStream in interface HistoryEventIOExceptionpublic org.apache.tez.dag.records.TezTaskID getTaskID()
public TaskState getState()
public long getFinishTime()
public org.apache.tez.common.counters.TezCounters getTezCounters()
public org.apache.tez.dag.records.TezTaskAttemptID getSuccessfulAttemptID()
public long getStartTime()
public String getDiagnostics()
public int getNumFailedAttempts()
Copyright © 2019 Apache Software Foundation. All rights reserved.