public class DAGKillRequestEvent extends Object implements HistoryEvent, SummaryEvent
| Constructor and Description |
|---|
DAGKillRequestEvent() |
DAGKillRequestEvent(org.apache.tez.dag.records.TezDAGID dagID,
long killRequestTime,
boolean isSessionStopped) |
| Modifier and Type | Method and Description |
|---|---|
void |
fromProto(RecoveryProtos.DAGKillRequestProto proto) |
void |
fromProtoStream(InputStream inputStream) |
void |
fromSummaryProtoStream(RecoveryProtos.SummaryEventProto proto) |
org.apache.tez.dag.records.TezDAGID |
getDagID() |
HistoryEventType |
getEventType() |
long |
getKillRequestTime() |
boolean |
isHistoryEvent() |
boolean |
isRecoveryEvent() |
boolean |
isSessionStopped() |
RecoveryProtos.DAGKillRequestProto |
toProto() |
void |
toProtoStream(OutputStream outputStream) |
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 DAGKillRequestEvent()
public DAGKillRequestEvent(org.apache.tez.dag.records.TezDAGID dagID,
long killRequestTime,
boolean isSessionStopped)
public HistoryEventType getEventType()
getEventType in interface HistoryEventpublic boolean isRecoveryEvent()
isRecoveryEvent in interface HistoryEventpublic boolean isHistoryEvent()
isHistoryEvent in interface HistoryEventpublic void toProtoStream(OutputStream outputStream) throws IOException
toProtoStream in interface HistoryEventIOExceptionpublic RecoveryProtos.DAGKillRequestProto toProto()
public void fromProtoStream(InputStream inputStream) throws IOException
fromProtoStream in interface HistoryEventIOExceptionpublic void fromProto(RecoveryProtos.DAGKillRequestProto proto)
public 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 org.apache.tez.dag.records.TezDAGID getDagID()
public long getKillRequestTime()
public boolean isSessionStopped()
Copyright © 2016 Apache Software Foundation. All rights reserved.