public class DAGFinishedEvent extends Object implements HistoryEvent, SummaryEvent
| Constructor and Description |
|---|
DAGFinishedEvent() |
DAGFinishedEvent(org.apache.tez.dag.records.TezDAGID dagId,
long startTime,
long finishTime,
DAGState state,
String diagnostics,
org.apache.tez.common.counters.TezCounters counters,
String user,
String dagName,
Map<String,Integer> dagTaskStats,
org.apache.hadoop.yarn.api.records.ApplicationAttemptId applicationAttemptId,
org.apache.tez.dag.api.records.DAGProtos.DAGPlan dagPlan) |
| Modifier and Type | Method and Description |
|---|---|
void |
fromProto(RecoveryProtos.DAGFinishedProto proto) |
void |
fromProtoStream(com.google.protobuf.CodedInputStream inputStream) |
void |
fromSummaryProtoStream(RecoveryProtos.SummaryEventProto proto) |
org.apache.hadoop.yarn.api.records.ApplicationAttemptId |
getApplicationAttemptId() |
org.apache.tez.dag.records.TezDAGID |
getDagID() |
String |
getDagName() |
org.apache.tez.dag.api.records.DAGProtos.DAGPlan |
getDAGPlan() |
Map<String,Integer> |
getDagTaskStats() |
String |
getDiagnostics() |
HistoryEventType |
getEventType() |
long |
getFinishTime() |
long |
getStartTime() |
DAGState |
getState() |
org.apache.tez.common.counters.TezCounters |
getTezCounters() |
String |
getUser() |
boolean |
isHistoryEvent() |
boolean |
isRecoveryEvent() |
RecoveryProtos.DAGFinishedProto |
toProto() |
void |
toProtoStream(com.google.protobuf.CodedOutputStream outputStream) |
String |
toString() |
void |
toSummaryProtoStream(OutputStream outputStream) |
boolean |
writeToRecoveryImmediately()
Whether to write this event immediately to the DAG recovery file
Summary events are always written immediately to summary file.
|
public DAGFinishedEvent()
public DAGFinishedEvent(org.apache.tez.dag.records.TezDAGID dagId,
long startTime,
long finishTime,
DAGState state,
String diagnostics,
org.apache.tez.common.counters.TezCounters counters,
String user,
String dagName,
Map<String,Integer> dagTaskStats,
org.apache.hadoop.yarn.api.records.ApplicationAttemptId applicationAttemptId,
org.apache.tez.dag.api.records.DAGProtos.DAGPlan dagPlan)
public HistoryEventType getEventType()
getEventType in interface HistoryEventpublic boolean isRecoveryEvent()
isRecoveryEvent in interface HistoryEventpublic boolean isHistoryEvent()
isHistoryEvent in interface HistoryEventpublic RecoveryProtos.DAGFinishedProto toProto()
public void fromProto(RecoveryProtos.DAGFinishedProto 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 void toSummaryProtoStream(OutputStream outputStream) throws IOException
toSummaryProtoStream in interface SummaryEventIOExceptionpublic void fromSummaryProtoStream(RecoveryProtos.SummaryEventProto proto) throws IOException
fromSummaryProtoStream in interface SummaryEventIOExceptionpublic boolean writeToRecoveryImmediately()
SummaryEventwriteToRecoveryImmediately in interface SummaryEventpublic long getFinishTime()
public DAGState getState()
public org.apache.tez.dag.records.TezDAGID getDagID()
public long getStartTime()
public String getDiagnostics()
public org.apache.tez.common.counters.TezCounters getTezCounters()
public String getUser()
public String getDagName()
public org.apache.hadoop.yarn.api.records.ApplicationAttemptId getApplicationAttemptId()
public org.apache.tez.dag.api.records.DAGProtos.DAGPlan getDAGPlan()
Copyright © 2020 Apache Software Foundation. All rights reserved.