org.apache.tez.dag.history.events
Class DAGFinishedEvent

java.lang.Object
  extended by org.apache.tez.dag.history.events.DAGFinishedEvent
All Implemented Interfaces:
HistoryEvent, SummaryEvent

public class DAGFinishedEvent
extends Object
implements HistoryEvent, SummaryEvent


Constructor Summary
DAGFinishedEvent()
           
DAGFinishedEvent(org.apache.tez.dag.records.TezDAGID dagId, long startTime, long finishTime, DAGState state, String diagnostics, org.apache.tez.common.counters.TezCounters counters)
           
 
Method Summary
 org.codehaus.jettison.json.JSONObject convertToATSJSON()
           
 void fromProto(RecoveryProtos.DAGFinishedProto proto)
           
 void fromProtoStream(InputStream inputStream)
           
 void fromSummaryProtoStream(RecoveryProtos.SummaryEventProto proto)
           
 org.apache.tez.dag.records.TezDAGID getDagID()
           
 String getDiagnostics()
           
 HistoryEventType getEventType()
           
 long getFinishTime()
           
 long getStartTime()
           
 DAGState getState()
           
 org.apache.tez.common.counters.TezCounters getTezCounters()
           
 boolean isHistoryEvent()
           
 boolean isRecoveryEvent()
           
 RecoveryProtos.DAGFinishedProto toProto()
           
 void toProtoStream(OutputStream 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DAGFinishedEvent

public DAGFinishedEvent()

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)
Method Detail

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.DAGFinishedProto toProto()

fromProto

public void fromProto(RecoveryProtos.DAGFinishedProto 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

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:

getFinishTime

public long getFinishTime()

getState

public DAGState getState()

getDagID

public org.apache.tez.dag.records.TezDAGID getDagID()

getStartTime

public long getStartTime()

getDiagnostics

public String getDiagnostics()

getTezCounters

public org.apache.tez.common.counters.TezCounters getTezCounters()


Copyright © 2014 Apache Software Foundation. All rights reserved.