org.apache.tez.dag.history.events
Class VertexFinishedEvent
java.lang.Object
org.apache.tez.dag.history.events.VertexFinishedEvent
- All Implemented Interfaces:
- HistoryEvent, SummaryEvent
public class VertexFinishedEvent
- extends Object
- implements HistoryEvent, SummaryEvent
|
Constructor Summary |
VertexFinishedEvent()
|
VertexFinishedEvent(org.apache.tez.dag.records.TezVertexID vertexId,
String vertexName,
long initRequestedTime,
long initedTime,
long startRequestedTime,
long startedTime,
long finishTime,
VertexState state,
String diagnostics,
org.apache.tez.common.counters.TezCounters counters,
VertexStats vertexStats)
|
VertexFinishedEvent
public VertexFinishedEvent(org.apache.tez.dag.records.TezVertexID vertexId,
String vertexName,
long initRequestedTime,
long initedTime,
long startRequestedTime,
long startedTime,
long finishTime,
VertexState state,
String diagnostics,
org.apache.tez.common.counters.TezCounters counters,
VertexStats vertexStats)
VertexFinishedEvent
public VertexFinishedEvent()
getEventType
public HistoryEventType getEventType()
- Specified by:
getEventType in interface HistoryEvent
convertToATSJSON
public org.codehaus.jettison.json.JSONObject convertToATSJSON()
throws org.codehaus.jettison.json.JSONException
- Specified by:
convertToATSJSON in interface HistoryEvent
- Throws:
org.codehaus.jettison.json.JSONException
isRecoveryEvent
public boolean isRecoveryEvent()
- Specified by:
isRecoveryEvent in interface HistoryEvent
isHistoryEvent
public boolean isHistoryEvent()
- Specified by:
isHistoryEvent in interface HistoryEvent
toProto
public RecoveryProtos.VertexFinishedProto toProto()
fromProto
public void fromProto(RecoveryProtos.VertexFinishedProto proto)
toProtoStream
public void toProtoStream(OutputStream outputStream)
throws IOException
- Specified by:
toProtoStream in interface HistoryEvent
- Throws:
IOException
fromProtoStream
public void fromProtoStream(InputStream inputStream)
throws IOException
- Specified by:
fromProtoStream in interface HistoryEvent
- Throws:
IOException
toString
public String toString()
- Overrides:
toString in class Object
getVertexID
public org.apache.tez.dag.records.TezVertexID getVertexID()
getState
public VertexState getState()
getFinishTime
public long getFinishTime()
getDiagnostics
public String getDiagnostics()
getTezCounters
public org.apache.tez.common.counters.TezCounters getTezCounters()
toSummaryProtoStream
public void toSummaryProtoStream(OutputStream outputStream)
throws IOException
- Specified by:
toSummaryProtoStream in interface SummaryEvent
- Throws:
IOException
fromSummaryProtoStream
public void fromSummaryProtoStream(RecoveryProtos.SummaryEventProto proto)
throws IOException
- Specified by:
fromSummaryProtoStream in interface SummaryEvent
- Throws:
IOException
writeToRecoveryImmediately
public boolean writeToRecoveryImmediately()
- Description copied from interface:
SummaryEvent
- Whether to write this event immediately to the DAG recovery file
Summary events are always written immediately to summary file.
- Specified by:
writeToRecoveryImmediately in interface SummaryEvent
- Returns:
isFromSummary
public boolean isFromSummary()
Copyright © 2014 Apache Software Foundation. All rights reserved.